Aciton on endpoint response
Hello everybody. Can anyone help me with the following issue? I need to route call based on negative response. I do continue_on_fail=true and hangup_after_bridge in xml dialplan and then after unsuccessfull bridge call lua script. But have no Idea how to get last hangup cause of B-Leg to be able to continue calling based on this condition. Thanks you in advance -- Kamil Nigmatullin Skype: Kamil Nigmatullin
The reason will be in the "bridge_hangup_cause" variable https://wiki.freeswitch.org/wiki/Variable_bridge_hangup_cause You'll likely want to use LUA or some other script to perform an action based on the result. On Sat, Aug 9, 2014 at 11:46 PM, Kamil Nigmatullin < kamil.nigmatullin@gmail.com> wrote:
Hello everybody. Can anyone help me with the following issue? I need to route call based on negative response. I do continue_on_fail=true and hangup_after_bridge in xml dialplan and then after unsuccessfull bridge call lua script. But have no Idea how to get last hangup cause of B-Leg to be able to continue calling based on this condition.
Thanks you in advance
-- Kamil Nigmatullin Skype: Kamil Nigmatullin
_________________________________________________________________________ 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
2014-08-11 5:56 GMT+06:00 Chris Tunbridge <blasterjr@gmail.com>:
bridge_hangup_cause
Thank you. However after the call to BLeg is ended I cannot get its cause in lua. Apparently B leg is destroyed. It is possible when I do hangup hook but there I do not have access to session to bridge to new session for B-Leg -- Kamil Nigmatullin Skype: Kamil Nigmatullin
Would an anti-action work for you? Thanks, Moishe Grunstein Tornado Computer Systems, Inc. 212.400.7650 888.IPPBX.US Service Request Email: support@nysolutions.com<mailto:support@nysolutions.com> Polycom Certified VAR Microsoft Small Business Specialist, Cisco SMB Select Certified [cid:image001.jpg@01C72F94.9EE45D60]<http://www.nysolutions.com/> Computer Networking * Managed Services * IP Video Surveillance * Network Assessments * Web Solutions * Voice over IP * Disaster Recovery * Network Security * Site Surveys * CMS From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Kamil Nigmatullin Sent: Monday, August 11, 2014 12:43 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Aciton on endpoint response 2014-08-11 5:56 GMT+06:00 Chris Tunbridge <blasterjr@gmail.com<mailto:blasterjr@gmail.com>>: bridge_hangup_cause Thank you. However after the call to BLeg is ended I cannot get its cause in lua. Apparently B leg is destroyed. It is possible when I do hangup hook but there I do not have access to session to bridge to new session for B-Leg -- Kamil Nigmatullin Skype: Kamil Nigmatullin
I am not sure for 100% but I cannot imagine the scenario of how to use it as anti-action. It is not base on condition. It makes call and then, if bridge is unsessefull then I need to route call based on endpoint response. It is possible to do using Inbound ESL but I actually always try to avoid long-time connections. Thought maybe someone knows other approach. Thanks anyway 2014-08-11 11:28 GMT+06:00 Moishe Grunstein <max@nysolutions.com>:
Would an anti-action work for you?
Thanks,
Moishe Grunstein
Tornado Computer Systems, Inc.
212.400.7650 888.IPPBX.US *Service Request Email: support@nysolutions.com <support@nysolutions.com> *
Polycom Certified VAR Microsoft Small Business Specialist, Cisco SMB Select Certified
[image: cid:image001.jpg@01C72F94.9EE45D60] <http://www.nysolutions.com/>
Computer Networking * Managed Services * IP Video Surveillance * Network Assessments * Web Solutions * Voice over IP * Disaster Recovery * Network Security * Site Surveys * CMS
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Kamil Nigmatullin *Sent:* Monday, August 11, 2014 12:43 AM *To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] Aciton on endpoint response
2014-08-11 5:56 GMT+06:00 Chris Tunbridge <blasterjr@gmail.com>:
bridge_hangup_cause
Thank you. However after the call to BLeg is ended I cannot get its cause in lua. Apparently B leg is destroyed. It is possible when I do hangup hook but there I do not have access to session to bridge to new session for B-Leg
-- Kamil Nigmatullin Skype: Kamil Nigmatullin
_________________________________________________________________________ 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
-- Kamil Nigmatullin Manager Tel: 77272323748 mob: 7 777 2517003 ICQ: 31008382 Skype: Kamil Nigmatullin
participants (3)
-
Chris Tunbridge
-
Kamil Nigmatullin
-
Moishe Grunstein