[Freeswitch-users] execute_on_answer

David Villasmil david.villasmil.work at gmail.com
Thu Apr 25 15:25:54 UTC 2019


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 at 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 at gmail.com> wrote:
>
>> Can you send the console log when it fails?
>>
>> On Thu, 25 Apr 2019 at 01:31, Joli Martinez <mrjoli021 at 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 at gmail.com> wrote:
>>>
>>>> That should work properly, what are trying to accomplish exactly?
>>>>
>>>> On Wed, 24 Apr 2019 at 18:19, Joli Martinez <mrjoli021 at 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 at freeswitch.com
>>>>> https://freeswitch.com
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> https://freeswitch.com/oss
>>>>> https://freeswitch.org/confluence
>>>>> https://cluecon.com
>>>>>
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at 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 at 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 at freeswitch.com
>>>> https://freeswitch.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> https://freeswitch.com/oss
>>>> https://freeswitch.org/confluence
>>>> https://cluecon.com
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at 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 at freeswitch.com
>>> https://freeswitch.com
>>>
>>> Official FreeSWITCH Sites
>>> https://freeswitch.com/oss
>>> https://freeswitch.org/confluence
>>> https://cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at 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 at 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 at freeswitch.com
>> https://freeswitch.com
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss
>> https://freeswitch.org/confluence
>> https://cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at 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 at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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 at gmail.com
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190425/0dcacab5/attachment-0001.html>


More information about the FreeSWITCH-users mailing list