You can also do something like this:
<action application="set" data="execute_on_answer=execute_extension HANDLE_ANSWER"/>
And then define your answer handler extension:
<extension name="Handle Answered Calls">
<condition field="destination_number" expression="^HANDLE_ANSWER$"/>
<action application="python" data="/path/to/my/python/script.py"/>
<action application="sched_hangup" data="+300 TIMED_OUT"/>
<action application="log" data="INFO You can do all sorts of stuff"/>
<!-- If this extension was called with 'execute_extension' then it will go back to the calling extension when done... -->
</condition>
</extension>
Hell guys,_________________________________________________________________________Any way to execute multiple execute_on_answer? i saw a thread where the OP was directed to https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables#The_execute_on_family but i'm not sure i see the relationship.Many thanks!David Villasmilphone: +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