[Freeswitch-users] Run php script on execute_on_answer

Ken Rice krice at freeswitch.org
Sat Feb 6 23:56:28 MSK 2016


Why call system there? See mod curl thats what its for

Sent from my iPhone

> On Feb 6, 2016, at 2:03 PM, Adrian Andrei <koralu at gmail.com> wrote:
> 
> Ok. It works on a separate extension, but I can't figure out what is the syntax for inline approach
> 
> <action data="{execute_on_answer='system curl http://localhost/answer.php?uuid=$uuid&bnr=$1 inline=true'}sofia/external/$1 at 2.2.2.2"/>
> 
> This doesn't work.
> 
> 
> 
>> On Sat, Feb 6, 2016 at 8:55 PM, Ken Rice <krice at freeswitch.org> wrote:
>> You cant run an http location you need to call it with curl
>> 
>> Sent from my iPhone
>> 
>>> On Feb 6, 2016, at 12:29 PM, Adrian Andrei <koralu at gmail.com> wrote:
>>> 
>>> Hello,
>>> 
>>> I try to execute a php script after the call is answered but I can't figure how. I need something like this.
>>> 
>>> <extension name="execOnAnswer">
>>> <condition field="destination_number" expression="^07">
>>> <action application="bridge" data="{execute_on_answer='run http://localhost/answer.php?uuid=$uuid&bnr=$1'}sofia/external/$1@2.2.2.2"/>
>>> </condition>
>>> </extension>
>>> 
>>> So what I try to do is to pass the uuid and caller-destination-number to an external source after the call is answered. Is any other approach?
>>> 
>>> 
>>> Thank you
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services: 
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>> 
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.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
>>> http://www.freeswitch.org
>> 
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>> 
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.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
>> http://www.freeswitch.org
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.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
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160206/28cc335e/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list