Hello, I am trying to find more info on the application "execute_on_answer". I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered? thanks,
That should work properly, what are trying to accomplish exactly? On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
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
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
Hello, I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing? ----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ---------------------------------------- On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
Can you send the console log when it fails? On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
After FreeSWITCH 1.8.5 (and 1.8.3) we've noticed that display updates have changed, on Polycom's (UA/5) for example this now includes the host portion such as the IP address which breaks directory contact association and is confusing for the user to see on the display: "Name" <sip:Number:Host:Port> Previously in FreeSWITCH 1.8.2 on Polycom's and on most other devices we've tested this doesn't include the host portion and works perfectly: "Name" <Number> This is a result of this change: 9e8ae18f95e<https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/9e8ae18f95e7e5a1de1c751eaf562425d93c41df#src/mod/endpoints/mod_sofia/mod_sofia.c> How do we stop FreeSWITCH from including the IP address in the PAI on display updates for Polycom's? Other than manually reversing this change in our environment. Thanks, Shaun
Are you running current polycom firmware on the devices? Sounds from the commit like it was changes after polycom fixed bug on their side. -- Nathan ------------------------------------------------------------------------------------------------------------------------ *From:* Shaun Stokes <shaun.stokes@itec-support.co.uk> *Sent:* Thu, Apr 25, 2019 7:10 AM CDT *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] P-Asserted-Identity in display updates for Polycom's
After FreeSWITCH 1.8.5 (and 1.8.3) we've noticed that display updates have changed, on Polycom's (UA/5) for example this now includes the host portion such as the IP address which breaks directory contact association and is confusing for the user to see on the display: "Name" <sip:Number:Host:Port>
Previously in FreeSWITCH 1.8.2 on Polycom's and on most other devices we've tested this doesn't include the host portion and works perfectly: "Name" <Number>
This is a result of this change: 9e8ae18f95e <https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/9e8ae18f95e7e5a1de1c751eaf562425d93c41df#src/mod/endpoints/mod_sofia/mod_sofia.c>
How do we stop FreeSWITCH from including the IP address in the PAI on display updates for Polycom's? Other than manually reversing this change in our environment.
Thanks, Shaun
_________________________________________________________________________
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
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 341-6679 System Administrator - Architect (573) 612-1412 System and Desktop Infrastructure Team Manager
Polycom's are on current firmware '5.7.4'. We use FreeSWITCH internally with Kamailio as our internet facing registrar but FreeSWITCH is grabbing the IP address of Kamailio and using it in the PAI which is sent to the device. I'm going to do some more digging to see if there's anyway we can get FreeSWITCH to use the domain\context instead of the IP address, if not then we should be able to fix this with-in Kamailio before the UPDATE is sent to the device. Thanks, Shaun ________________________________ From: Nathan Neulinger <nneul@mst.edu> Sent: 25 April 2019 14:17:19 To: FreeSWITCH Users Help; Shaun Stokes Subject: Re: [Freeswitch-users] P-Asserted-Identity in display updates for Polycom's Are you running current polycom firmware on the devices? Sounds from the commit like it was changes after polycom fixed bug on their side. -- Nathan ________________________________ From: Shaun Stokes <shaun.stokes@itec-support.co.uk><mailto:shaun.stokes@itec-support.co.uk> Sent: Thu, Apr 25, 2019 7:10 AM CDT To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><mailto:freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] P-Asserted-Identity in display updates for Polycom's After FreeSWITCH 1.8.5 (and 1.8.3) we've noticed that display updates have changed, on Polycom's (UA/5) for example this now includes the host portion such as the IP address which breaks directory contact association and is confusing for the user to see on the display: "Name" <sip:Number:Host:Port> Previously in FreeSWITCH 1.8.2 on Polycom's and on most other devices we've tested this doesn't include the host portion and works perfectly: "Name" <Number> This is a result of this change: 9e8ae18f95e<https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/9e8ae18f95e7e5a1de1c751eaf562425d93c41df#src/mod/endpoints/mod_sofia/mod_sofia.c> How do we stop FreeSWITCH from including the IP address in the PAI on display updates for Polycom's? Other than manually reversing this change in our environment. Thanks, Shaun _________________________________________________________________________ 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<mailto: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<mailto: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 -- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu<mailto:nneul@mst.edu> Missouri S&T Information Technology (573) 341-6679 System Administrator - Architect (573) 612-1412 System and Desktop Infrastructure Team Manager
The host in the PAI differ from the host FS is accessed with? and they differ from the proxy? /b On Thu, Apr 25, 2019 at 9:38 AM Shaun Stokes < shaun.stokes@itec-support.co.uk> wrote:
Polycom's are on current firmware '5.7.4'.
We use FreeSWITCH internally with Kamailio as our internet facing registrar but FreeSWITCH is grabbing the IP address of Kamailio and using it in the PAI which is sent to the device.
I'm going to do some more digging to see if there's anyway we can get FreeSWITCH to use the domain\context instead of the IP address, if not then we should be able to fix this with-in Kamailio before the UPDATE is sent to the device.
Thanks, Shaun ------------------------------ *From:* Nathan Neulinger <nneul@mst.edu> *Sent:* 25 April 2019 14:17:19 *To:* FreeSWITCH Users Help; Shaun Stokes *Subject:* Re: [Freeswitch-users] P-Asserted-Identity in display updates for Polycom's
Are you running current polycom firmware on the devices? Sounds from the commit like it was changes after polycom fixed bug on their side.
-- Nathan
------------------------------ *From:* Shaun Stokes <shaun.stokes@itec-support.co.uk> <shaun.stokes@itec-support.co.uk> *Sent:* Thu, Apr 25, 2019 7:10 AM CDT *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] P-Asserted-Identity in display updates for Polycom's
After FreeSWITCH 1.8.5 (and 1.8.3) we've noticed that display updates have changed, on Polycom's (UA/5) for example this now includes the host portion such as the IP address which breaks directory contact association and is confusing for the user to see on the display: "Name" <sip:Number:Host:Port>
Previously in FreeSWITCH 1.8.2 on Polycom's and on most other devices we've tested this doesn't include the host portion and works perfectly: "Name" <Number>
This is a result of this change: 9e8ae18f95e <https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/9e8ae18f95e7e5a1de1c751eaf562425d93c41df#src/mod/endpoints/mod_sofia/mod_sofia.c>
How do we stop FreeSWITCH from including the IP address in the PAI on display updates for Polycom's? Other than manually reversing this change in our environment.
Thanks, Shaun
_________________________________________________________________________
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 Servicessales@freeswitch.comhttps://freeswitch.com
Official FreeSWITCH Siteshttps://freeswitch.com/osshttps://freeswitch.org/confluencehttps://cluecon.c...
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttps://freeswit...
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 341-6679 System Administrator - Architect (573) 612-1412 System and Desktop Infrastructure Team Manager
_________________________________________________________________________
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>
The host in our PAI is the proxy (Kamailio) which sits between the device and FreeSWITCH. Kamailio proxies all messages between the device and FreeSWITCH on an internal address. The device communicates with Kamilio on an external address and has no communication with FreeSWITCH other than RTP. - Shaun Get Outlook for Android<https://aka.ms/ghei36> From: Brian West Sent: Thursday 25 April, 19:15 Subject: Re: [Freeswitch-users] P-Asserted-Identity in display updates forPolycom's To: FreeSWITCH Users Help The host in the PAI differ from the host FS is accessed with? and they differ from the proxy? /b On Thu, Apr 25, 2019 at 9:38 AM Shaun Stokes <shaun.stokes@itec-support.co.uk<mailto:shaun.stokes@itec-support.co.uk>> wrote: Polycom's are on current firmware '5.7.4'. We use FreeSWITCH internally with Kamailio as our internet facing registrar but FreeSWITCH is grabbing the IP address of Kamailio and using it in the PAI which is sent to the device. I'm going to do some more digging to see if there's anyway we can get FreeSWITCH to use the domain\context instead of the IP address, if not then we should be able to fix this with-in Kamailio before the UPDATE is sent to the device. Thanks, Shaun From: Nathan Neulinger <nneul@mst.edu<mailto:nneul@mst.edu>> Sent: 25 April 2019 14:17:19 To: FreeSWITCH Users Help; Shaun Stokes Subject: Re: [Freeswitch-users] P-Asserted-Identity in display updates for Polycom's Are you running current polycom firmware on the devices? Sounds from the commit like it was changes after polycom fixed bug on their side. -- Nathan From: Shaun Stokes <shaun.stokes@itec-support.co.uk><mailto:shaun.stokes@itec-support.co.uk> Sent: Thu, Apr 25, 2019 7:10 AM CDT To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><mailto:freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] P-Asserted-Identity in display updates for Polycom's After FreeSWITCH 1.8.5 (and 1.8.3) we've noticed that display updates have changed, on Polycom's (UA/5) for example this now includes the host portion such as the IP address which breaks directory contact association and is confusing for the user to see on the display: "Name" <sip:Number:Host:Port> Previously in FreeSWITCH 1.8.2 on Polycom's and on most other devices we've tested this doesn't include the host portion and works perfectly: "Name" <Number> This is a result of this change: 9e8ae18f95e<https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/9e8ae18f95e7e5a1de1c751eaf562425d93c41df#src/mod/endpoints/mod_sofia/mod_sofia.c> How do we stop FreeSWITCH from including the IP address in the PAI on display updates for Polycom's? Other than manually reversing this change in our environment. Thanks, Shaun _________________________________________________________________________ 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<mailto: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<mailto: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 -- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu<mailto:nneul@mst.edu> Missouri S&T Information Technology (573) 341-6679 System Administrator - Architect (573) 612-1412 System and Desktop Infrastructure Team Manager _________________________________________________________________________ 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<mailto: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<mailto: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<mailto: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<mailto:brian@freeswitch.com> Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com<https://www.freeswitch.com/>
The RPID FreeSWITCH sends in the INVITE and in SIP SIP OK is formatted correctly: Remote-Party-ID: "test" <sip:222@mydomain.co.co>;party=calling;screen=yes;privacy=off The RPID appears to get this information from the To\From headers, the Contact header has the proxy as the host which wouldn't be suitable. The UPDATE which follows with the PAI is formatted differently: P-Asserted-Identity: "test" <sip:222@127.0.0.10> The host portion of the PAI appears to come from the host portion of the Contact header instead of using the From header. There doesn't appear to be a way to fix this with-out changing code with-in 'mod_sofia.c'. We're working around the problem for now by transforming the PAI from FreeSWITCH as it passes through our proxy. - Shaun ________________________________ From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Shaun Stokes <shaun.stokes@itec-support.co.uk> Sent: 25 April 2019 19:14:32 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] P-Asserted-Identity in display updates fortPolycom's The host in our PAI is the proxy (Kamailio) which sits between the device and FreeSWITCH. Kamailio proxies all messages between the device and FreeSWITCH on an internal address. The device communicates with Kamilio on an external address and has no communication with FreeSWITCH other than RTP. - Shaun Get Outlook for Android<https://aka.ms/ghei36> From: Brian West Sent: Thursday 25 April, 19:15 Subject: Re: [Freeswitch-users] P-Asserted-Identity in display updates forPolycom's To: FreeSWITCH Users Help The host in the PAI differ from the host FS is accessed with? and they differ from the proxy? /b On Thu, Apr 25, 2019 at 9:38 AM Shaun Stokes <shaun.stokes@itec-support.co.uk<mailto:shaun.stokes@itec-support.co.uk>> wrote: Polycom's are on current firmware '5.7.4'. We use FreeSWITCH internally with Kamailio as our internet facing registrar but FreeSWITCH is grabbing the IP address of Kamailio and using it in the PAI which is sent to the device. I'm going to do some more digging to see if there's anyway we can get FreeSWITCH to use the domain\context instead of the IP address, if not then we should be able to fix this with-in Kamailio before the UPDATE is sent to the device. Thanks, Shaun From: Nathan Neulinger <nneul@mst.edu<mailto:nneul@mst.edu>> Sent: 25 April 2019 14:17:19 To: FreeSWITCH Users Help; Shaun Stokes Subject: Re: [Freeswitch-users] P-Asserted-Identity in display updates for Polycom's Are you running current polycom firmware on the devices? Sounds from the commit like it was changes after polycom fixed bug on their side. -- Nathan From: Shaun Stokes <shaun.stokes@itec-support.co.uk><mailto:shaun.stokes@itec-support.co.uk> Sent: Thu, Apr 25, 2019 7:10 AM CDT To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><mailto:freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] P-Asserted-Identity in display updates for Polycom's After FreeSWITCH 1.8.5 (and 1.8.3) we've noticed that display updates have changed, on Polycom's (UA/5) for example this now includes the host portion such as the IP address which breaks directory contact association and is confusing for the user to see on the display: "Name" <sip:Number:Host:Port> Previously in FreeSWITCH 1.8.2 on Polycom's and on most other devices we've tested this doesn't include the host portion and works perfectly: "Name" <Number> This is a result of this change: 9e8ae18f95e<https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/9e8ae18f95e7e5a1de1c751eaf562425d93c41df#src/mod/endpoints/mod_sofia/mod_sofia.c> How do we stop FreeSWITCH from including the IP address in the PAI on display updates for Polycom's? Other than manually reversing this change in our environment. Thanks, Shaun _________________________________________________________________________ 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<mailto: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<mailto: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 -- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu<mailto:nneul@mst.edu> Missouri S&T Information Technology (573) 341-6679 System Administrator - Architect (573) 612-1412 System and Desktop Infrastructure Team Manager _________________________________________________________________________ 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<mailto: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<mailto: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<mailto: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<mailto:brian@freeswitch.com> Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com<https://www.freeswitch.com/>
Hello, This is what I get when I uncomment the lines. I also did a reloadxml. right after the last DTMF digit it dies ------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING] ------------------------------------------------------------ On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere? On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
Hello, What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call. If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through. What am I missing or how can I get it to work? thanks, On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do; <action application="lua" data="test.lua"/> Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
> Hello, > > I am trying to find more info on the application "execute_on_answer". > > I have a script that calls an IVR then dials a users extension. I > need to wait for the calling party extension to answer before executing the > rest of my script. I don't seem to find much documentation on this > application. Is there another way to test if the calling party has been > answered? > > > thanks, > > > > _________________________________________________________________________ > > 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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
Hello, ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()? Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution? thanks, On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
> That should work properly, what are trying to accomplish exactly? > > On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> > wrote: > >> Hello, >> >> I am trying to find more info on the application >> "execute_on_answer". >> >> I have a script that calls an IVR then dials a users extension. I >> need to wait for the calling party extension to answer before executing the >> rest of my script. I don't seem to find much documentation on this >> application. Is there another way to test if the calling party has been >> answered? >> >> >> thanks, >> >> >> >> _________________________________________________________________________ >> >> 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 > > -- > Regards, > > David Villasmil > email: david.villasmil.work@gmail.com > phone: +34669448337 > > _________________________________________________________________________ > > 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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
Hello, This is what I get when I run my lua script with the first line reading session:execute_on_answer() -------------------------------------------- 2019-04-25 11:02:18.131954 [ERR] mod_lua.cpp:203 /usr/share/freeswitch/scripts/test.lua:88: attempt to call method 'execute_on_answer' () stack traceback: /usr/share/freeswitch/scripts/test.lua:88: in main chunk -------------------------------------------- On Thu, Apr 25, 2019 at 2:01 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
> Hello, > > I need my dial plan to dial an extension within then wait until the > extension picks up before starting the lua script. I got it to dial the > extension but can't seem to get the syntax for the "execute_on_answer" > correct. When I uncomment it out it call just fails. What am I missing? > > ----------------------------- > <extension name="my_dialplan"> > <condition field="destination_number" expression="^9176$"> > <action application="sleep" data="2000"/> > <action application="send_dtmf" data="1002"/> > <action application="lua" data="test.lua"/> > <!-- <action application="export" > data="nolocal:execute_on_answer=lua test.lua"/> --> > </condition> > </extension> > </include> > ---------------------------------------- > > On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < > david.villasmil.work@gmail.com> wrote: > >> That should work properly, what are trying to accomplish exactly? >> >> On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> >> wrote: >> >>> Hello, >>> >>> I am trying to find more info on the application >>> "execute_on_answer". >>> >>> I have a script that calls an IVR then dials a users extension. I >>> need to wait for the calling party extension to answer before executing the >>> rest of my script. I don't seem to find much documentation on this >>> application. Is there another way to test if the calling party has been >>> answered? >>> >>> >>> thanks, >>> >>> >>> >>> _________________________________________________________________________ >>> >>> 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 >> >> -- >> Regards, >> >> David Villasmil >> email: david.villasmil.work@gmail.com >> phone: +34669448337 >> >> _________________________________________________________________________ >> >> 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 > > > _________________________________________________________________________ > > 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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer. Something like: Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224 Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered. On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
> Hello, > > I need my dial plan to dial an extension within then wait until the > extension picks up before starting the lua script. I got it to dial the > extension but can't seem to get the syntax for the "execute_on_answer" > correct. When I uncomment it out it call just fails. What am I missing? > > ----------------------------- > <extension name="my_dialplan"> > <condition field="destination_number" expression="^9176$"> > <action application="sleep" data="2000"/> > <action application="send_dtmf" data="1002"/> > <action application="lua" data="test.lua"/> > <!-- <action application="export" > data="nolocal:execute_on_answer=lua test.lua"/> --> > </condition> > </extension> > </include> > ---------------------------------------- > > On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < > david.villasmil.work@gmail.com> wrote: > >> That should work properly, what are trying to accomplish exactly? >> >> On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> >> wrote: >> >>> Hello, >>> >>> I am trying to find more info on the application >>> "execute_on_answer". >>> >>> I have a script that calls an IVR then dials a users extension. I >>> need to wait for the calling party extension to answer before executing the >>> rest of my script. I don't seem to find much documentation on this >>> application. Is there another way to test if the calling party has been >>> answered? >>> >>> >>> thanks, >>> >>> >>> >>> _________________________________________________________________________ >>> >>> 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 >> >> -- >> Regards, >> >> David Villasmil >> email: david.villasmil.work@gmail.com >> phone: +34669448337 >> >> _________________________________________________________________________ >> >> 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 > > > _________________________________________________________________________ > > 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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
Hello It is still not working. When I do just the application lua it works, but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the call at the beginning of my lua script. <include> <extension name="samsclub_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> <!-- <action application="lua" data="samsclub.lua"/> --> <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> </condition> </extension> </include> ---------------------------------------------------------------------- 2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] 2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] On Thu, Apr 25, 2019 at 5:34 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer.
Something like:
Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224
Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered.
On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
> Can you send the console log when it fails? > > On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> > wrote: > >> Hello, >> >> I need my dial plan to dial an extension within then wait until the >> extension picks up before starting the lua script. I got it to dial the >> extension but can't seem to get the syntax for the "execute_on_answer" >> correct. When I uncomment it out it call just fails. What am I missing? >> >> ----------------------------- >> <extension name="my_dialplan"> >> <condition field="destination_number" expression="^9176$"> >> <action application="sleep" data="2000"/> >> <action application="send_dtmf" data="1002"/> >> <action application="lua" data="test.lua"/> >> <!-- <action application="export" >> data="nolocal:execute_on_answer=lua test.lua"/> --> >> </condition> >> </extension> >> </include> >> ---------------------------------------- >> >> On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < >> david.villasmil.work@gmail.com> wrote: >> >>> That should work properly, what are trying to accomplish exactly? >>> >>> On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> >>> wrote: >>> >>>> Hello, >>>> >>>> I am trying to find more info on the application >>>> "execute_on_answer". >>>> >>>> I have a script that calls an IVR then dials a users extension. >>>> I need to wait for the calling party extension to answer before executing >>>> the rest of my script. I don't seem to find much documentation on this >>>> application. Is there another way to test if the calling party has been >>>> answered? >>>> >>>> >>>> thanks, >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> >>>> 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 >>> >>> -- >>> Regards, >>> >>> David Villasmil >>> email: david.villasmil.work@gmail.com >>> phone: +34669448337 >>> >>> _________________________________________________________________________ >>> >>> 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 >> >> >> _________________________________________________________________________ >> >> 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 > > -- > Regards, > > David Villasmil > email: david.villasmil.work@gmail.com > phone: +34669448337 > > _________________________________________________________________________ > > 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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
You have to have a bridge command in that dialplan to start the call after setting the execute_on_answer, the bridge does not belong in your samsclub script. On Fri, 26 Apr 2019 00:02:14 -0400, Joli Martinez wrote:
[1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8 (quoted-printable)>] [1.2 <text/html; UTF-8 (quoted-printable)>] Hello
It is still not working. When I do just the application lua it works, but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the call at the beginning of my lua script.
<include> <extension name="samsclub_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> <!-- <action application="lua" data="samsclub.lua"/> --> <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> </condition> </extension> </include>
----------------------------------------------------------------------
2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
On Thu, Apr 25, 2019 at 5:34 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer.
Something like:
Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224
Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered.
On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil <david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil <david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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 [2 <text/plain; utf-8 (base64)>] _________________________________________________________________________
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici wb2una covici@ccs.covici.com
Joli, On you IVR, assuming you are using fs IVR? Please show us the IVR. On Fri, 26 Apr 2019 at 06:19, John Covici <covici@ccs.covici.com> wrote:
You have to have a bridge command in that dialplan to start the call after setting the execute_on_answer, the bridge does not belong in your samsclub script.
On Fri, 26 Apr 2019 00:02:14 -0400, Joli Martinez wrote:
[1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8 (quoted-printable)>] [1.2 <text/html; UTF-8 (quoted-printable)>] Hello
It is still not working. When I do just the application lua it works,
but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the
call at the beginning of my lua script.
<include> <extension name="samsclub_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> <!-- <action application="lua" data="samsclub.lua"/> --> <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> </condition> </extension> </include>
----------------------------------------------------------------------
2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
On Thu, Apr 25, 2019 at 5:34 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer.
Something like:
Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224
Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered.
On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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 [2 <text/plain; utf-8 (base64)>] _________________________________________________________________________
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici wb2una covici@ccs.covici.com
_________________________________________________________________________
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
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
Hello, When I just use the "<action application="lua" data="test.lua"/>" the call goes through and sends the correct DTMF from the channel variable passed which is 1002. When I uncomment the "<action application="set" data="execute_on_answer=lua test.lua"/>" and comment out the other line, then do a reloadxml on fs. The DTMF is not passed correctly and the call fails. I have stripped down my test.lua script to just basic to only play a file and it still fails. In this scenario I am testing calling from the freeswitch box to another freeswitch IVR, but this should work regardless of what IVR it calls. Below is the output of the both boxes. --------------xml---------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <!-- <action application="send_dtmf" data="${ext}"/> --> <action application="sleep" data="1000"/> <!-- <action application="lua" data="test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension> </include> --------------xml---------------------- --------------test.lua---------------------- #!/bin/lua soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav" freeswitch.consoleLog("INFO", "got here\n") --Starts Playing welcome message and accepts digits value = session:playAndGetDigits(2, 4, 3, 3000, "#", welcome, "", "\\d+") freeswitch.consoleLog("INFO", "got digits " ..value.. "\n") --------------test.lua---------------------- --------------this FS box---------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(1002) Dialplan: sofia/external/1112223333 Action sleep(1000) Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) 2019-04-26 17:52:22.511865 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <> 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 To) 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(open=true) 2019-04-26 17:52:22.511865 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [open]=[true] EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=16436 lw=160 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=16437 lw=320 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=16438 lw=480 2019-04-26 17:52:24.571862 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=16439 lw=640 2019-04-26 17:52:24.591872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=16440 lw=800 2019-04-26 17:52:24.611866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=16441 lw=960 2019-04-26 17:52:24.631863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=16442 lw=1120 2019-04-26 17:52:24.651858 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=16443 lw=1280 2019-04-26 17:52:24.671867 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=16444 lw=1440 2019-04-26 17:52:24.691863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=16445 lw=1600 2019-04-26 17:52:24.711874 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=16446 lw=1760 2019-04-26 17:52:24.731866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=16447 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16448 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16449 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16450 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-26 17:52:25.151870 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=16451 lw=2400 2019-04-26 17:52:25.171870 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=16452 lw=2560 2019-04-26 17:52:25.191863 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=16453 lw=2720 2019-04-26 17:52:25.211881 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=16454 lw=2880 2019-04-26 17:52:25.231878 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=16455 lw=3040 2019-04-26 17:52:25.251862 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=16456 lw=3200 2019-04-26 17:52:25.271866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=16457 lw=3360 2019-04-26 17:52:25.291874 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=16458 lw=3520 2019-04-26 17:52:25.311871 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=16459 lw=3680 2019-04-26 17:52:25.331864 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=16460 lw=3840 2019-04-26 17:52:25.351866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=16461 lw=4000 2019-04-26 17:52:25.371873 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=16462 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16463 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16464 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16465 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-26 17:52:25.531882 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction. 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] --------------this FS box---------------------- --------------receiving FS box----------------------2019-04-26 20:53:34.216925 [NOTICE] mod_dptools.c:1312 Channel [sofia/internal/+ 13337777777@10.21.10.4] has been answered 2019-04-26 20:53:34.216925 [DEBUG] switch_channel.c:3773 (sofia/internal/+ 13337777777@10.21.10.4) Callstate Change RINGING -> ACTIVE EXECUTE sofia/internal/+13337777777@10.21.10.4 sleep(1000) 2019-04-26 20:53:34.636985 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 20:53:34.676971 [DEBUG] sofia.c:7084 Channel sofia/internal/+ 13337777777@10.21.10.4 entering state [ready][200] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(hangup_after_bridge=true) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+ 13337777777@10.21.10.4 [hangup_after_bridge]=[true] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+ 13337777777@10.21.10.4 [ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(presence_id= 9000@10.21.10.4) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+ 13337777777@10.21.10.4 [presence_id]=[9000@10.21.10.4] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(transfer_ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+ 13337777777@10.21.10.4 [transfer_ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ivr_menu_uuid=d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+ 13337777777@10.21.10.4 [ivr_menu_uuid]=[d67bb786-a0bc-4094-91fa-76f7db68caeb] EXECUTE sofia/internal/+13337777777@10.21.10.4 ivr(d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f3c6005cdf0 Connected. 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f3c6005cdf0 released. 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:880 building menu 'd67bb786-a0bc-4094-91fa-76f7db68caeb' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu d67bb786-a0bc-4094-91fa-76f7db68caeb 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-26 20:53:35.376916 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-26 20:53:37.236985 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-26 20:53:37.876935 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:2080 2019-04-26 20:53:37.876935 [INFO] switch_channel.c:515 RECV DTMF 0:2080 2019-04-26 20:53:37.896923 [NOTICE] sofia.c:1012 Hangup sofia/internal/+ 13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] --------------receiving FS box---------------------- On Fri, Apr 26, 2019 at 8:53 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Joli,
On you IVR, assuming you are using fs IVR? Please show us the IVR.
On Fri, 26 Apr 2019 at 06:19, John Covici <covici@ccs.covici.com> wrote:
You have to have a bridge command in that dialplan to start the call after setting the execute_on_answer, the bridge does not belong in your samsclub script.
On Fri, 26 Apr 2019 00:02:14 -0400, Joli Martinez wrote:
[1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8 (quoted-printable)>] [1.2 <text/html; UTF-8 (quoted-printable)>] Hello
It is still not working. When I do just the application lua it works,
but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the
call at the beginning of my lua script.
<include> <extension name="samsclub_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> <!-- <action application="lua" data="samsclub.lua"/> --> <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> </condition> </extension> </include>
----------------------------------------------------------------------
2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
On Thu, Apr 25, 2019 at 5:34 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer.
Something like:
Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224
Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered.
On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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 [2 <text/plain; utf-8 (base64)>]
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici wb2una covici@ccs.covici.com
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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, You need to set the execute_on_answer var before calling the answer application. Once the call is answered or bridged, it's too late. Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 03:00, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
When I just use the "<action application="lua" data="test.lua"/>" the call goes through and sends the correct DTMF from the channel variable passed which is 1002. When I uncomment the "<action application="set" data="execute_on_answer=lua test.lua"/>" and comment out the other line, then do a reloadxml on fs. The DTMF is not passed correctly and the call fails. I have stripped down my test.lua script to just basic to only play a file and it still fails. In this scenario I am testing calling from the freeswitch box to another freeswitch IVR, but this should work regardless of what IVR it calls. Below is the output of the both boxes.
--------------xml---------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <!-- <action application="send_dtmf" data="${ext}"/> --> <action application="sleep" data="1000"/> <!-- <action application="lua" data="test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension> </include> --------------xml----------------------
--------------test.lua---------------------- #!/bin/lua
soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav"
freeswitch.consoleLog("INFO", "got here\n")
--Starts Playing welcome message and accepts digits value = session:playAndGetDigits(2, 4, 3, 3000, "#", welcome, "", "\\d+")
freeswitch.consoleLog("INFO", "got digits " ..value.. "\n") --------------test.lua----------------------
--------------this FS box---------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(1002) Dialplan: sofia/external/1112223333 Action sleep(1000) Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) 2019-04-26 17:52:22.511865 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <> 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 To) 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(open=true) 2019-04-26 17:52:22.511865 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [open]=[true] EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=16436 lw=160 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=16437 lw=320 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=16438 lw=480 2019-04-26 17:52:24.571862 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=16439 lw=640 2019-04-26 17:52:24.591872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=16440 lw=800 2019-04-26 17:52:24.611866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=16441 lw=960 2019-04-26 17:52:24.631863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=16442 lw=1120 2019-04-26 17:52:24.651858 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=16443 lw=1280 2019-04-26 17:52:24.671867 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=16444 lw=1440 2019-04-26 17:52:24.691863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=16445 lw=1600 2019-04-26 17:52:24.711874 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=16446 lw=1760 2019-04-26 17:52:24.731866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=16447 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16448 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16449 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16450 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-26 17:52:25.151870 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=16451 lw=2400 2019-04-26 17:52:25.171870 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=16452 lw=2560 2019-04-26 17:52:25.191863 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=16453 lw=2720 2019-04-26 17:52:25.211881 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=16454 lw=2880 2019-04-26 17:52:25.231878 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=16455 lw=3040 2019-04-26 17:52:25.251862 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=16456 lw=3200 2019-04-26 17:52:25.271866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=16457 lw=3360 2019-04-26 17:52:25.291874 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=16458 lw=3520 2019-04-26 17:52:25.311871 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=16459 lw=3680 2019-04-26 17:52:25.331864 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=16460 lw=3840 2019-04-26 17:52:25.351866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=16461 lw=4000 2019-04-26 17:52:25.371873 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=16462 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16463 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16464 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16465 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-26 17:52:25.531882 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction. 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] --------------this FS box----------------------
--------------receiving FS box----------------------2019-04-26 20:53:34.216925 [NOTICE] mod_dptools.c:1312 Channel [sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4>] has been answered 2019-04-26 20:53:34.216925 [DEBUG] switch_channel.c:3773 (sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4>) Callstate Change RINGING -> ACTIVE EXECUTE sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> sleep(1000) 2019-04-26 20:53:34.636985 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 20:53:34.676971 [DEBUG] sofia.c:7084 Channel sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> entering state [ready][200] EXECUTE sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> set(hangup_after_bridge=true) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> [hangup_after_bridge]=[true] EXECUTE sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> set(ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> [ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> set(presence_id=9000@10.21.10.4 <mailto:9000@10.21.10.4>) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> [presence_id]=[9000@10.21.10.4 <mailto:9000@10.21.10.4>] EXECUTE sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> set(transfer_ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> [transfer_ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> set(ivr_menu_uuid=d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> [ivr_menu_uuid]=[d67bb786-a0bc-4094-91fa-76f7db68caeb] EXECUTE sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> ivr(d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f3c6005cdf0 Connected. 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f3c6005cdf0 released. 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:880 building menu 'd67bb786-a0bc-4094-91fa-76f7db68caeb' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu d67bb786-a0bc-4094-91fa-76f7db68caeb 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-26 20:53:35.376916 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-26 20:53:37.236985 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-26 20:53:37.876935 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:2080 2019-04-26 20:53:37.876935 [INFO] switch_channel.c:515 RECV DTMF 0:2080 2019-04-26 20:53:37.896923 [NOTICE] sofia.c:1012 Hangup sofia/internal/+13337777777@10.21.10.4 <mailto:13337777777@10.21.10.4> [CS_EXECUTE] [NORMAL_CLEARING] --------------receiving FS box----------------------
On Fri, Apr 26, 2019 at 8:53 AM David Villasmil <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>> wrote: Joli,
On you IVR, assuming you are using fs IVR? Please show us the IVR.
On Fri, 26 Apr 2019 at 06:19, John Covici <covici@ccs.covici.com <mailto:covici@ccs.covici.com>> wrote: You have to have a bridge command in that dialplan to start the call after setting the execute_on_answer, the bridge does not belong in your samsclub script.
On Fri, 26 Apr 2019 00:02:14 -0400, Joli Martinez wrote:
[1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8 (quoted-printable)>] [1.2 <text/html; UTF-8 (quoted-printable)>] Hello
It is still not working. When I do just the application lua it works, but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the call at the beginning of my lua script.
<include> <extension name="samsclub_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> <!-- <action application="lua" data="samsclub.lua"/> --> <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> </condition> </extension> </include>
----------------------------------------------------------------------
2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
On Thu, Apr 25, 2019 at 5:34 PM David Villasmil <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>> wrote:
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer.
Something like:
Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224
Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered.
On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com <mailto:mrjoli021@gmail.com>> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com> phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com <mailto:mrjoli021@gmail.com>> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com <mailto:mrjoli021@gmail.com>> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com <mailto:mrjoli021@gmail.com>> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com <mailto:mrjoli021@gmail.com>> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com> phone: +34669448337 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com> phone: +34669448337 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com> phone: +34669448337 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com> phone: +34669448337 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/> [2 <text/plain; utf-8 (base64)>] _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici wb2una covici@ccs.covici.com <mailto:covici@ccs.covici.com>
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>-- Regards,
David Villasmil email: david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com> phone: +34669448337 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <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 <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>_________________________________________________________________________
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
Hello, Not sure I follow, the only variable in this case is the EXT and it is set above the execute_on_answer command. What other var should I set? Call originates from FS to an IVR, IVR answers and FS dials EXT (1002), FS wait for EXT to answer then executes lua script. In this case I have stripped down my script to just play a file. So my lua script does not take any parameters. thanks, On Sat, Apr 27, 2019 at 8:26 AM Vallimamod Abdullah <vma@vallimamod.org> wrote:
Hi,
You need to set the execute_on_answer var before calling the answer application. Once the call is answered or bridged, it's too late.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 03:00, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
When I just use the "<action application="lua" data="test.lua"/>" the call goes through and sends the correct DTMF from the channel variable passed which is 1002. When I uncomment the "<action application="set" data="execute_on_answer=lua test.lua"/>" and comment out the other line, then do a reloadxml on fs. The DTMF is not passed correctly and the call fails. I have stripped down my test.lua script to just basic to only play a file and it still fails. In this scenario I am testing calling from the freeswitch box to another freeswitch IVR, but this should work regardless of what IVR it calls. Below is the output of the both boxes.
--------------xml---------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <!-- <action application="send_dtmf" data="${ext}"/> --> <action application="sleep" data="1000"/> <!-- <action application="lua" data="test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension> </include> --------------xml----------------------
--------------test.lua---------------------- #!/bin/lua
soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav"
freeswitch.consoleLog("INFO", "got here\n")
--Starts Playing welcome message and accepts digits value = session:playAndGetDigits(2, 4, 3, 3000, "#", welcome, "", "\\d+")
freeswitch.consoleLog("INFO", "got digits " ..value.. "\n") --------------test.lua----------------------
--------------this FS box---------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(1002) Dialplan: sofia/external/1112223333 Action sleep(1000) Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) 2019-04-26 17:52:22.511865 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <> 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 To) 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(open=true) 2019-04-26 17:52:22.511865 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [open]=[true] EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=16436 lw=160 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=16437 lw=320 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=16438 lw=480 2019-04-26 17:52:24.571862 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=16439 lw=640 2019-04-26 17:52:24.591872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=16440 lw=800 2019-04-26 17:52:24.611866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=16441 lw=960 2019-04-26 17:52:24.631863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=16442 lw=1120 2019-04-26 17:52:24.651858 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=16443 lw=1280 2019-04-26 17:52:24.671867 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=16444 lw=1440 2019-04-26 17:52:24.691863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=16445 lw=1600 2019-04-26 17:52:24.711874 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=16446 lw=1760 2019-04-26 17:52:24.731866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=16447 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16448 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16449 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16450 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-26 17:52:25.151870 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=16451 lw=2400 2019-04-26 17:52:25.171870 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=16452 lw=2560 2019-04-26 17:52:25.191863 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=16453 lw=2720 2019-04-26 17:52:25.211881 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=16454 lw=2880 2019-04-26 17:52:25.231878 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=16455 lw=3040 2019-04-26 17:52:25.251862 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=16456 lw=3200 2019-04-26 17:52:25.271866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=16457 lw=3360 2019-04-26 17:52:25.291874 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=16458 lw=3520 2019-04-26 17:52:25.311871 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=16459 lw=3680 2019-04-26 17:52:25.331864 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=16460 lw=3840 2019-04-26 17:52:25.351866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=16461 lw=4000 2019-04-26 17:52:25.371873 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=16462 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16463 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16464 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16465 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-26 17:52:25.531882 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction. 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] --------------this FS box----------------------
--------------receiving FS box----------------------2019-04-26 20:53:34.216925 [NOTICE] mod_dptools.c:1312 Channel [sofia/internal/+ 13337777777@10.21.10.4] has been answered 2019-04-26 20:53:34.216925 [DEBUG] switch_channel.c:3773 (sofia/internal/+ 13337777777@10.21.10.4) Callstate Change RINGING -> ACTIVE EXECUTE sofia/internal/+13337777777@10.21.10.4 sleep(1000) 2019-04-26 20:53:34.636985 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 20:53:34.676971 [DEBUG] sofia.c:7084 Channel sofia/internal/+ 13337777777@10.21.10.4 entering state [ready][200] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(hangup_after_bridge=true) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+ 13337777777@10.21.10.4 [hangup_after_bridge]=[true] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+ 13337777777@10.21.10.4 [ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(presence_id= 9000@10.21.10.4) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+ 13337777777@10.21.10.4 [presence_id]=[9000@10.21.10.4] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(transfer_ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+ 13337777777@10.21.10.4 [transfer_ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ivr_menu_uuid=d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+ 13337777777@10.21.10.4 [ivr_menu_uuid]=[d67bb786-a0bc-4094-91fa-76f7db68caeb] EXECUTE sofia/internal/+13337777777@10.21.10.4 ivr(d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f3c6005cdf0 Connected. 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f3c6005cdf0 released. 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:880 building menu 'd67bb786-a0bc-4094-91fa-76f7db68caeb' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu d67bb786-a0bc-4094-91fa-76f7db68caeb 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-26 20:53:35.376916 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-26 20:53:37.236985 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-26 20:53:37.876935 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:2080 2019-04-26 20:53:37.876935 [INFO] switch_channel.c:515 RECV DTMF 0:2080 2019-04-26 20:53:37.896923 [NOTICE] sofia.c:1012 Hangup sofia/internal/+ 13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] --------------receiving FS box----------------------
On Fri, Apr 26, 2019 at 8:53 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Joli,
On you IVR, assuming you are using fs IVR? Please show us the IVR.
On Fri, 26 Apr 2019 at 06:19, John Covici <covici@ccs.covici.com> wrote:
You have to have a bridge command in that dialplan to start the call after setting the execute_on_answer, the bridge does not belong in your samsclub script.
On Fri, 26 Apr 2019 00:02:14 -0400, Joli Martinez wrote:
[1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8 (quoted-printable)>] [1.2 <text/html; UTF-8 (quoted-printable)>] Hello
It is still not working. When I do just the application lua it works,
but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the
call at the beginning of my lua script.
<include> <extension name="samsclub_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> <!-- <action application="lua" data="samsclub.lua"/> --> <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> </condition> </extension> </include>
----------------------------------------------------------------------
2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
On Thu, Apr 25, 2019 at 5:34 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer.
Something like:
Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224
Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered.
On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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 [2 <text/plain; utf-8 (base64)>]
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici wb2una covici@ccs.covici.com
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
Your non working example is (without the commented parts): <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension> It should be: <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> </condition> </extension> Keep in mind that execute_on_answer is an actual channel variable that you set (and not an application). On call answer, it is retrieved by freeswitch and its content is executed. Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 16:10, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
Not sure I follow, the only variable in this case is the EXT and it is set above the execute_on_answer command. What other var should I set? Call originates from FS to an IVR, IVR answers and FS dials EXT (1002), FS wait for EXT to answer then executes lua script. In this case I have stripped down my script to just play a file. So my lua script does not take any parameters.
thanks,
On Sat, Apr 27, 2019 at 8:26 AM Vallimamod Abdullah <vma@vallimamod.org> wrote: Hi,
You need to set the execute_on_answer var before calling the answer application. Once the call is answered or bridged, it's too late.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 03:00, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
When I just use the "<action application="lua" data="test.lua"/>" the call goes through and sends the correct DTMF from the channel variable passed which is 1002. When I uncomment the "<action application="set" data="execute_on_answer=lua test.lua"/>" and comment out the other line, then do a reloadxml on fs. The DTMF is not passed correctly and the call fails. I have stripped down my test.lua script to just basic to only play a file and it still fails. In this scenario I am testing calling from the freeswitch box to another freeswitch IVR, but this should work regardless of what IVR it calls. Below is the output of the both boxes.
--------------xml---------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <!-- <action application="send_dtmf" data="${ext}"/> --> <action application="sleep" data="1000"/> <!-- <action application="lua" data="test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension> </include> --------------xml----------------------
--------------test.lua---------------------- #!/bin/lua
soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav"
freeswitch.consoleLog("INFO", "got here\n")
--Starts Playing welcome message and accepts digits value = session:playAndGetDigits(2, 4, 3, 3000, "#", welcome, "", "\\d+")
freeswitch.consoleLog("INFO", "got digits " ..value.. "\n") --------------test.lua----------------------
--------------this FS box---------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(1002) Dialplan: sofia/external/1112223333 Action sleep(1000) Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) 2019-04-26 17:52:22.511865 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <> 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 To) 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(open=true) 2019-04-26 17:52:22.511865 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [open]=[true] EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=16436 lw=160 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=16437 lw=320 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=16438 lw=480 2019-04-26 17:52:24.571862 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=16439 lw=640 2019-04-26 17:52:24.591872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=16440 lw=800 2019-04-26 17:52:24.611866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=16441 lw=960 2019-04-26 17:52:24.631863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=16442 lw=1120 2019-04-26 17:52:24.651858 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=16443 lw=1280 2019-04-26 17:52:24.671867 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=16444 lw=1440 2019-04-26 17:52:24.691863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=16445 lw=1600 2019-04-26 17:52:24.711874 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=16446 lw=1760 2019-04-26 17:52:24.731866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=16447 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16448 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16449 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16450 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-26 17:52:25.151870 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=16451 lw=2400 2019-04-26 17:52:25.171870 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=16452 lw=2560 2019-04-26 17:52:25.191863 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=16453 lw=2720 2019-04-26 17:52:25.211881 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=16454 lw=2880 2019-04-26 17:52:25.231878 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=16455 lw=3040 2019-04-26 17:52:25.251862 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=16456 lw=3200 2019-04-26 17:52:25.271866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=16457 lw=3360 2019-04-26 17:52:25.291874 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=16458 lw=3520 2019-04-26 17:52:25.311871 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=16459 lw=3680 2019-04-26 17:52:25.331864 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=16460 lw=3840 2019-04-26 17:52:25.351866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=16461 lw=4000 2019-04-26 17:52:25.371873 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=16462 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16463 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16464 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16465 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-26 17:52:25.531882 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction. 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] --------------this FS box----------------------
--------------receiving FS box----------------------2019-04-26 20:53:34.216925 [NOTICE] mod_dptools.c:1312 Channel [sofia/internal/+13337777777@10.21.10.4] has been answered 2019-04-26 20:53:34.216925 [DEBUG] switch_channel.c:3773 (sofia/internal/+13337777777@10.21.10.4) Callstate Change RINGING -> ACTIVE EXECUTE sofia/internal/+13337777777@10.21.10.4 sleep(1000) 2019-04-26 20:53:34.636985 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 20:53:34.676971 [DEBUG] sofia.c:7084 Channel sofia/internal/+13337777777@10.21.10.4 entering state [ready][200] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(hangup_after_bridge=true) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [hangup_after_bridge]=[true] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(presence_id=9000@10.21.10.4) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [presence_id]=[9000@10.21.10.4] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(transfer_ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [transfer_ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ivr_menu_uuid=d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ivr_menu_uuid]=[d67bb786-a0bc-4094-91fa-76f7db68caeb] EXECUTE sofia/internal/+13337777777@10.21.10.4 ivr(d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f3c6005cdf0 Connected. 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f3c6005cdf0 released. 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:880 building menu 'd67bb786-a0bc-4094-91fa-76f7db68caeb' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu d67bb786-a0bc-4094-91fa-76f7db68caeb 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-26 20:53:35.376916 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-26 20:53:37.236985 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-26 20:53:37.876935 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:2080 2019-04-26 20:53:37.876935 [INFO] switch_channel.c:515 RECV DTMF 0:2080 2019-04-26 20:53:37.896923 [NOTICE] sofia.c:1012 Hangup sofia/internal/+13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] --------------receiving FS box----------------------
On Fri, Apr 26, 2019 at 8:53 AM David Villasmil <david.villasmil.work@gmail.com> wrote: Joli,
On you IVR, assuming you are using fs IVR? Please show us the IVR.
On Fri, 26 Apr 2019 at 06:19, John Covici <covici@ccs.covici.com> wrote: You have to have a bridge command in that dialplan to start the call after setting the execute_on_answer, the bridge does not belong in your samsclub script.
On Fri, 26 Apr 2019 00:02:14 -0400, Joli Martinez wrote:
[1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8 (quoted-printable)>] [1.2 <text/html; UTF-8 (quoted-printable)>] Hello
It is still not working. When I do just the application lua it works, but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the call at the beginning of my lua script.
<include> <extension name="samsclub_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> <!-- <action application="lua" data="samsclub.lua"/> --> <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> </condition> </extension> </include>
----------------------------------------------------------------------
2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
On Thu, Apr 25, 2019 at 5:34 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer.
Something like:
Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224
Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered.
On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil <david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil <david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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 [2 <text/plain; utf-8 (base64)>] _________________________________________________________________________
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici wb2una covici@ccs.covici.com
_________________________________________________________________________
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 -- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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 _________________________________________________________________________
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
_________________________________________________________________________
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 _________________________________________________________________________
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
Hello, I have updated the config as requested with the exception of adding the send_dtmf line. I also did a reloadxml and it is still not working. What am I missing? ---------------xml-------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> </condition> </extension> </include> ---------------xml-------------------- ---------------local FS-------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) Dialplan: sofia/external/1112223333 Action answer() Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(${ext}) Dialplan: sofia/external/1112223333 Action sleep(1000) 2019-04-27 11:27:56.598764 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <409> 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 Tot 2) 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-27 11:27:56.598764 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] EXECUTE sofia/external/1112223333 answer() EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=50563 lw=160 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=50564 lw=320 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=50565 lw=480 2019-04-27 11:27:58.658789 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=50566 lw=640 2019-04-27 11:27:58.678753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=50567 lw=800 2019-04-27 11:27:58.698752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=50568 lw=960 2019-04-27 11:27:58.718750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=50569 lw=1120 2019-04-27 11:27:58.738752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=50570 lw=1280 2019-04-27 11:27:58.758871 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=50571 lw=1440 2019-04-27 11:27:58.778753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=50572 lw=1600 2019-04-27 11:27:58.798750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=50573 lw=1760 2019-04-27 11:27:58.818750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=50574 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50575 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50576 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50577 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.238764 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=50578 lw=2400 2019-04-27 11:27:59.258748 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=50579 lw=2560 2019-04-27 11:27:59.278769 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=50580 lw=2720 2019-04-27 11:27:59.298757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=50581 lw=2880 2019-04-27 11:27:59.318750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=50582 lw=3040 2019-04-27 11:27:59.338757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=50583 lw=3200 2019-04-27 11:27:59.358750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=50584 lw=3360 2019-04-27 11:27:59.378753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=50585 lw=3520 2019-04-27 11:27:59.398753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=50586 lw=3680 2019-04-27 11:27:59.418759 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=50587 lw=3840 2019-04-27 11:27:59.438754 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=50588 lw=4000 2019-04-27 11:27:59.458746 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=50589 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50590 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50591 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50592 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, h. 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS-------------------- ---------------remote FS-------------------- 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-27 14:25:13.656926 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-27 14:25:15.576972 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-27 14:25:16.156952 [NOTICE] sofia.c:1012 Hangup sofia/internal/+ 13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS-------------------- On Sat, Apr 27, 2019 at 1:49 PM Vallimamod Abdullah <vma@vallimamod.org> wrote:
Your non working example is (without the commented parts):
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension>
It should be:
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> </condition> </extension>
Keep in mind that execute_on_answer is an actual channel variable that you set (and not an application). On call answer, it is retrieved by freeswitch and its content is executed.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 16:10, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
Not sure I follow, the only variable in this case is the EXT and it is set above the execute_on_answer command. What other var should I set? Call originates from FS to an IVR, IVR answers and FS dials EXT (1002), FS wait for EXT to answer then executes lua script. In this case I have stripped down my script to just play a file. So my lua script does not take any parameters.
thanks,
On Sat, Apr 27, 2019 at 8:26 AM Vallimamod Abdullah <vma@vallimamod.org> wrote: Hi,
You need to set the execute_on_answer var before calling the answer application. Once the call is answered or bridged, it's too late.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 03:00, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
When I just use the "<action application="lua" data="test.lua"/>" the call goes through and sends the correct DTMF from the channel variable passed which is 1002. When I uncomment the "<action application="set" data="execute_on_answer=lua test.lua"/>" and comment out the other line, then do a reloadxml on fs. The DTMF is not passed correctly and the call fails. I have stripped down my test.lua script to just basic to only play a file and it still fails. In this scenario I am testing calling from the freeswitch box to another freeswitch IVR, but this should work regardless of what IVR it calls. Below is the output of the both boxes.
--------------xml---------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <!-- <action application="send_dtmf" data="${ext}"/> --> <action application="sleep" data="1000"/> <!-- <action application="lua" data="test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension> </include> --------------xml----------------------
--------------test.lua---------------------- #!/bin/lua
soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav"
freeswitch.consoleLog("INFO", "got here\n")
--Starts Playing welcome message and accepts digits value = session:playAndGetDigits(2, 4, 3, 3000, "#", welcome, "", "\\d+")
freeswitch.consoleLog("INFO", "got digits " ..value.. "\n") --------------test.lua----------------------
--------------this FS box---------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(1002) Dialplan: sofia/external/1112223333 Action sleep(1000) Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) 2019-04-26 17:52:22.511865 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <> 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 To) 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(open=true) 2019-04-26 17:52:22.511865 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [open]=[true] EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=16436 lw=160 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=16437 lw=320 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=16438 lw=480 2019-04-26 17:52:24.571862 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=16439 lw=640 2019-04-26 17:52:24.591872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=16440 lw=800 2019-04-26 17:52:24.611866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=16441 lw=960 2019-04-26 17:52:24.631863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=16442 lw=1120 2019-04-26 17:52:24.651858 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=16443 lw=1280 2019-04-26 17:52:24.671867 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=16444 lw=1440 2019-04-26 17:52:24.691863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=16445 lw=1600 2019-04-26 17:52:24.711874 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=16446 lw=1760 2019-04-26 17:52:24.731866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=16447 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16448 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16449 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16450 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-26 17:52:25.151870 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=16451 lw=2400 2019-04-26 17:52:25.171870 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=16452 lw=2560 2019-04-26 17:52:25.191863 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=16453 lw=2720 2019-04-26 17:52:25.211881 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=16454 lw=2880 2019-04-26 17:52:25.231878 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=16455 lw=3040 2019-04-26 17:52:25.251862 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=16456 lw=3200 2019-04-26 17:52:25.271866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=16457 lw=3360 2019-04-26 17:52:25.291874 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=16458 lw=3520 2019-04-26 17:52:25.311871 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=16459 lw=3680 2019-04-26 17:52:25.331864 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=16460 lw=3840 2019-04-26 17:52:25.351866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=16461 lw=4000 2019-04-26 17:52:25.371873 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=16462 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16463 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16464 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16465 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-26 17:52:25.531882 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction. 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] --------------this FS box----------------------
--------------receiving FS box----------------------2019-04-26 20:53:34.216925 [NOTICE] mod_dptools.c:1312 Channel [sofia/internal/+ 13337777777@10.21.10.4] has been answered 2019-04-26 20:53:34.216925 [DEBUG] switch_channel.c:3773 (sofia/internal/+13337777777@10.21.10.4) Callstate Change RINGING -> ACTIVE EXECUTE sofia/internal/+13337777777@10.21.10.4 sleep(1000) 2019-04-26 20:53:34.636985 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 20:53:34.676971 [DEBUG] sofia.c:7084 Channel sofia/internal/+ 13337777777@10.21.10.4 entering state [ready][200] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(hangup_after_bridge=true) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [hangup_after_bridge]=[true] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(presence_id= 9000@10.21.10.4) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [presence_id]=[9000@10.21.10.4] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(transfer_ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [transfer_ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ivr_menu_uuid=d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ivr_menu_uuid]=[d67bb786-a0bc-4094-91fa-76f7db68caeb] EXECUTE sofia/internal/+13337777777@10.21.10.4 ivr(d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f3c6005cdf0 Connected. 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f3c6005cdf0 released. 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:880 building menu 'd67bb786-a0bc-4094-91fa-76f7db68caeb' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu d67bb786-a0bc-4094-91fa-76f7db68caeb 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-26 20:53:35.376916 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-26 20:53:37.236985 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-26 20:53:37.876935 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:2080 2019-04-26 20:53:37.876935 [INFO] switch_channel.c:515 RECV DTMF 0:2080 2019-04-26 20:53:37.896923 [NOTICE] sofia.c:1012 Hangup sofia/internal/+ 13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] --------------receiving FS box----------------------
On Fri, Apr 26, 2019 at 8:53 AM David Villasmil < david.villasmil.work@gmail.com> wrote: Joli,
On you IVR, assuming you are using fs IVR? Please show us the IVR.
On Fri, 26 Apr 2019 at 06:19, John Covici <covici@ccs.covici.com> wrote: You have to have a bridge command in that dialplan to start the call after setting the execute_on_answer, the bridge does not belong in your samsclub script.
On Fri, 26 Apr 2019 00:02:14 -0400, Joli Martinez wrote:
[1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8 (quoted-printable)>] [1.2 <text/html; UTF-8 (quoted-printable)>] Hello
It is still not working. When I do just the application lua it
works, but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the
call at the beginning of my lua script.
<include> <extension name="samsclub_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> <!-- <action application="lua" data="samsclub.lua"/> --> <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> </condition> </extension> </include>
----------------------------------------------------------------------
2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
On Thu, Apr 25, 2019 at 5:34 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer.
Something like:
Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224
Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered.
On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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 [2 <text/plain; utf-8 (base64)>]
The FreeSWITCH project is sponsored by SignalWire
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici wb2una covici@ccs.covici.com
The FreeSWITCH project is sponsored by SignalWire
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 -- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
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 _________________________________________________________________________
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
_________________________________________________________________________
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
you need to export no local it most likely so it gets set on the b leg’s answer. set puts it on the a leg Sent from my iPhone
On Apr 27, 2019, at 13:34, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I have updated the config as requested with the exception of adding the send_dtmf line. I also did a reloadxml and it is still not working. What am I missing?
---------------xml-------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> </condition> </extension> </include> ---------------xml--------------------
---------------local FS-------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) Dialplan: sofia/external/1112223333 Action answer() Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(${ext}) Dialplan: sofia/external/1112223333 Action sleep(1000) 2019-04-27 11:27:56.598764 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <409> 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 Tot 2) 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-27 11:27:56.598764 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] EXECUTE sofia/external/1112223333 answer() EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=50563 lw=160 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=50564 lw=320 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=50565 lw=480 2019-04-27 11:27:58.658789 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=50566 lw=640 2019-04-27 11:27:58.678753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=50567 lw=800 2019-04-27 11:27:58.698752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=50568 lw=960 2019-04-27 11:27:58.718750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=50569 lw=1120 2019-04-27 11:27:58.738752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=50570 lw=1280 2019-04-27 11:27:58.758871 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=50571 lw=1440 2019-04-27 11:27:58.778753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=50572 lw=1600 2019-04-27 11:27:58.798750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=50573 lw=1760 2019-04-27 11:27:58.818750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=50574 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50575 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50576 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50577 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.238764 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=50578 lw=2400 2019-04-27 11:27:59.258748 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=50579 lw=2560 2019-04-27 11:27:59.278769 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=50580 lw=2720 2019-04-27 11:27:59.298757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=50581 lw=2880 2019-04-27 11:27:59.318750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=50582 lw=3040 2019-04-27 11:27:59.338757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=50583 lw=3200 2019-04-27 11:27:59.358750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=50584 lw=3360 2019-04-27 11:27:59.378753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=50585 lw=3520 2019-04-27 11:27:59.398753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=50586 lw=3680 2019-04-27 11:27:59.418759 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=50587 lw=3840 2019-04-27 11:27:59.438754 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=50588 lw=4000 2019-04-27 11:27:59.458746 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=50589 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50590 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50591 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50592 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, h. 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS--------------------
---------------remote FS-------------------- 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-27 14:25:13.656926 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-27 14:25:15.576972 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-27 14:25:16.156952 [NOTICE] sofia.c:1012 Hangup sofia/internal/+13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS--------------------
On Sat, Apr 27, 2019 at 1:49 PM Vallimamod Abdullah <vma@vallimamod.org> wrote: Your non working example is (without the commented parts):
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension>
It should be:
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> </condition> </extension>
Keep in mind that execute_on_answer is an actual channel variable that you set (and not an application). On call answer, it is retrieved by freeswitch and its content is executed.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 16:10, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
Not sure I follow, the only variable in this case is the EXT and it is set above the execute_on_answer command. What other var should I set? Call originates from FS to an IVR, IVR answers and FS dials EXT (1002), FS wait for EXT to answer then executes lua script. In this case I have stripped down my script to just play a file. So my lua script does not take any parameters.
thanks,
On Sat, Apr 27, 2019 at 8:26 AM Vallimamod Abdullah <vma@vallimamod.org> wrote: Hi,
You need to set the execute_on_answer var before calling the answer application. Once the call is answered or bridged, it's too late.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 03:00, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
When I just use the "<action application="lua" data="test.lua"/>" the call goes through and sends the correct DTMF from the channel variable passed which is 1002. When I uncomment the "<action application="set" data="execute_on_answer=lua test.lua"/>" and comment out the other line, then do a reloadxml on fs. The DTMF is not passed correctly and the call fails. I have stripped down my test.lua script to just basic to only play a file and it still fails. In this scenario I am testing calling from the freeswitch box to another freeswitch IVR, but this should work regardless of what IVR it calls. Below is the output of the both boxes.
--------------xml---------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <!-- <action application="send_dtmf" data="${ext}"/> --> <action application="sleep" data="1000"/> <!-- <action application="lua" data="test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension> </include> --------------xml----------------------
--------------test.lua---------------------- #!/bin/lua
soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav"
freeswitch.consoleLog("INFO", "got here\n")
--Starts Playing welcome message and accepts digits value = session:playAndGetDigits(2, 4, 3, 3000, "#", welcome, "", "\\d+")
freeswitch.consoleLog("INFO", "got digits " ..value.. "\n") --------------test.lua----------------------
--------------this FS box---------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(1002) Dialplan: sofia/external/1112223333 Action sleep(1000) Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) 2019-04-26 17:52:22.511865 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <> 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 To) 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(open=true) 2019-04-26 17:52:22.511865 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [open]=[true] EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=16436 lw=160 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=16437 lw=320 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=16438 lw=480 2019-04-26 17:52:24.571862 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=16439 lw=640 2019-04-26 17:52:24.591872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=16440 lw=800 2019-04-26 17:52:24.611866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=16441 lw=960 2019-04-26 17:52:24.631863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=16442 lw=1120 2019-04-26 17:52:24.651858 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=16443 lw=1280 2019-04-26 17:52:24.671867 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=16444 lw=1440 2019-04-26 17:52:24.691863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=16445 lw=1600 2019-04-26 17:52:24.711874 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=16446 lw=1760 2019-04-26 17:52:24.731866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=16447 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16448 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16449 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16450 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-26 17:52:25.151870 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=16451 lw=2400 2019-04-26 17:52:25.171870 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=16452 lw=2560 2019-04-26 17:52:25.191863 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=16453 lw=2720 2019-04-26 17:52:25.211881 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=16454 lw=2880 2019-04-26 17:52:25.231878 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=16455 lw=3040 2019-04-26 17:52:25.251862 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=16456 lw=3200 2019-04-26 17:52:25.271866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=16457 lw=3360 2019-04-26 17:52:25.291874 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=16458 lw=3520 2019-04-26 17:52:25.311871 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=16459 lw=3680 2019-04-26 17:52:25.331864 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=16460 lw=3840 2019-04-26 17:52:25.351866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=16461 lw=4000 2019-04-26 17:52:25.371873 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=16462 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16463 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16464 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16465 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-26 17:52:25.531882 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction. 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] --------------this FS box----------------------
--------------receiving FS box----------------------2019-04-26 20:53:34.216925 [NOTICE] mod_dptools.c:1312 Channel [sofia/internal/+13337777777@10.21.10.4] has been answered 2019-04-26 20:53:34.216925 [DEBUG] switch_channel.c:3773 (sofia/internal/+13337777777@10.21.10.4) Callstate Change RINGING -> ACTIVE EXECUTE sofia/internal/+13337777777@10.21.10.4 sleep(1000) 2019-04-26 20:53:34.636985 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 20:53:34.676971 [DEBUG] sofia.c:7084 Channel sofia/internal/+13337777777@10.21.10.4 entering state [ready][200] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(hangup_after_bridge=true) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [hangup_after_bridge]=[true] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(presence_id=9000@10.21.10.4) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [presence_id]=[9000@10.21.10.4] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(transfer_ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [transfer_ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ivr_menu_uuid=d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ivr_menu_uuid]=[d67bb786-a0bc-4094-91fa-76f7db68caeb] EXECUTE sofia/internal/+13337777777@10.21.10.4 ivr(d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f3c6005cdf0 Connected. 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f3c6005cdf0 released. 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:880 building menu 'd67bb786-a0bc-4094-91fa-76f7db68caeb' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu d67bb786-a0bc-4094-91fa-76f7db68caeb 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-26 20:53:35.376916 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-26 20:53:37.236985 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-26 20:53:37.876935 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:2080 2019-04-26 20:53:37.876935 [INFO] switch_channel.c:515 RECV DTMF 0:2080 2019-04-26 20:53:37.896923 [NOTICE] sofia.c:1012 Hangup sofia/internal/+13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] --------------receiving FS box----------------------
On Fri, Apr 26, 2019 at 8:53 AM David Villasmil <david.villasmil.work@gmail.com> wrote: Joli,
On you IVR, assuming you are using fs IVR? Please show us the IVR.
On Fri, 26 Apr 2019 at 06:19, John Covici <covici@ccs.covici.com> wrote: You have to have a bridge command in that dialplan to start the call after setting the execute_on_answer, the bridge does not belong in your samsclub script.
On Fri, 26 Apr 2019 00:02:14 -0400, Joli Martinez wrote:
[1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8 (quoted-printable)>] [1.2 <text/html; UTF-8 (quoted-printable)>] Hello
It is still not working. When I do just the application lua it works, but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the call at the beginning of my lua script.
<include> <extension name="samsclub_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> <!-- <action application="lua" data="samsclub.lua"/> --> <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> </condition> </extension> </include>
----------------------------------------------------------------------
2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
On Thu, Apr 25, 2019 at 5:34 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer.
Something like:
Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224
Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered.
On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil <david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil <david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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 [2 <text/plain; utf-8 (base64)>] _________________________________________________________________________
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici wb2una covici@ccs.covici.com
_________________________________________________________________________
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 -- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
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 _________________________________________________________________________
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
_________________________________________________________________________
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 _________________________________________________________________________
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
_________________________________________________________________________
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
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
Hello, I finally got it to dial my extension, but that is all it does. It dials the extension once then hangs up. I have set the call timeout and that does not seem to work. How can I get the call to continue to ring until I pick up then bridge the calls together. I have used the export nolocal and the set on the wait_on_answer and it does not make a difference. I also have changed my lua script to answer() and still nothing. ------------------ XML ----------------------------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="2000"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="set" data="call_timeout=10"/> <action application="sleep" data="5000"/> <action application="answer"/> <action application="sleep" data="1000"/> </condition> </extension> </include> ------------------ XML ----------------------------------------- ------------------Response from FS ----------------------------------------- EXECUTE sofia/external/1112223333 answer() EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-28 16:21:29.818764 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-28 16:21:29.818764 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] ------------------Response from FS ----------------------------------------- ------------------Lua Script ----------------------------------------- #!/bin/lua soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav" session:answer() session:execute("playback", welcome) ------------------Lua Script ----------------------------------------- On Sat, Apr 27, 2019 at 7:00 PM Ken Rice <krice@freeswitch.org> wrote:
you need to export no local it most likely so it gets set on the b leg’s answer. set puts it on the a leg
Sent from my iPhone
On Apr 27, 2019, at 13:34, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I have updated the config as requested with the exception of adding the send_dtmf line. I also did a reloadxml and it is still not working. What am I missing?
---------------xml-------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> </condition> </extension> </include> ---------------xml--------------------
---------------local FS-------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) Dialplan: sofia/external/1112223333 Action answer() Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(${ext}) Dialplan: sofia/external/1112223333 Action sleep(1000) 2019-04-27 11:27:56.598764 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <409> 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 Tot 2) 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-27 11:27:56.598764 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] EXECUTE sofia/external/1112223333 answer() EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=50563 lw=160 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=50564 lw=320 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=50565 lw=480 2019-04-27 11:27:58.658789 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=50566 lw=640 2019-04-27 11:27:58.678753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=50567 lw=800 2019-04-27 11:27:58.698752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=50568 lw=960 2019-04-27 11:27:58.718750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=50569 lw=1120 2019-04-27 11:27:58.738752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=50570 lw=1280 2019-04-27 11:27:58.758871 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=50571 lw=1440 2019-04-27 11:27:58.778753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=50572 lw=1600 2019-04-27 11:27:58.798750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=50573 lw=1760 2019-04-27 11:27:58.818750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=50574 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50575 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50576 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50577 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.238764 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=50578 lw=2400 2019-04-27 11:27:59.258748 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=50579 lw=2560 2019-04-27 11:27:59.278769 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=50580 lw=2720 2019-04-27 11:27:59.298757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=50581 lw=2880 2019-04-27 11:27:59.318750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=50582 lw=3040 2019-04-27 11:27:59.338757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=50583 lw=3200 2019-04-27 11:27:59.358750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=50584 lw=3360 2019-04-27 11:27:59.378753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=50585 lw=3520 2019-04-27 11:27:59.398753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=50586 lw=3680 2019-04-27 11:27:59.418759 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=50587 lw=3840 2019-04-27 11:27:59.438754 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=50588 lw=4000 2019-04-27 11:27:59.458746 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=50589 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50590 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50591 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50592 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, h. 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS--------------------
---------------remote FS-------------------- 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-27 14:25:13.656926 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-27 14:25:15.576972 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-27 14:25:16.156952 [NOTICE] sofia.c:1012 Hangup sofia/internal/+ 13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS--------------------
On Sat, Apr 27, 2019 at 1:49 PM Vallimamod Abdullah <vma@vallimamod.org> wrote:
Your non working example is (without the commented parts):
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension>
It should be:
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> </condition> </extension>
Keep in mind that execute_on_answer is an actual channel variable that you set (and not an application). On call answer, it is retrieved by freeswitch and its content is executed.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 16:10, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
Not sure I follow, the only variable in this case is the EXT and it is set above the execute_on_answer command. What other var should I set? Call originates from FS to an IVR, IVR answers and FS dials EXT (1002), FS wait for EXT to answer then executes lua script. In this case I have stripped down my script to just play a file. So my lua script does not take any parameters.
thanks,
On Sat, Apr 27, 2019 at 8:26 AM Vallimamod Abdullah <vma@vallimamod.org> wrote: Hi,
You need to set the execute_on_answer var before calling the answer application. Once the call is answered or bridged, it's too late.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 03:00, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
When I just use the "<action application="lua" data="test.lua"/>" the call goes through and sends the correct DTMF from the channel variable passed which is 1002. When I uncomment the "<action application="set" data="execute_on_answer=lua test.lua"/>" and comment out the other line, then do a reloadxml on fs. The DTMF is not passed correctly and the call fails. I have stripped down my test.lua script to just basic to only play a file and it still fails. In this scenario I am testing calling from the freeswitch box to another freeswitch IVR, but this should work regardless of what IVR it calls. Below is the output of the both boxes.
--------------xml---------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <!-- <action application="send_dtmf" data="${ext}"/> --> <action application="sleep" data="1000"/> <!-- <action application="lua" data="test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension> </include> --------------xml----------------------
--------------test.lua---------------------- #!/bin/lua
soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav"
freeswitch.consoleLog("INFO", "got here\n")
--Starts Playing welcome message and accepts digits value = session:playAndGetDigits(2, 4, 3, 3000, "#", welcome, "", "\\d+")
freeswitch.consoleLog("INFO", "got digits " ..value.. "\n") --------------test.lua----------------------
--------------this FS box---------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(1002) Dialplan: sofia/external/1112223333 Action sleep(1000) Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) 2019-04-26 17:52:22.511865 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <> 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 To) 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(open=true) 2019-04-26 17:52:22.511865 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [open]=[true] EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=16436 lw=160 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=16437 lw=320 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=16438 lw=480 2019-04-26 17:52:24.571862 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=16439 lw=640 2019-04-26 17:52:24.591872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=16440 lw=800 2019-04-26 17:52:24.611866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=16441 lw=960 2019-04-26 17:52:24.631863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=16442 lw=1120 2019-04-26 17:52:24.651858 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=16443 lw=1280 2019-04-26 17:52:24.671867 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=16444 lw=1440 2019-04-26 17:52:24.691863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=16445 lw=1600 2019-04-26 17:52:24.711874 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=16446 lw=1760 2019-04-26 17:52:24.731866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=16447 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16448 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16449 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16450 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-26 17:52:25.151870 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=16451 lw=2400 2019-04-26 17:52:25.171870 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=16452 lw=2560 2019-04-26 17:52:25.191863 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=16453 lw=2720 2019-04-26 17:52:25.211881 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=16454 lw=2880 2019-04-26 17:52:25.231878 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=16455 lw=3040 2019-04-26 17:52:25.251862 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=16456 lw=3200 2019-04-26 17:52:25.271866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=16457 lw=3360 2019-04-26 17:52:25.291874 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=16458 lw=3520 2019-04-26 17:52:25.311871 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=16459 lw=3680 2019-04-26 17:52:25.331864 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=16460 lw=3840 2019-04-26 17:52:25.351866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=16461 lw=4000 2019-04-26 17:52:25.371873 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=16462 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16463 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16464 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16465 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-26 17:52:25.531882 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction. 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] --------------this FS box----------------------
--------------receiving FS box----------------------2019-04-26 20:53:34.216925 [NOTICE] mod_dptools.c:1312 Channel [sofia/internal/+ 13337777777@10.21.10.4] has been answered 2019-04-26 20:53:34.216925 [DEBUG] switch_channel.c:3773 (sofia/internal/+13337777777@10.21.10.4) Callstate Change RINGING -> ACTIVE EXECUTE sofia/internal/+13337777777@10.21.10.4 sleep(1000) 2019-04-26 20:53:34.636985 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 20:53:34.676971 [DEBUG] sofia.c:7084 Channel sofia/internal/+13337777777@10.21.10.4 entering state [ready][200] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(hangup_after_bridge=true) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [hangup_after_bridge]=[true] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(presence_id= 9000@10.21.10.4) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [presence_id]=[9000@10.21.10.4] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(transfer_ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [transfer_ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ivr_menu_uuid=d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ivr_menu_uuid]=[d67bb786-a0bc-4094-91fa-76f7db68caeb] EXECUTE sofia/internal/+13337777777@10.21.10.4 ivr(d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f3c6005cdf0 Connected. 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f3c6005cdf0 released. 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:880 building menu 'd67bb786-a0bc-4094-91fa-76f7db68caeb' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu d67bb786-a0bc-4094-91fa-76f7db68caeb 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-26 20:53:35.376916 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-26 20:53:37.236985 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-26 20:53:37.876935 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:2080 2019-04-26 20:53:37.876935 [INFO] switch_channel.c:515 RECV DTMF 0:2080 2019-04-26 20:53:37.896923 [NOTICE] sofia.c:1012 Hangup sofia/internal/+13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] --------------receiving FS box----------------------
On Fri, Apr 26, 2019 at 8:53 AM David Villasmil < david.villasmil.work@gmail.com> wrote: Joli,
On you IVR, assuming you are using fs IVR? Please show us the IVR.
On Fri, 26 Apr 2019 at 06:19, John Covici <covici@ccs.covici.com> wrote: You have to have a bridge command in that dialplan to start the call after setting the execute_on_answer, the bridge does not belong in your samsclub script.
On Fri, 26 Apr 2019 00:02:14 -0400, Joli Martinez wrote:
[1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8 (quoted-printable)>] [1.2 <text/html; UTF-8 (quoted-printable)>] Hello
It is still not working. When I do just the application lua it
works, but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the
call at the beginning of my lua script.
<include> <extension name="samsclub_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> <!-- <action application="lua" data="samsclub.lua"/> --> <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> </condition> </extension> </include>
2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit
delay of 40ms
EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
On Thu, Apr 25, 2019 at 5:34 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer.
Something like:
Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224
Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered.
On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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 [2 <text/plain; utf-8 (base64)>]
The FreeSWITCH project is sponsored by SignalWire
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici wb2una covici@ccs.covici.com
The FreeSWITCH project is sponsored by SignalWire
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 -- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
You're doing export no local, that means you need a b-leg or it never will execute, You can't answer the a-leg and execute it. /b On Sun, Apr 28, 2019 at 6:35 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I finally got it to dial my extension, but that is all it does. It dials the extension once then hangs up. I have set the call timeout and that does not seem to work. How can I get the call to continue to ring until I pick up then bridge the calls together. I have used the export nolocal and the set on the wait_on_answer and it does not make a difference. I also have changed my lua script to answer() and still nothing.
------------------ XML ----------------------------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="2000"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="set" data="call_timeout=10"/> <action application="sleep" data="5000"/> <action application="answer"/> <action application="sleep" data="1000"/> </condition> </extension> </include> ------------------ XML -----------------------------------------
------------------Response from FS ----------------------------------------- EXECUTE sofia/external/1112223333 answer() EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-28 16:21:29.818764 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-28 16:21:29.818764 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] ------------------Response from FS -----------------------------------------
------------------Lua Script ----------------------------------------- #!/bin/lua
soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav"
session:answer()
session:execute("playback", welcome)
------------------Lua Script -----------------------------------------
On Sat, Apr 27, 2019 at 7:00 PM Ken Rice <krice@freeswitch.org> wrote:
you need to export no local it most likely so it gets set on the b leg’s answer. set puts it on the a leg
Sent from my iPhone
On Apr 27, 2019, at 13:34, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I have updated the config as requested with the exception of adding the send_dtmf line. I also did a reloadxml and it is still not working. What am I missing?
---------------xml-------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> </condition> </extension> </include> ---------------xml--------------------
---------------local FS-------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) Dialplan: sofia/external/1112223333 Action answer() Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(${ext}) Dialplan: sofia/external/1112223333 Action sleep(1000) 2019-04-27 11:27:56.598764 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <409> 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 Tot 2) 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-27 11:27:56.598764 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] EXECUTE sofia/external/1112223333 answer() EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=50563 lw=160 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=50564 lw=320 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=50565 lw=480 2019-04-27 11:27:58.658789 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=50566 lw=640 2019-04-27 11:27:58.678753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=50567 lw=800 2019-04-27 11:27:58.698752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=50568 lw=960 2019-04-27 11:27:58.718750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=50569 lw=1120 2019-04-27 11:27:58.738752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=50570 lw=1280 2019-04-27 11:27:58.758871 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=50571 lw=1440 2019-04-27 11:27:58.778753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=50572 lw=1600 2019-04-27 11:27:58.798750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=50573 lw=1760 2019-04-27 11:27:58.818750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=50574 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50575 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50576 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50577 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.238764 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=50578 lw=2400 2019-04-27 11:27:59.258748 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=50579 lw=2560 2019-04-27 11:27:59.278769 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=50580 lw=2720 2019-04-27 11:27:59.298757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=50581 lw=2880 2019-04-27 11:27:59.318750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=50582 lw=3040 2019-04-27 11:27:59.338757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=50583 lw=3200 2019-04-27 11:27:59.358750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=50584 lw=3360 2019-04-27 11:27:59.378753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=50585 lw=3520 2019-04-27 11:27:59.398753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=50586 lw=3680 2019-04-27 11:27:59.418759 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=50587 lw=3840 2019-04-27 11:27:59.438754 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=50588 lw=4000 2019-04-27 11:27:59.458746 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=50589 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50590 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50591 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50592 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, h. 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS--------------------
---------------remote FS-------------------- 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-27 14:25:13.656926 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-27 14:25:15.576972 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-27 14:25:16.156952 [NOTICE] sofia.c:1012 Hangup sofia/internal/+ 13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS--------------------
On Sat, Apr 27, 2019 at 1:49 PM Vallimamod Abdullah <vma@vallimamod.org> wrote:
Your non working example is (without the commented parts):
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension>
It should be:
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> </condition> </extension>
Keep in mind that execute_on_answer is an actual channel variable that you set (and not an application). On call answer, it is retrieved by freeswitch and its content is executed.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 16:10, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
Not sure I follow, the only variable in this case is the EXT and it is set above the execute_on_answer command. What other var should I set? Call originates from FS to an IVR, IVR answers and FS dials EXT (1002), FS wait for EXT to answer then executes lua script. In this case I have stripped down my script to just play a file. So my lua script does not take any parameters.
thanks,
On Sat, Apr 27, 2019 at 8:26 AM Vallimamod Abdullah < vma@vallimamod.org> wrote: Hi,
You need to set the execute_on_answer var before calling the answer application. Once the call is answered or bridged, it's too late.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 03:00, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
When I just use the "<action application="lua" data="test.lua"/>" the call goes through and sends the correct DTMF from the channel variable passed which is 1002. When I uncomment the "<action application="set" data="execute_on_answer=lua test.lua"/>" and comment out the other line, then do a reloadxml on fs. The DTMF is not passed correctly and the call fails. I have stripped down my test.lua script to just basic to only play a file and it still fails. In this scenario I am testing calling from the freeswitch box to another freeswitch IVR, but this should work regardless of what IVR it calls. Below is the output of the both boxes.
--------------xml---------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <!-- <action application="send_dtmf" data="${ext}"/> --> <action application="sleep" data="1000"/> <!-- <action application="lua" data="test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension> </include> --------------xml----------------------
--------------test.lua---------------------- #!/bin/lua
soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav"
freeswitch.consoleLog("INFO", "got here\n")
--Starts Playing welcome message and accepts digits value = session:playAndGetDigits(2, 4, 3, 3000, "#", welcome, "", "\\d+")
freeswitch.consoleLog("INFO", "got digits " ..value.. "\n") --------------test.lua----------------------
--------------this FS box---------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(1002) Dialplan: sofia/external/1112223333 Action sleep(1000) Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) 2019-04-26 17:52:22.511865 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <> 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 To) 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(open=true) 2019-04-26 17:52:22.511865 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [open]=[true] EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=16436 lw=160 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=16437 lw=320 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=16438 lw=480 2019-04-26 17:52:24.571862 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=16439 lw=640 2019-04-26 17:52:24.591872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=16440 lw=800 2019-04-26 17:52:24.611866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=16441 lw=960 2019-04-26 17:52:24.631863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=16442 lw=1120 2019-04-26 17:52:24.651858 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=16443 lw=1280 2019-04-26 17:52:24.671867 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=16444 lw=1440 2019-04-26 17:52:24.691863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=16445 lw=1600 2019-04-26 17:52:24.711874 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=16446 lw=1760 2019-04-26 17:52:24.731866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=16447 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16448 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16449 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16450 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-26 17:52:25.151870 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=16451 lw=2400 2019-04-26 17:52:25.171870 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=16452 lw=2560 2019-04-26 17:52:25.191863 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=16453 lw=2720 2019-04-26 17:52:25.211881 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=16454 lw=2880 2019-04-26 17:52:25.231878 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=16455 lw=3040 2019-04-26 17:52:25.251862 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=16456 lw=3200 2019-04-26 17:52:25.271866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=16457 lw=3360 2019-04-26 17:52:25.291874 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=16458 lw=3520 2019-04-26 17:52:25.311871 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=16459 lw=3680 2019-04-26 17:52:25.331864 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=16460 lw=3840 2019-04-26 17:52:25.351866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=16461 lw=4000 2019-04-26 17:52:25.371873 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=16462 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16463 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16464 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16465 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-26 17:52:25.531882 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction. 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] --------------this FS box----------------------
--------------receiving FS box----------------------2019-04-26 20:53:34.216925 [NOTICE] mod_dptools.c:1312 Channel [sofia/internal/+ 13337777777@10.21.10.4] has been answered 2019-04-26 20:53:34.216925 [DEBUG] switch_channel.c:3773 (sofia/internal/+13337777777@10.21.10.4) Callstate Change RINGING -> ACTIVE EXECUTE sofia/internal/+13337777777@10.21.10.4 sleep(1000) 2019-04-26 20:53:34.636985 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 20:53:34.676971 [DEBUG] sofia.c:7084 Channel sofia/internal/+13337777777@10.21.10.4 entering state [ready][200] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(hangup_after_bridge=true) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [hangup_after_bridge]=[true] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(presence_id= 9000@10.21.10.4) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [presence_id]=[9000@10.21.10.4] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(transfer_ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [transfer_ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ivr_menu_uuid=d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ivr_menu_uuid]=[d67bb786-a0bc-4094-91fa-76f7db68caeb] EXECUTE sofia/internal/+13337777777@10.21.10.4 ivr(d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f3c6005cdf0 Connected. 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f3c6005cdf0 released. 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:880 building menu 'd67bb786-a0bc-4094-91fa-76f7db68caeb' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu d67bb786-a0bc-4094-91fa-76f7db68caeb 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-26 20:53:35.376916 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-26 20:53:37.236985 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-26 20:53:37.876935 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:2080 2019-04-26 20:53:37.876935 [INFO] switch_channel.c:515 RECV DTMF 0:2080 2019-04-26 20:53:37.896923 [NOTICE] sofia.c:1012 Hangup sofia/internal/+13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] --------------receiving FS box----------------------
On Fri, Apr 26, 2019 at 8:53 AM David Villasmil < david.villasmil.work@gmail.com> wrote: Joli,
On you IVR, assuming you are using fs IVR? Please show us the IVR.
On Fri, 26 Apr 2019 at 06:19, John Covici <covici@ccs.covici.com> wrote: You have to have a bridge command in that dialplan to start the call after setting the execute_on_answer, the bridge does not belong in your samsclub script.
On Fri, 26 Apr 2019 00:02:14 -0400, Joli Martinez wrote:
[1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8 (quoted-printable)>] [1.2 <text/html; UTF-8 (quoted-printable)>] Hello
It is still not working. When I do just the application lua it
works, but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the
call at the beginning of my lua script.
<include> <extension name="samsclub_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> <!-- <action application="lua" data="samsclub.lua"/> --> <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> </condition> </extension> </include>
2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit
delay of 40ms
EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING]
On Thu, Apr 25, 2019 at 5:34 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
You need to bridge the call SOMEWHERE before you can run execute_on_answer. So what you have to do, send the call out setting the execute_on_answer.
Something like:
Answer() Play some message Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224
Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered.
On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first line reading session:answer() can I replace it with session:execute_on_answer()?
Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution?
thanks,
On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. If you want to manipulate the incoming call with the lua, then just do;
<action application="lua" data="test.lua"/>
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call.
If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through.
What am I missing or how can I get it to work?
thanks,
On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere?
On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
This is what I get when I uncomment the lines. I also did a reloadxml.
right after the last DTMF digit it dies
------------------------------------------------------ 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING]
------------------------------------------------------------
On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Can you send the console log when it fails?
On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing?
----------------------------- <extension name="my_dialplan"> <condition field="destination_number" expression="^9176$"> <action application="sleep" data="2000"/> <action application="send_dtmf" data="1002"/> <action application="lua" data="test.lua"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> </condition> </extension> </include> ----------------------------------------
On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
That should work properly, what are trying to accomplish exactly?
On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I am trying to find more info on the application "execute_on_answer".
I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much documentation on this application. Is there another way to test if the calling party has been answered?
thanks,
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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 [2 <text/plain; utf-8 (base64)>]
The FreeSWITCH project is sponsored by SignalWire
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici wb2una covici@ccs.covici.com
The FreeSWITCH project is sponsored by SignalWire
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 -- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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>
Hello, I have tried both <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> <action application="set" data="execute_on_answer=lua test.lua"/> and none seem to work. I also do a reloadxml after I uncomment them. thanks, On Sun, Apr 28, 2019 at 8:20 PM Brian West <brian@freeswitch.com> wrote:
You're doing export no local, that means you need a b-leg or it never will execute, You can't answer the a-leg and execute it.
/b
On Sun, Apr 28, 2019 at 6:35 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I finally got it to dial my extension, but that is all it does. It dials the extension once then hangs up. I have set the call timeout and that does not seem to work. How can I get the call to continue to ring until I pick up then bridge the calls together. I have used the export nolocal and the set on the wait_on_answer and it does not make a difference. I also have changed my lua script to answer() and still nothing.
------------------ XML ----------------------------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="2000"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="set" data="call_timeout=10"/> <action application="sleep" data="5000"/> <action application="answer"/> <action application="sleep" data="1000"/> </condition> </extension> </include> ------------------ XML -----------------------------------------
------------------Response from FS ----------------------------------------- EXECUTE sofia/external/1112223333 answer() EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-28 16:21:29.818764 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-28 16:21:29.818764 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] ------------------Response from FS -----------------------------------------
------------------Lua Script ----------------------------------------- #!/bin/lua
soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav"
session:answer()
session:execute("playback", welcome)
------------------Lua Script -----------------------------------------
On Sat, Apr 27, 2019 at 7:00 PM Ken Rice <krice@freeswitch.org> wrote:
you need to export no local it most likely so it gets set on the b leg’s answer. set puts it on the a leg
Sent from my iPhone
On Apr 27, 2019, at 13:34, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I have updated the config as requested with the exception of adding the send_dtmf line. I also did a reloadxml and it is still not working. What am I missing?
---------------xml-------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> </condition> </extension> </include> ---------------xml--------------------
---------------local FS-------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) Dialplan: sofia/external/1112223333 Action answer() Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(${ext}) Dialplan: sofia/external/1112223333 Action sleep(1000) 2019-04-27 11:27:56.598764 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <409> 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 Tot 2) 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-27 11:27:56.598764 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] EXECUTE sofia/external/1112223333 answer() EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=50563 lw=160 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=50564 lw=320 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=50565 lw=480 2019-04-27 11:27:58.658789 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=50566 lw=640 2019-04-27 11:27:58.678753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=50567 lw=800 2019-04-27 11:27:58.698752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=50568 lw=960 2019-04-27 11:27:58.718750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=50569 lw=1120 2019-04-27 11:27:58.738752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=50570 lw=1280 2019-04-27 11:27:58.758871 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=50571 lw=1440 2019-04-27 11:27:58.778753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=50572 lw=1600 2019-04-27 11:27:58.798750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=50573 lw=1760 2019-04-27 11:27:58.818750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=50574 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50575 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50576 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50577 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.238764 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=50578 lw=2400 2019-04-27 11:27:59.258748 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=50579 lw=2560 2019-04-27 11:27:59.278769 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=50580 lw=2720 2019-04-27 11:27:59.298757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=50581 lw=2880 2019-04-27 11:27:59.318750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=50582 lw=3040 2019-04-27 11:27:59.338757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=50583 lw=3200 2019-04-27 11:27:59.358750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=50584 lw=3360 2019-04-27 11:27:59.378753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=50585 lw=3520 2019-04-27 11:27:59.398753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=50586 lw=3680 2019-04-27 11:27:59.418759 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=50587 lw=3840 2019-04-27 11:27:59.438754 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=50588 lw=4000 2019-04-27 11:27:59.458746 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=50589 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50590 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50591 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50592 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, h. 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS--------------------
---------------remote FS-------------------- 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-27 14:25:13.656926 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-27 14:25:15.576972 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-27 14:25:16.156952 [NOTICE] sofia.c:1012 Hangup sofia/internal/+ 13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS--------------------
On Sat, Apr 27, 2019 at 1:49 PM Vallimamod Abdullah <vma@vallimamod.org> wrote:
Your non working example is (without the commented parts):
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension>
It should be:
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> </condition> </extension>
Keep in mind that execute_on_answer is an actual channel variable that you set (and not an application). On call answer, it is retrieved by freeswitch and its content is executed.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 16:10, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
Not sure I follow, the only variable in this case is the EXT and it is set above the execute_on_answer command. What other var should I set? Call originates from FS to an IVR, IVR answers and FS dials EXT (1002), FS wait for EXT to answer then executes lua script. In this case I have stripped down my script to just play a file. So my lua script does not take any parameters.
thanks,
On Sat, Apr 27, 2019 at 8:26 AM Vallimamod Abdullah < vma@vallimamod.org> wrote: Hi,
You need to set the execute_on_answer var before calling the answer application. Once the call is answered or bridged, it's too late.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 03:00, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
When I just use the "<action application="lua" data="test.lua"/>" the call goes through and sends the correct DTMF from the channel variable passed which is 1002. When I uncomment the "<action application="set" data="execute_on_answer=lua test.lua"/>" and comment out the other line, then do a reloadxml on fs. The DTMF is not passed correctly and the call fails. I have stripped down my test.lua script to just basic to only play a file and it still fails. In this scenario I am testing calling from the freeswitch box to another freeswitch IVR, but this should work regardless of what IVR it calls. Below is the output of the both boxes.
--------------xml---------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <!-- <action application="send_dtmf" data="${ext}"/> --> <action application="sleep" data="1000"/> <!-- <action application="lua" data="test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension> </include> --------------xml----------------------
--------------test.lua---------------------- #!/bin/lua
soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav"
freeswitch.consoleLog("INFO", "got here\n")
--Starts Playing welcome message and accepts digits value = session:playAndGetDigits(2, 4, 3, 3000, "#", welcome, "", "\\d+")
freeswitch.consoleLog("INFO", "got digits " ..value.. "\n") --------------test.lua----------------------
--------------this FS box---------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(1002) Dialplan: sofia/external/1112223333 Action sleep(1000) Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) 2019-04-26 17:52:22.511865 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <> 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 To) 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(open=true) 2019-04-26 17:52:22.511865 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [open]=[true] EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=16436 lw=160 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=16437 lw=320 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=16438 lw=480 2019-04-26 17:52:24.571862 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=16439 lw=640 2019-04-26 17:52:24.591872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=16440 lw=800 2019-04-26 17:52:24.611866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=16441 lw=960 2019-04-26 17:52:24.631863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=16442 lw=1120 2019-04-26 17:52:24.651858 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=16443 lw=1280 2019-04-26 17:52:24.671867 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=16444 lw=1440 2019-04-26 17:52:24.691863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=16445 lw=1600 2019-04-26 17:52:24.711874 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=16446 lw=1760 2019-04-26 17:52:24.731866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=16447 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16448 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16449 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16450 lw=1920 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-26 17:52:25.151870 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=16451 lw=2400 2019-04-26 17:52:25.171870 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=16452 lw=2560 2019-04-26 17:52:25.191863 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=16453 lw=2720 2019-04-26 17:52:25.211881 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=16454 lw=2880 2019-04-26 17:52:25.231878 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=16455 lw=3040 2019-04-26 17:52:25.251862 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=16456 lw=3200 2019-04-26 17:52:25.271866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=16457 lw=3360 2019-04-26 17:52:25.291874 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=16458 lw=3520 2019-04-26 17:52:25.311871 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=16459 lw=3680 2019-04-26 17:52:25.331864 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=16460 lw=3840 2019-04-26 17:52:25.351866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=16461 lw=4000 2019-04-26 17:52:25.371873 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=16462 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16463 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16464 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16465 lw=4160 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-26 17:52:25.531882 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction. 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] --------------this FS box----------------------
--------------receiving FS box----------------------2019-04-26 20:53:34.216925 [NOTICE] mod_dptools.c:1312 Channel [sofia/internal/+ 13337777777@10.21.10.4] has been answered 2019-04-26 20:53:34.216925 [DEBUG] switch_channel.c:3773 (sofia/internal/+13337777777@10.21.10.4) Callstate Change RINGING -> ACTIVE EXECUTE sofia/internal/+13337777777@10.21.10.4 sleep(1000) 2019-04-26 20:53:34.636985 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-26 20:53:34.676971 [DEBUG] sofia.c:7084 Channel sofia/internal/+13337777777@10.21.10.4 entering state [ready][200] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(hangup_after_bridge=true) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [hangup_after_bridge]=[true] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(presence_id= 9000@10.21.10.4) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [presence_id]=[9000@10.21.10.4] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(transfer_ringback=local_stream://default) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [transfer_ringback]=[local_stream://default] EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ivr_menu_uuid=d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ivr_menu_uuid]=[d67bb786-a0bc-4094-91fa-76f7db68caeb] EXECUTE sofia/internal/+13337777777@10.21.10.4 ivr(d67bb786-a0bc-4094-91fa-76f7db68caeb) 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f3c6005cdf0 Connected. 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f3c6005cdf0 released. 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:880 building menu 'd67bb786-a0bc-4094-91fa-76f7db68caeb' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu d67bb786-a0bc-4094-91fa-76f7db68caeb 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-26 20:53:35.376916 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-26 20:53:37.236985 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-26 20:53:37.876935 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:2080 2019-04-26 20:53:37.876935 [INFO] switch_channel.c:515 RECV DTMF 0:2080 2019-04-26 20:53:37.896923 [NOTICE] sofia.c:1012 Hangup sofia/internal/+13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] --------------receiving FS box----------------------
On Fri, Apr 26, 2019 at 8:53 AM David Villasmil < david.villasmil.work@gmail.com> wrote: Joli,
On you IVR, assuming you are using fs IVR? Please show us the IVR.
On Fri, 26 Apr 2019 at 06:19, John Covici <covici@ccs.covici.com> wrote: You have to have a bridge command in that dialplan to start the call after setting the execute_on_answer, the bridge does not belong in your samsclub script.
On Fri, 26 Apr 2019 00:02:14 -0400, Joli Martinez wrote: > > [1 <multipart/alternative (7bit)>] > [1.1 <text/plain; UTF-8 (quoted-printable)>] > [1.2 <text/html; UTF-8 (quoted-printable)>] > Hello > > It is still not working. When I do just the application lua it works, but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the > call at the beginning of my lua script. > > <include> > <extension name="samsclub_ivr"> > <condition field="destination_number" expression="^9176$"> > <action application="answer"/> > <action application="sleep" data="2000"/> > <action application="send_dtmf" data="${ext}"/> > <action application="sleep" data="1000"/> > <!-- <action application="lua" data="samsclub.lua"/> --> > <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> > <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> > </condition> > </extension> > </include> > >
> > 2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms > EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) > 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] > 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. > 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] > > 2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms > EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) > 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] > 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. > 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] > > On Thu, Apr 25, 2019 at 5:34 PM David Villasmil < david.villasmil.work@gmail.com> wrote: > > You need to bridge the call SOMEWHERE before you can run execute_on_answer. > So what you have to do, send the call out setting the execute_on_answer. > > Something like: > > Answer() > Play some message > Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224 > > Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered. > > On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote: > > Hello, > > ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first > line reading session:answer() can I replace it with session:execute_on_answer()? > > Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution? > > thanks, > > On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote: > > I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. > If you want to manipulate the incoming call with the lua, then just do; > > <action application="lua" data="test.lua"/> > > Regards, > > David Villasmil > email: david.villasmil.work@gmail.com > phone: +34669448337 > > On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez < mrjoli021@gmail.com> wrote: > > Hello, > > What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call. > > If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through. > > What am I missing or how can I get it to work? > > thanks, > > On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote: > > So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere? > > On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote: > > Hello, > > This is what I get when I uncomment the lines. I also did a reloadxml. > > right after the last DTMF digit it dies > > ------------------------------------------------------ > 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf > digit=2 ms=250 samples=2000 > EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) > 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] > 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. > 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING] > > ------------------------------------------------------------ > > On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote: > > Can you send the console log when it fails? > > On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote: > > Hello, > > I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the > "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing? > > ----------------------------- > <extension name="my_dialplan"> > <condition field="destination_number" expression="^9176$"> > <action application="sleep" data="2000"/> > <action application="send_dtmf" data="1002"/> > <action application="lua" data="test.lua"/> > <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> > </condition> > </extension> > </include> > ---------------------------------------- > > On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote: > > That should work properly, what are trying to accomplish exactly? > > On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote: > > Hello, > > I am trying to find more info on the application "execute_on_answer". > > I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much > documentation on this application. Is there another way to test if the calling party has been answered? > > thanks, > >
> > 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 > > -- > Regards, > > David Villasmil > email: david.villasmil.work@gmail.com > phone: +34669448337 >
> > 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 > >
> > 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 > > -- > Regards, > > David Villasmil > email: david.villasmil.work@gmail.com > phone: +34669448337 >
> > 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 > >
> > 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 > > -- > Regards, > > David Villasmil > email: david.villasmil.work@gmail.com > phone: +34669448337 >
> > 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 > >
> > 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 > >
> > 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 > >
> > 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 > > -- > Regards, > > David Villasmil > email: david.villasmil.work@gmail.com > phone: +34669448337 >
> > 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 > [2 <text/plain; utf-8 (base64)>] >
> > 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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici wb2una covici@ccs.covici.com
The FreeSWITCH project is sponsored by SignalWire
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 -- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
The FreeSWITCH project is sponsored by SignalWire
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
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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> _________________________________________________________________________
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
Joli, You're not getting the point. Let me put it like this: ---> Incimong call (a-leg) ---> set execute_on_answer nolocal (meaning, for the b-leg). ---> answer (a-leg) ---> play some message (a-leg) That's all you're doing, you have no b-leg. You need something like: ---> Incimong call (a-leg) ---> set execute_on_answer nolocal (meaning, for the b-leg). ---> answer (a-leg) ---> play some message (a-leg) *---> bridge the call to a user or an agent. (b-leg)* *---> call is answered by the agent/user* *---> EXECUTE_ON_ANSWER is actually executed, because NOW you have a b-leg.* Hope this helps Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Mon, Apr 29, 2019 at 2:09 AM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I have tried both <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> <action application="set" data="execute_on_answer=lua test.lua"/> and none seem to work. I also do a reloadxml after I uncomment them.
thanks,
On Sun, Apr 28, 2019 at 8:20 PM Brian West <brian@freeswitch.com> wrote:
You're doing export no local, that means you need a b-leg or it never will execute, You can't answer the a-leg and execute it.
/b
On Sun, Apr 28, 2019 at 6:35 PM Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I finally got it to dial my extension, but that is all it does. It dials the extension once then hangs up. I have set the call timeout and that does not seem to work. How can I get the call to continue to ring until I pick up then bridge the calls together. I have used the export nolocal and the set on the wait_on_answer and it does not make a difference. I also have changed my lua script to answer() and still nothing.
------------------ XML ----------------------------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="2000"/> <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="set" data="call_timeout=10"/> <action application="sleep" data="5000"/> <action application="answer"/> <action application="sleep" data="1000"/> </condition> </extension> </include> ------------------ XML -----------------------------------------
------------------Response from FS ----------------------------------------- EXECUTE sofia/external/1112223333 answer() EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-28 16:21:29.818764 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. 2019-04-28 16:21:29.818764 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] ------------------Response from FS -----------------------------------------
------------------Lua Script ----------------------------------------- #!/bin/lua
soundDir = "/etc/freeswitch/scripts/sounds/" welcome = soundDir .. "welcome.wav"
session:answer()
session:execute("playback", welcome)
------------------Lua Script -----------------------------------------
On Sat, Apr 27, 2019 at 7:00 PM Ken Rice <krice@freeswitch.org> wrote:
you need to export no local it most likely so it gets set on the b leg’s answer. set puts it on the a leg
Sent from my iPhone
On Apr 27, 2019, at 13:34, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I have updated the config as requested with the exception of adding the send_dtmf line. I also did a reloadxml and it is still not working. What am I missing?
---------------xml-------------------- <include> <extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="send_dtmf" data="${ext}"/> <action application="sleep" data="1000"/> </condition> </extension> </include> ---------------xml--------------------
---------------local FS-------------------- Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) Dialplan: sofia/external/1112223333 Action answer() Dialplan: sofia/external/1112223333 Action sleep(2000) Dialplan: sofia/external/1112223333 Action send_dtmf(${ext}) Dialplan: sofia/external/1112223333 Action sleep(1000) 2019-04-27 11:27:56.598764 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <409> 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 Tot 2) 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE 2019-04-27 11:27:56.598764 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) 2019-04-27 11:27:56.598764 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] EXECUTE sofia/external/1112223333 answer() EXECUTE sofia/external/1112223333 sleep(2000) EXECUTE sofia/external/1112223333 send_dtmf(1002) 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=1 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=0 ms=250 samples=2000 2019-04-27 11:27:58.598816 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf digit=2 ms=250 samples=2000 EXECUTE sofia/external/1112223333 sleep(1000) 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=50563 lw=160 2019-04-27 11:27:58.618751 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=50564 lw=320 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-04-27 11:27:58.638746 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=50565 lw=480 2019-04-27 11:27:58.658789 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=50566 lw=640 2019-04-27 11:27:58.678753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=50567 lw=800 2019-04-27 11:27:58.698752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=50568 lw=960 2019-04-27 11:27:58.718750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=50569 lw=1120 2019-04-27 11:27:58.738752 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=50570 lw=1280 2019-04-27 11:27:58.758871 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=50571 lw=1440 2019-04-27 11:27:58.778753 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=50572 lw=1600 2019-04-27 11:27:58.798750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=50573 lw=1760 2019-04-27 11:27:58.818750 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=50574 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50575 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50576 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=50577 lw=1920 2019-04-27 11:27:58.838753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.238764 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=50578 lw=2400 2019-04-27 11:27:59.258748 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=50579 lw=2560 2019-04-27 11:27:59.278769 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=50580 lw=2720 2019-04-27 11:27:59.298757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=50581 lw=2880 2019-04-27 11:27:59.318750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=50582 lw=3040 2019-04-27 11:27:59.338757 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=50583 lw=3200 2019-04-27 11:27:59.358750 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=50584 lw=3360 2019-04-27 11:27:59.378753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=50585 lw=3520 2019-04-27 11:27:59.398753 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=50586 lw=3680 2019-04-27 11:27:59.418759 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=50587 lw=3840 2019-04-27 11:27:59.438754 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=50588 lw=4000 2019-04-27 11:27:59.458746 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=50589 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50590 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50591 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=50592 lw=4160 2019-04-27 11:27:59.478753 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, h. 2019-04-27 11:27:59.618769 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS--------------------
---------------remote FS-------------------- 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite 2019-04-27 14:25:13.496934 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated 2019-04-27 14:25:13.656926 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR 2019-04-27 14:25:15.576972 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [INFO] switch_channel.c:515 RECV DTMF 1:2080 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_play_say.c:2907 done speaking text 2019-04-27 14:25:15.576972 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 2019-04-27 14:25:16.156952 [NOTICE] sofia.c:1012 Hangup sofia/internal/+ 13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] ---------------local FS--------------------
On Sat, Apr 27, 2019 at 1:49 PM Vallimamod Abdullah <vma@vallimamod.org> wrote:
Your non working example is (without the commented parts):
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> <action application="set" data="execute_on_answer=lua test.lua"/> </condition> </extension>
It should be:
<extension name="test_ivr"> <condition field="destination_number" expression="^9176$"> <action application="set" data="execute_on_answer=lua test.lua"/> <action application="answer"/> <action application="sleep" data="2000"/> <action application="sleep" data="1000"/> </condition> </extension>
Keep in mind that execute_on_answer is an actual channel variable that you set (and not an application). On call answer, it is retrieved by freeswitch and its content is executed.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 27 Apr 2019, at 16:10, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
Not sure I follow, the only variable in this case is the EXT and it is set above the execute_on_answer command. What other var should I set? Call originates from FS to an IVR, IVR answers and FS dials EXT (1002), FS wait for EXT to answer then executes lua script. In this case I have stripped down my script to just play a file. So my lua script does not take any parameters.
thanks,
On Sat, Apr 27, 2019 at 8:26 AM Vallimamod Abdullah < vma@vallimamod.org> wrote: Hi,
You need to set the execute_on_answer var before calling the answer application. Once the call is answered or bridged, it's too late.
Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
> On 27 Apr 2019, at 03:00, Joli Martinez <mrjoli021@gmail.com> wrote: > > Hello, > > When I just use the "<action application="lua" data="test.lua"/>" the call goes through and sends the correct DTMF from the channel variable passed which is 1002. When I uncomment the "<action application="set" data="execute_on_answer=lua test.lua"/>" and comment out the other line, then do a reloadxml on fs. The DTMF is not passed correctly and the call fails. I have stripped down my test.lua script to just basic to only play a file and it still fails. In this scenario I am testing calling from the freeswitch box to another freeswitch IVR, but this should work regardless of what IVR it calls. Below is the output of the both boxes. > > > --------------xml---------------------- > <include> > <extension name="test_ivr"> > <condition field="destination_number" expression="^9176$"> > <action application="answer"/> > <action application="sleep" data="2000"/> > <!-- <action application="send_dtmf" data="${ext}"/> --> > <action application="sleep" data="1000"/> > <!-- <action application="lua" data="test.lua"/> --> > <action application="set" data="execute_on_answer=lua test.lua"/> > </condition> > </extension> > </include> > --------------xml---------------------- > > --------------test.lua---------------------- > #!/bin/lua > > soundDir = "/etc/freeswitch/scripts/sounds/" > welcome = soundDir .. "welcome.wav" > > freeswitch.consoleLog("INFO", "got here\n") > > --Starts Playing welcome message and accepts digits > value = session:playAndGetDigits(2, 4, 3, 3000, "#", welcome, "", "\\d+") > > freeswitch.consoleLog("INFO", "got digits " ..value.. "\n") > --------------test.lua---------------------- > > --------------this FS box---------------------- > Dialplan: sofia/external/1112223333 Regex (PASS) [test_ivr] destination_number(9176) =~ /^9176$/ break=on-false > Dialplan: sofia/external/1112223333 Action sleep(2000) > Dialplan: sofia/external/1112223333 Action send_dtmf(1002) > Dialplan: sofia/external/1112223333 Action sleep(1000) > Dialplan: sofia/external/1112223333 Action set(execute_on_answer=lua test.lua) > 2019-04-26 17:52:22.511865 [INFO] switch_channel.c:3129 sofia/external/1112223333 Flipping CID from "" <3337777777> to "Outbound Call" <> > 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:286 (sofia/external/1112223333) State Change CS_ROUTING -> CS_EXECUTE > 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:643 (sofia/external/1112223333) State ROUTING going to sleep > 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:584 (sofia/external/1112223333) Running State Change CS_EXECUTE (Cur 1 To) > 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:650 (sofia/external/1112223333) State EXECUTE > 2019-04-26 17:52:22.511865 [DEBUG] mod_sofia.c:198 sofia/external/1112223333 SOFIA EXECUTE > 2019-04-26 17:52:22.511865 [DEBUG] switch_core_state_machine.c:328 sofia/external/1112223333 Standard EXECUTE > EXECUTE sofia/external/1112223333 set(open=true) > 2019-04-26 17:52:22.511865 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [open]=[true] > EXECUTE sofia/external/1112223333 sleep(2000) > EXECUTE sofia/external/1112223333 send_dtmf(1002) > 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf > digit=1 ms=250 samples=2000 > 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf > digit=0 ms=250 samples=2000 > 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf > digit=0 ms=250 samples=2000 > 2019-04-26 17:52:24.511881 [DEBUG] switch_core_io.c:1894 sofia/external/1112223333 send dtmf > digit=2 ms=250 samples=2000 > EXECUTE sofia/external/1112223333 sleep(1000) > 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5261 Send start packet for [1] ts=160 dur=160/160/2000 seq=16436 lw=160 > 2019-04-26 17:52:24.531872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=320/320/2000 seq=16437 lw=320 > 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. > 2019-04-26 17:52:24.551861 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=480/480/2000 seq=16438 lw=480 > 2019-04-26 17:52:24.571862 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=640/640/2000 seq=16439 lw=640 > 2019-04-26 17:52:24.591872 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=800/800/2000 seq=16440 lw=800 > 2019-04-26 17:52:24.611866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=960/960/2000 seq=16441 lw=960 > 2019-04-26 17:52:24.631863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1120/1120/2000 seq=16442 lw=1120 > 2019-04-26 17:52:24.651858 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1280/1280/2000 seq=16443 lw=1280 > 2019-04-26 17:52:24.671867 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1440/1440/2000 seq=16444 lw=1440 > 2019-04-26 17:52:24.691863 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1600/1600/2000 seq=16445 lw=1600 > 2019-04-26 17:52:24.711874 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1760/1760/2000 seq=16446 lw=1760 > 2019-04-26 17:52:24.731866 [DEBUG] switch_rtp.c:5160 Send middle packet for [1] ts=160 dur=1920/1920/2000 seq=16447 lw=1920 > 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16448 lw=1920 > 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16449 lw=1920 > 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5160 Send end packet for [1] ts=160 dur=2080/2080/2000 seq=16450 lw=1920 > 2019-04-26 17:52:24.751872 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms > 2019-04-26 17:52:25.151870 [DEBUG] switch_rtp.c:5261 Send start packet for [0] ts=2400 dur=160/160/2000 seq=16451 lw=2400 > 2019-04-26 17:52:25.171870 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=320/320/2000 seq=16452 lw=2560 > 2019-04-26 17:52:25.191863 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=480/480/2000 seq=16453 lw=2720 > 2019-04-26 17:52:25.211881 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=640/640/2000 seq=16454 lw=2880 > 2019-04-26 17:52:25.231878 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=800/800/2000 seq=16455 lw=3040 > 2019-04-26 17:52:25.251862 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=960/960/2000 seq=16456 lw=3200 > 2019-04-26 17:52:25.271866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1120/1120/2000 seq=16457 lw=3360 > 2019-04-26 17:52:25.291874 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1280/1280/2000 seq=16458 lw=3520 > 2019-04-26 17:52:25.311871 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1440/1440/2000 seq=16459 lw=3680 > 2019-04-26 17:52:25.331864 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1600/1600/2000 seq=16460 lw=3840 > 2019-04-26 17:52:25.351866 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1760/1760/2000 seq=16461 lw=4000 > 2019-04-26 17:52:25.371873 [DEBUG] switch_rtp.c:5160 Send middle packet for [0] ts=2400 dur=1920/1920/2000 seq=16462 lw=4160 > 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16463 lw=4160 > 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16464 lw=4160 > 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5160 Send end packet for [0] ts=2400 dur=2080/2080/2000 seq=16465 lw=4160 > 2019-04-26 17:52:25.391864 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms > EXECUTE sofia/external/1112223333 set(execute_on_answer=lua test.lua) > 2019-04-26 17:52:25.531882 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[lua test.lua] > 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction. > 2019-04-26 17:52:25.531882 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] > --------------this FS box---------------------- > > --------------receiving FS box----------------------2019-04-26 20:53:34.216925 [NOTICE] mod_dptools.c:1312 Channel [sofia/internal/+ 13337777777@10.21.10.4] has been answered > 2019-04-26 20:53:34.216925 [DEBUG] switch_channel.c:3773 (sofia/internal/+13337777777@10.21.10.4) Callstate Change RINGING -> ACTIVE > EXECUTE sofia/internal/+13337777777@10.21.10.4 sleep(1000) > 2019-04-26 20:53:34.636985 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. > 2019-04-26 20:53:34.676971 [DEBUG] sofia.c:7084 Channel sofia/internal/+13337777777@10.21.10.4 entering state [ready][200] > EXECUTE sofia/internal/+13337777777@10.21.10.4 set(hangup_after_bridge=true) > 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [hangup_after_bridge]=[true] > EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ringback=local_stream://default) > 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ringback]=[local_stream://default] > EXECUTE sofia/internal/+13337777777@10.21.10.4 set(presence_id= 9000@10.21.10.4) > 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [presence_id]=[9000@10.21.10.4] > EXECUTE sofia/internal/+13337777777@10.21.10.4 set(transfer_ringback=local_stream://default) > 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [transfer_ringback]=[local_stream://default] > EXECUTE sofia/internal/+13337777777@10.21.10.4 set(ivr_menu_uuid=d67bb786-a0bc-4094-91fa-76f7db68caeb) > 2019-04-26 20:53:35.216977 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13337777777@10.21.10.4 [ivr_menu_uuid]=[d67bb786-a0bc-4094-91fa-76f7db68caeb] > EXECUTE sofia/internal/+13337777777@10.21.10.4 ivr(d67bb786-a0bc-4094-91fa-76f7db68caeb) > 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f3c6005cdf0 Connected. > 2019-04-26 20:53:35.236936 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f3c6005cdf0 released. > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit' > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub' > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app' > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound' > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back' > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top' > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:880 building menu 'd67bb786-a0bc-4094-91fa-76f7db68caeb' > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1' > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,11})$/' > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu d67bb786-a0bc-4094-91fa-76f7db68caeb > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3025 OPEN TTS flite > 2019-04-26 20:53:35.236936 [DEBUG] switch_ivr_play_say.c:3035 Raw Codec Activated > 2019-04-26 20:53:35.376916 [DEBUG] switch_ivr_play_say.c:2729 Speaking text: Hello World, This is a test IVR > 2019-04-26 20:53:37.236985 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:2080 > 2019-04-26 20:53:37.236985 [INFO] switch_channel.c:515 RECV DTMF 1:2080 > 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_play_say.c:2907 done speaking text > 2019-04-26 20:53:37.236985 [DEBUG] switch_ivr_menu.c:377 waiting for 3/4 digits t/o 2000 > 2019-04-26 20:53:37.876935 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:2080 > 2019-04-26 20:53:37.876935 [INFO] switch_channel.c:515 RECV DTMF 0:2080 > 2019-04-26 20:53:37.896923 [NOTICE] sofia.c:1012 Hangup sofia/internal/+13337777777@10.21.10.4 [CS_EXECUTE] [NORMAL_CLEARING] > --------------receiving FS box---------------------- > > On Fri, Apr 26, 2019 at 8:53 AM David Villasmil < david.villasmil.work@gmail.com> wrote: > Joli, > > On you IVR, assuming you are using fs IVR? Please show us the IVR. > > > On Fri, 26 Apr 2019 at 06:19, John Covici <covici@ccs.covici.com> wrote: > You have to have a bridge command in that dialplan to start the call > after setting the execute_on_answer, the bridge does not belong in > your samsclub script. > > On Fri, 26 Apr 2019 00:02:14 -0400, > Joli Martinez wrote: > > > > [1 <multipart/alternative (7bit)>] > > [1.1 <text/plain; UTF-8 (quoted-printable)>] > > [1.2 <text/html; UTF-8 (quoted-printable)>] > > Hello > > > > It is still not working. When I do just the application lua it works, but lua script starts running before I pick up. When I uncomment any of the two execute_on_answer the call fails. Below is the error messages. I am bridging the > > call at the beginning of my lua script. > > > > <include> > > <extension name="samsclub_ivr"> > > <condition field="destination_number" expression="^9176$"> > > <action application="answer"/> > > <action application="sleep" data="2000"/> > > <action application="send_dtmf" data="${ext}"/> > > <action application="sleep" data="1000"/> > > <!-- <action application="lua" data="samsclub.lua"/> --> > > <!-- <action application="set" data="execute_on_answer=samsclub.lua"/> --> > > <action application="export" data="nolocal:execute_on_answer=lua samsclub.lua"/> > > </condition> > > </extension> > > </include> > > > >
> > > > 2019-04-25 20:51:24.351863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms > > EXECUTE sofia/external/1112223333 set(execute_on_answer=test.lua) > > 2019-04-25 20:51:24.471868 [DEBUG] mod_dptools.c:1548 SET sofia/external/1112223333 [execute_on_answer]=[test.lua] > > 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. > > 2019-04-25 20:51:24.471868 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] > > > > 2019-04-25 20:54:47.491863 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms > > EXECUTE sofia/external/1112223333 export(nolocal:execute_on_answer=lua test.lua) > > 2019-04-25 20:54:47.631863 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] > > 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:385 sofia/external/1112223333 has executed the last dialplan instruction, hanging up. > > 2019-04-25 20:54:47.631863 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/1112223333 [CS_EXECUTE] [NORMAL_CLEARING] > > > > On Thu, Apr 25, 2019 at 5:34 PM David Villasmil < david.villasmil.work@gmail.com> wrote: > > > > You need to bridge the call SOMEWHERE before you can run execute_on_answer. > > So what you have to do, send the call out setting the execute_on_answer. > > > > Something like: > > > > Answer() > > Play some message > > Bridge with {execute_on_answer=‘lua myanswer.lua’}sofia/gateway/mygw/1224 > > > > Then, when the BRIDGE is answered, the lua will execute. You can’t execute on answer on a call that’s never answered. > > > > On Thu, 25 Apr 2019 at 20:08, Joli Martinez <mrjoli021@gmail.com> wrote: > > > > Hello, > > > > ok, if I put the line back to just send the call to my lua script it works, but the script starts executing. I need for it to wait until someone answeres the phone before executing. so on my lua script instead of the first > > line reading session:answer() can I replace it with session:execute_on_answer()? > > > > Or what would be the best way to tell my lua script to wait until the phone is answered before continuing execution? > > > > thanks, > > > > On Thu, Apr 25, 2019 at 1:16 PM David Villasmil < david.villasmil.work@gmail.com> wrote: > > > > I understand, but you're not doing anything with call. You need to set the execute on answer either befire the bridge or on the bridge itself. > > If you want to manipulate the incoming call with the lua, then just do; > > > > <action application="lua" data="test.lua"/> > > > > Regards, > > > > David Villasmil > > email: david.villasmil.work@gmail.com > > phone: +34669448337 > > > > On Thu, Apr 25, 2019 at 5:17 PM Joli Martinez < mrjoli021@gmail.com> wrote: > > > > Hello, > > > > What I am trying to accomplish is that once the call gets answered by the initial IVR, the call gets sent to an extension. At that point the call waits for an answer and sends it to my lua script which bridges the call. > > > > If I just send the call without the wait_on_answer the call works, but my scripts starts executing right away, so by the time I answer the phone I am hearing the prompts half way through. > > > > What am I missing or how can I get it to work? > > > > thanks, > > > > On Thu, Apr 25, 2019 at 11:48 AM David Villasmil < david.villasmil.work@gmail.com> wrote: > > > > So you’re not bridging anywhere, nor answering the call, right? I ask because you talk about when the call is answered, but you’re not bridging it anywhere? > > > > On Thu, 25 Apr 2019 at 14:15, Joli Martinez <mrjoli021@gmail.com> wrote: > > > > Hello, > > > > This is what I get when I uncomment the lines. I also did a reloadxml. > > > > right after the last DTMF digit it dies > > > > ------------------------------------------------------ > > 2019-04-25 05:46:07.911991 [DEBUG] switch_core_io.c:1894 sofia/external/12223334444 send dtmf > > digit=2 ms=250 samples=2000 > > EXECUTE sofia/external/12223334444 export(nolocal:execute_on_answer=lua samsclub.lua) > > 2019-04-25 05:46:07.911991 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [execute_on_answer]=[lua test.lua] > > 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:385 sofia/external/12223334444 has executed the last dialplan instruction, hanging up. > > 2019-04-25 05:46:07.911991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/12223334444 [CS_EXECUTE] [NORMAL_CLEARING] > > > > ------------------------------------------------------------ > > > > On Thu, Apr 25, 2019 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote: > > > > Can you send the console log when it fails? > > > > On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021@gmail.com> wrote: > > > > Hello, > > > > I need my dial plan to dial an extension within then wait until the extension picks up before starting the lua script. I got it to dial the extension but can't seem to get the syntax for the > > "execute_on_answer" correct. When I uncomment it out it call just fails. What am I missing? > > > > ----------------------------- > > <extension name="my_dialplan"> > > <condition field="destination_number" expression="^9176$"> > > <action application="sleep" data="2000"/> > > <action application="send_dtmf" data="1002"/> > > <action application="lua" data="test.lua"/> > > <!-- <action application="export" data="nolocal:execute_on_answer=lua test.lua"/> --> > > </condition> > > </extension> > > </include> > > ---------------------------------------- > > > > On Wed, Apr 24, 2019 at 1:57 PM David Villasmil < david.villasmil.work@gmail.com> wrote: > > > > That should work properly, what are trying to accomplish exactly? > > > > On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021@gmail.com> wrote: > > > > Hello, > > > > I am trying to find more info on the application "execute_on_answer". > > > > I have a script that calls an IVR then dials a users extension. I need to wait for the calling party extension to answer before executing the rest of my script. I don't seem to find much > > documentation on this application. Is there another way to test if the calling party has been answered? > > > > thanks, > > > >
> > > > 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 > > > > -- > > Regards, > > > > David Villasmil > > email: david.villasmil.work@gmail.com > > phone: +34669448337 > >
> > > > 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 > > > >
> > > > 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 > > > > -- > > Regards, > > > > David Villasmil > > email: david.villasmil.work@gmail.com > > phone: +34669448337 > >
> > > > 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 > > > >
> > > > 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 > > > > -- > > Regards, > > > > David Villasmil > > email: david.villasmil.work@gmail.com > > phone: +34669448337 > >
> > > > 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 > > > >
> > > > 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 > > > >
> > > > 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 > > > >
> > > > 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 > > > > -- > > Regards, > > > > David Villasmil > > email: david.villasmil.work@gmail.com > > phone: +34669448337 > >
> > > > 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 > > [2 <text/plain; utf-8 (base64)>] > >
> > > > 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 > > -- > Your life is like a penny. You're going to lose it. The question is: > How do > you spend it? > > John Covici wb2una > covici@ccs.covici.com > >
> > 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 > -- > Regards, > > David Villasmil > email: david.villasmil.work@gmail.com > phone: +34669448337 >
> > 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 >
> > 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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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
_________________________________________________________________________
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> _________________________________________________________________________
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
_________________________________________________________________________
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
participants (8)
-
Brian West
-
David Villasmil
-
John Covici
-
Joli Martinez
-
Ken Rice
-
Nathan Neulinger
-
Shaun Stokes
-
Vallimamod Abdullah