[FreeSWITCH sched_hangup does not execute 'execute_extension']
Hi Users, I want to build a scenario in which if the B-Party hangup the call, A-Party can still be able to process through the dialplan. This works fine if B-Party hangup the call, but if the B-Party is hanup forcefully via sched_hangup (timeout), call gets terminated i-e A-Party is not able to reach 'execute_extension' application. Here is my dialplan snippet https://justpaste.it/2ppra I have attached as an image as well. Regards Bilal Abbasi
Since you hangup with an error-code (ALLOTTED_TIMEOUT) you maybe need to set : <action application="set" data="continue_on_fail=true"/> Before the bridge. https://freeswitch.org/confluence/display/FREESWITCH/continue_on_fail Von: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> Im Auftrag von Bilal Abbasi Gesendet: Donnerstag, 14. Januar 2021 11:43 An: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Betreff: [Freeswitch-users] [FreeSWITCH sched_hangup does not execute 'execute_extension'] Hi Users, I want to build a scenario in which if the B-Party hangup the call, A-Party can still be able to process through the dialplan. This works fine if B-Party hangup the call, but if the B-Party is hanup forcefully via sched_hangup (timeout), call gets terminated i-e A-Party is not able to reach 'execute_extension' application. Here is my dialplan snippet https://justpaste.it/2ppra<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjustpaste.it%2F2ppra&data=04%7C01%7C%7C387faa1fb80245e5ad4108d8b87f07c6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637462203016432657%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=l5nvcipVCkjqIj3GfdI0Kcfk%2BZo1aIGo0cAI%2F10Nr9g%3D&reserved=0> I have attached as an image as well. Regards Bilal Abbasi
Hi Brian and Marcel, I tried both things but still my dialplan is not going to execute extension. Here is my code snippet. https://justpaste.it/7pwix On Mon, Jan 18, 2021 at 8:38 PM Marcel Haldemann <m.hald@outlook.com> wrote:
Since you hangup with an error-code (*ALLOTTED_TIMEOUT*) you maybe need to set :
<action application="set" data="continue_on_fail=true"/>
Before the bridge.
https://freeswitch.org/confluence/display/FREESWITCH/continue_on_fail
*Von:* FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> *Im Auftrag von *Bilal Abbasi *Gesendet:* Donnerstag, 14. Januar 2021 11:43 *An:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Betreff:* [Freeswitch-users] [FreeSWITCH sched_hangup does not execute 'execute_extension']
Hi Users,
I want to build a scenario in which if the B-Party hangup the call, A-Party can still be able to process through the dialplan.
This works fine if B-Party hangup the call, but if the B-Party is hanup forcefully via sched_hangup (timeout), call gets terminated i-e A-Party is not able to reach 'execute_extension' application.
Here is my dialplan snippet
https://justpaste.it/2ppra <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjustpaste.it%2F2ppra&data=04%7C01%7C%7C387faa1fb80245e5ad4108d8b87f07c6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637462203016432657%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=l5nvcipVCkjqIj3GfdI0Kcfk%2BZo1aIGo0cAI%2F10Nr9g%3D&reserved=0>
I have attached as an image as well.
Regards
Bilal Abbasi _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
Hi Users, I found the solution via doing the following stuff, it might not be the most appropriate way of doing it, but it worked for me. <action application="set" data="uuid1=${create_uuid()}"/> <action application="set" data="uuid2=${create_uuid()}"/> <action application="bridge" data="[leg_timeout=60,api_on_answer='sched_hangup +10 ${uuid1} alloted_timeout',origination_uuid=${uuid1}]sofia/gateway/testtrunk/6505935400,[leg_timeout=60,api_on_answer='sched_hangup +10 ${uuid2} alloted_timeout',origination_uuid=${uuid2}]sofia/gateway/testtrunk/5505935403"/> Now i know exactly which leg i am hanging up, by generating the two uuid variables before starting the bridge. Thanks everyone Bilal Abbasi On Tue, Jan 19, 2021 at 1:05 AM Bilal Abbasi <bilaln018@gmail.com> wrote:
Hi Brian and Marcel, I tried both things but still my dialplan is not going to execute extension. Here is my code snippet. https://justpaste.it/7pwix
On Mon, Jan 18, 2021 at 8:38 PM Marcel Haldemann <m.hald@outlook.com> wrote:
Since you hangup with an error-code (*ALLOTTED_TIMEOUT*) you maybe need to set :
<action application="set" data="continue_on_fail=true"/>
Before the bridge.
https://freeswitch.org/confluence/display/FREESWITCH/continue_on_fail
*Von:* FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> *Im Auftrag von *Bilal Abbasi *Gesendet:* Donnerstag, 14. Januar 2021 11:43 *An:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Betreff:* [Freeswitch-users] [FreeSWITCH sched_hangup does not execute 'execute_extension']
Hi Users,
I want to build a scenario in which if the B-Party hangup the call, A-Party can still be able to process through the dialplan.
This works fine if B-Party hangup the call, but if the B-Party is hanup forcefully via sched_hangup (timeout), call gets terminated i-e A-Party is not able to reach 'execute_extension' application.
Here is my dialplan snippet
https://justpaste.it/2ppra <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjustpaste.it%2F2ppra&data=04%7C01%7C%7C387faa1fb80245e5ad4108d8b87f07c6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637462203016432657%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=l5nvcipVCkjqIj3GfdI0Kcfk%2BZo1aIGo0cAI%2F10Nr9g%3D&reserved=0>
I have attached as an image as well.
Regards
Bilal Abbasi _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
It's because you're executing it on the wrong leg. /b PS: Don't use nolocal. On Thu, Jan 14, 2021 at 5:25 AM Bilal Abbasi <bilaln018@gmail.com> wrote:
Hi Users, I want to build a scenario in which if the B-Party hangup the call, A-Party can still be able to process through the dialplan. This works fine if B-Party hangup the call, but if the B-Party is hanup forcefully via sched_hangup (timeout), call gets terminated i-e A-Party is not able to reach 'execute_extension' application.
Here is my dialplan snippet https://justpaste.it/2ppra I have attached as an image as well.
Regards Bilal Abbasi _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
-- Brian West | Co-founder and Developer Need Commercial support? email sales@freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> [image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
participants (3)
-
Bilal Abbasi
-
Brian West
-
Marcel Haldemann