<div dir="ltr">Thanks!<div><br></div><div>I've looked at ESL and the mod_event_socket but I'm not looking to control everything. I do see that it supports outbound so I tried it but it seems it won't allow me to just get notified on events but I'll also have to control the entire call. In other words, it wont allow JUST outbound.</div><div><br></div><div>Looks like my next option is LUA (which I know nothing about as of yet) but it looks like it will allow event hooks. Is this a viable solution in your opinion?</div><div><br></div><div><a href="https://wiki.freeswitch.org/wiki/Mod_lua#Event_Hooks">https://wiki.freeswitch.org/wiki/Mod_lua#Event_Hooks</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 4, 2016 at 1:34 AM, Stanislav Sinyagin <span dir="ltr"><<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">the best approach is to have a separate daemon that connects to<br>
FreeSWITCH and subscribes to events. Then you can asynchronously<br>
process these events without affecting the call flow. There are<br>
actually hundreds of example scripts, just search for keywords:<br>
freeswitch, esl, event socket<br>
<br>
There are also implementations of ESL protocol in many programming<br>
languages, and you can choose depending on your skills and<br>
requirements. For example, Golang or Erlang would allow you to spin<br>
off a new thread every time you need it, and do some background<br>
processing in parallel. But for many tasks, single-threaded processing<br>
is enough, so Perl or Python would work fine.<br>
<br>
You can also hand the call processing to such an external program --<br>
for example, the XML dialplan executes park(), and your ESL program<br>
picks up the control and performs what you need, like IVR, for<br>
example.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
On Thu, Aug 4, 2016 at 7:30 AM, Don Hawkins <<a href="mailto:hawkins@hawkinsegroup.com">hawkins@hawkinsegroup.com</a>> wrote:<br>
> So curl is working fine but I'm unsure (and unable to find any examples) how<br>
> to execute the curl application on specific events, primarily when the call<br>
> has been bridged/answered. Can anyone assist?<br>
><br>
> On Wed, Aug 3, 2016 at 11:16 PM, Don Hawkins <<a href="mailto:hawkins@hawkinsegroup.com">hawkins@hawkinsegroup.com</a>><br>
> wrote:<br>
>><br>
>> Figured it out, I sure did miss something, thank you for leading me in the<br>
>> right direction.<br>
>><br>
>> <execute application="bind_digit_action"<br>
>> data="curl,*,exec:curl,<a href="http://myurl.com/mypage.cgi" rel="noreferrer" target="_blank">http://myurl.com/mypage.cgi</a> post<br>
>> uuid=${uuid}&amp;state=${state}&direction=${direction},aleg,aleg"></execute><br>
>><br>
>><br>
>><br>
>> On Wed, Aug 3, 2016 at 10:23 PM, Don Hawkins <<a href="mailto:hawkins@hawkinsegroup.com">hawkins@hawkinsegroup.com</a>><br>
>> wrote:<br>
>>><br>
>>> Thank you Abaci!<br>
>>><br>
>>> I added<br>
>>><br>
>>> <execute application="curl" data="<a href="http://myurl.com/whatever.php" rel="noreferrer" target="_blank">http://myurl.com/whatever.php</a><br>
>>> json"></execute><br>
>>><br>
>>> And it's for sure contacting my URL but it's not sending anything, there<br>
>>> are no values... did I miss something?<br>
>>><br>
>>><br>
>>> On Wed, Aug 3, 2016 at 8:09 PM, Abaci B <<a href="mailto:abaci64@gmail.com">abaci64@gmail.com</a>> wrote:<br>
>>>><br>
>>>> <a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_curl" rel="noreferrer" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_curl</a><br>
>>>><br>
>>>> On Wed, Aug 3, 2016 at 9:03 PM, Don Hawkins <<a href="mailto:hawkins@hawkinsegroup.com">hawkins@hawkinsegroup.com</a>><br>
>>>> wrote:<br>
>>>>><br>
>>>>> Care to elaborate? Do you mean mod_xml_curl? I'm already using that for<br>
>>>>> serving configs, don't see it working for this...maybe I'm wrong.<br>
>>>>><br>
>>>>> Sincerely,<br>
>>>>> Don Hawkins<br>
>>>>><br>
>>>>> Sent from my NationPCS® Nexus 6.<br>
>>>>><br>
>>>>><br>
>>>>> On Aug 3, 2016 7:57 PM, "Abaci B" <<a href="mailto:abaci64@gmail.com">abaci64@gmail.com</a>> wrote:<br>
>>>>>><br>
>>>>>> curl<br>
>>>>>><br>
>>>>>> On Wed, Aug 3, 2016 at 8:27 PM, Don Hawkins<br>
>>>>>> <<a href="mailto:hawkins@hawkinsegroup.com">hawkins@hawkinsegroup.com</a>> wrote:<br>
>>>>>>><br>
>>>>>>> Very simple situation...<br>
>>>>>>><br>
>>>>>>> While on a call I want to press * to post to an external URL, I want<br>
>>>>>>> to post global variables, ie. UUID.<br>
>>>>>>><br>
>>>>>>> I have this working with httapi:<br>
>>>>>>><br>
>>>>>>> <execute application="bind_digit_action"<br>
>>>>>>> data="httapi,*,exec:httapi,<a href="http://myurl.com" rel="noreferrer" target="_blank">http://myurl.com</a>,aleg,aleg\"></execute><br>
>>>>>>><br>
>>>>>>> Only problem is, httapi expects XML to be returned and I don't<br>
>>>>>>> actually want to return anything, I just want to send the information to the<br>
>>>>>>> URL and for FreeSwitch to go on about it's business.<br>
>>>>>>><br>
>>>>>>> What module is best for this job?<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> _________________________________________________________________________<br>
>>>>>>> Professional FreeSWITCH Consulting Services:<br>
>>>>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>>>>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>>>>><br>
>>>>>>> Official FreeSWITCH Sites<br>
>>>>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>>>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
>>>>>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>>>>>>><br>
>>>>>>> FreeSWITCH-users mailing list<br>
>>>>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>>>>><br>
>>>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> _________________________________________________________________________<br>
>>>>>> Professional FreeSWITCH Consulting Services:<br>
>>>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>>>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>>>><br>
>>>>>> Official FreeSWITCH Sites<br>
>>>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
>>>>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>>>>>><br>
>>>>>> FreeSWITCH-users mailing list<br>
>>>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>>>><br>
>>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> _________________________________________________________________________<br>
>>>>> Professional FreeSWITCH Consulting Services:<br>
>>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>>><br>
>>>>> Official FreeSWITCH Sites<br>
>>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
>>>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>>>>><br>
>>>>> FreeSWITCH-users mailing list<br>
>>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>>><br>
>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> _________________________________________________________________________<br>
>>>> Professional FreeSWITCH Consulting Services:<br>
>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>><br>
>>>> Official FreeSWITCH Sites<br>
>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
>>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>>>><br>
>>>> FreeSWITCH-users mailing list<br>
>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Sincerely,<br>
>>> Don Hawkins<br>
>>> CEO<br>
>>> Hawkins Enterprise Group LLC<br>
>>> <a href="http://hawkinsegroup.com" rel="noreferrer" target="_blank">http://hawkinsegroup.com</a><br>
>>> Zello PTT: push2don<br>
>>> P: <a href="tel:469-214-5044" value="+14692145044">469-214-5044</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Sincerely,<br>
>> Don Hawkins<br>
>> CEO<br>
>> Hawkins Enterprise Group LLC<br>
>> <a href="http://hawkinsegroup.com" rel="noreferrer" target="_blank">http://hawkinsegroup.com</a><br>
>> Zello PTT: push2don<br>
>> P: <a href="tel:469-214-5044" value="+14692145044">469-214-5044</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Sincerely,<br>
> Don Hawkins<br>
> CEO<br>
> Hawkins Enterprise Group LLC<br>
> <a href="http://hawkinsegroup.com" rel="noreferrer" target="_blank">http://hawkinsegroup.com</a><br>
> Zello PTT: push2don<br>
> P: <a href="tel:469-214-5044" value="+14692145044">469-214-5044</a><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(102,102,102)"><span>Sincerely,<br>Don Hawkins<br>CEO<br>Hawkins Enterprise Group LLC<br><a href="http://hawkinsegroup.com" target="_blank">http://hawkinsegroup.com</a><br><a href="http://zello.com" target="_blank">Zello PTT</a>: push2don<br></span></span></div><div><span style="color:rgb(102,102,102)"><span>P: 469-214-5044<br></span></span></div><div dir="ltr"><span style="color:rgb(102,102,102)"><span><a value="+12146991224"></a></span></span></div></div></div></div></div></div>
</div>