[Freeswitch-users] Notification of an event in the dialplan

Avi Marcus avi at avimarcus.net
Tue May 21 09:40:40 MSD 2013


Hmm, this looks promising:
http://wiki.freeswitch.org/wiki/Mod_commands#bg_system
Execute a system command in the background.

Usage: bg_system <command>

Please update the wiki if you get more information about how that works...

-Avi

On Tue, May 21, 2013 at 2:22 AM, Christopher Aloi <chris.aloi at gmail.com>wrote:

> I was thinking about that - my concern was "and waits for the result".
> Could that potentially hang call processing?  If I pass to a python ->
> sendmail script and wait for the result, if my script hangs, I would have
> these calls waiting for the result (right?)
>
> On Monday, May 20, 2013, Michael Collins wrote:
>
>> A simple approach might be to use the system app:
>> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_system
>>
>> If you have a simple shell script that launches an email that would a
>> quick and easy way to get going.
>>
>> -MC
>>
>>
>> On Mon, May 20, 2013 at 1:25 PM, Christopher Aloi <chris.aloi at gmail.com>wrote:
>>
>>>
>>> I'm currently using FreeSwitch between two systems as a "rate limiter'
>>> with the limit application.
>>>
>>> I bring calls in, run through a hash to identify a loop - if my hash
>>> variable is met, I transfer the call to a new extension where I log the
>>> event and return a 503 to the source.  If not I return a 302 to the source
>>> to send the call on its way.
>>>
>>> I'd like a way to identify these events to our NOC via email or a SNMP
>>> trap but I am not sure the best way to do it.
>>>
>>> The alert would fall into the 503 extension.
>>>
>>> What is the best way to accomplish this?
>>>
>>> I'd like to keep the call flow as simple as possible.
>>>
>>> Any ideas?
>>>
>>> Thanks -
>>>
>>> - Chris
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.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
>>>
>>>
>>
>>
>> --
>> Michael S Collins
>> Twitter: @mercutioviz
>> http://www.FreeSWITCH.org
>> http://www.ClueCon.com
>> http://www.OSTAG.org
>>
>>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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/20130521/8f9aae8b/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list