Re- Lua feature session:setAutoHangup(false), can this be done inside the dialplan xml?
To FreeSWITCH users, Quick question. Is there a way as the first dialplan action (inside the actual dialplan xml) to call a similar function to what I can call inside Lua (ie. session:setAutoHangup(false))? So that all the dialplan applications or actions can be completed without remote disconnect (hangup) interrupting the xml dialplan flow? Obviously I could call a Lua script to perform "session:setAutoHangup(false)", however it would be nice to see it inside the dialplan itself for clarity. Kind Regards, Andrew Keil
I believe that any dialplan variable that can be set by Lua can also be set by the XML dialplan. In case you are using the vanilla dialplan that installs with FreeSWITCH, feel free to delete unnecessary extension blocks, leaving only what you need. It will speed traversal of calls through the dialplan and make troubleshooting much easier. You might not need to set that variable after that, which sounds a bit dangerous to me; you might end up with zombie calls that never hang up. Bote From: Andrew Keil Sent: Saturday, 21 February, 2015 20:12 Subject: [Freeswitch-users] Re- Lua feature session:setAutoHangup(false), can this be done inside the dialplan xml? To FreeSWITCH users, Quick question. Is there a way as the first dialplan action (inside the actual dialplan xml) to call a similar function to what I can call inside Lua (ie. session:setAutoHangup(false))? So that all the dialplan applications or actions can be completed without remote disconnect (hangup) interrupting the xml dialplan flow? Obviously I could call a Lua script to perform "session:setAutoHangup(false)", however it would be nice to see it inside the dialplan itself for clarity. Kind Regards, Andrew Keil
On Sat, Feb 21, 2015 at 5:11 PM, Andrew Keil <andrew.keil@visytel.com> wrote:
To FreeSWITCH users,
Quick question.
Is there a way as the first dialplan action (inside the actual dialplan xml) to call a similar function to what I can call inside Lua (ie. session:setAutoHangup(false))? So that all the dialplan applications or actions can be completed without remote disconnect (hangup) interrupting the xml dialplan flow?
Obviously I could call a Lua script to perform “session:setAutoHangup(false)”, however it would be nice to see it inside the dialplan itself for clarity.
Perhaps this would do what you need? https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+set+zombie... -MC
Kind Regards,
Andrew Keil
Michael, Yes this is what I was after. Thanks so much! Best Regards, Andrew From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Tuesday, 24 February 2015 9:53 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Re- Lua feature session:setAutoHangup(false), can this be done inside the dialplan xml? On Sat, Feb 21, 2015 at 5:11 PM, Andrew Keil <andrew.keil@visytel.com<mailto:andrew.keil@visytel.com>> wrote: To FreeSWITCH users, Quick question. Is there a way as the first dialplan action (inside the actual dialplan xml) to call a similar function to what I can call inside Lua (ie. session:setAutoHangup(false))? So that all the dialplan applications or actions can be completed without remote disconnect (hangup) interrupting the xml dialplan flow? Obviously I could call a Lua script to perform “session:setAutoHangup(false)”, however it would be nice to see it inside the dialplan itself for clarity. Perhaps this would do what you need? https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+set+zombie... -MC Kind Regards, Andrew Keil
participants (3)
-
Andrew Keil
-
Bote Man
-
Michael Collins