[Freeswitch-users] can I use Event_Socket_Outbound to only monitor?

Michael Collins msc at freeswitch.org
Tue Jan 27 06:59:40 MSK 2015


Using the socket app with the "async" option will cause that channel's
events to be sent.
-MC

On Mon, Jan 26, 2015 at 7:43 PM, Kamil Nigmatullin <
kamil.nigmatullin at gmail.com> wrote:

> Yes if you want monitor and catch events you need to use inbound socket
> 26 янв. 2015 г. 21:58 пользователь "Duvid Rottenberg" <
> adrottenberg at gmail.com> написал:
>
>> I am pretty sure that with outbound socket as long as you don't send any
>> commands back to Freeswitch, it will just execute whatever is in the xml
>> dialplan.
>>
>> Thanks,
>> Duvid Rottenberg
>>
>> On Sun, Jan 25, 2015 at 6:19 PM, Michael Collins <msc at freeswitch.org>
>> wrote:
>>
>>> In event socket outbound the listening server controls the call. In your
>>> case you just want to get the events associated with that call? I've never
>>> actually tried it but maybe you could do something like:
>>>
>>> <action application="socket" data="127.0.0.1:8084 async"/>
>>>
>>>
>>> And then after the socket app answers have it issue the linger command,
>>> then transfer or execute_extension to send the call off to do something.
>>> Watch your socket connection for events and see happens. If you get it to
>>> work please let us know. :)
>>>
>>> -Michael
>>>
>>>
>>>
>>> On Sun, Jan 25, 2015 at 7:17 AM, Shai Perelman <groysem at gmail.com>
>>> wrote:
>>>
>>>>
>>>> hi, I am using
>>>> https://wiki.freeswitch.org/wiki/Event_Socket_Outbound
>>>> my goal is to monitor what happens on the extension but without
>>>> affecting the normal behaviour.
>>>>
>>>> I have this dialplan.
>>>>
>>>> TagTypeDataOrder[image: add]
>>>> <http://148.251.142.45/app/dialplan/dialplan_detail_edit.php?id2=8a56aba2-5cf2-40e7-b5d2-ce0073baa3ef&app_uuid=742714e5-8cdf-32fd-462c-cbe7e3d655db>
>>>>   condition  username  9998  1[image: edit]
>>>> <http://148.251.142.45/app/dialplan/dialplan_detail_edit.php?id=02e9a3bf-15cb-4ddf-a6bf-7fc1624eca22&id2=8a56aba2-5cf2-40e7-b5d2-ce0073baa3ef&app_uuid=742714e5-8cdf-32fd-462c-cbe7e3d655db>
>>>>  [image: delete]
>>>> <http://148.251.142.45/app/dialplan/dialplan_detail_delete.php?id=02e9a3bf-15cb-4ddf-a6bf-7fc1624eca22&id2=8a56aba2-5cf2-40e7-b5d2-ce0073baa3ef&app_uuid=742714e5-8cdf-32fd-462c-cbe7e3d655db>
>>>>   action  socket  109.65.149.22:9999 async  3[image: edit]
>>>> <http://148.251.142.45/app/dialplan/dialplan_detail_edit.php?id=0ca4a9d4-020f-418c-b0aa-388bc6bf4ad5&id2=8a56aba2-5cf2-40e7-b5d2-ce0073baa3ef&app_uuid=742714e5-8cdf-32fd-462c-cbe7e3d655db>
>>>>  [image: delete]
>>>> <http://148.251.142.45/app/dialplan/dialplan_detail_delete.php?id=0ca4a9d4-020f-418c-b0aa-388bc6bf4ad5&id2=8a56aba2-5cf2-40e7-b5d2-ce0073baa3ef&app_uuid=742714e5-8cdf-32fd-462c-cbe7e3d655db>
>>>>
>>>>
>>>> I am calling *9664 (music on hold)
>>>> and the call is blocking while wating for commands from my side.
>>>>
>>>> I want it to answer automatticaly like it would do with out the socket
>>>> module, and just send me the events regarding that extension
>>>>
>>>> thanks
>>>> Shai
>>>> ITD Communications
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> 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
>>
>
> _________________________________________________________________________
> 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/20150126/33e2f8c9/attachment.html 


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