keeping leg b up and reconnect to it
Hello, I have a SIP user that is working under cellular 3g data. Sometimes it losing it's IP and have it assigned new IP, other times, roaming disconnect the data and it takes up to 45 seconds to reconnect (and again, gaining new IP). While the client is idle, there is no issue, however when the client is connected to a call, freeswitch (and any other sip servers for that matter) does not know about it (and that's okay). But when the client return to be available, and try to reconnect to the call, the call itself disconnect, and making hangup on both sides. I have the following dialplan: <?xml version="1.0" encoding="utf-8"?> <include> <context name="testing"> <extension name="bridge loopback"> <condition field="destination_number" expression="^(300\d)$"> <action application="set" data="hangup_after_bridge=false" /> <action application="bridge" data="{hangup_after_bridge=false}user/$1" /> </condition> </extension> </context> </include> Is there a way to keep the other leg (for example leg b) up, and attempting to reconnect leg-a to it ? Thanks, Ido
Yes, this indeed sounds possible... you can call a lua or js script after the bridge, or as a hangup_hook of some kind, or park and trigger a script that will play a message and try to re-connect to the user. I'm not sure of all the particulars - I think it would take me a bit of time to tease out the exact details... -Avi
Thanks Avi, I'll try something out. Ido On Sun, Aug 10, 2014 at 6:47 PM, Avi Marcus <avi@avimarcus.net> wrote:
Yes, this indeed sounds possible... you can call a lua or js script after the bridge, or as a hangup_hook of some kind, or park and trigger a script that will play a message and try to re-connect to the user. I'm not sure of all the particulars - I think it would take me a bit of time to tease out the exact details... -Avi
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Avi Marcus
-
ik