Run a command on event
Hi, I wanted to run an "originate" command when a MESSAGE_WAITING event is fired. Is there a simpler way than creating a daemon listening to the event socket ? Thanks Mathieu Parent
Or you can do something like this with Ruby + FSR: http://pastebin.freeswitch.org/10184 On Wed, Sep 2, 2009 at 2:27 PM, Mathieu Parent <math.parent@gmail.com>wrote:
Hi,
I wanted to run an "originate" command when a MESSAGE_WAITING event is fired.
Is there a simpler way than creating a daemon listening to the event socket ?
Thanks
Mathieu Parent
_______________________________________________ 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 http://www.freeswitch.org
Hi, On Wed, Sep 2, 2009 at 4:37 PM, Brian West<brian@freeswitch.org> wrote:
Using esl + perl you could do it.
/b
On Wed, Sep 2, 2009 at 4:46 PM, Diego Viola<diego.viola@gmail.com> wrote:
Or you can do something like this with Ruby + FSR:
thanks for your suggestions, but this also requires a daemon (standalone or via inetd). I will probably use inetd if nobody suggests a better solution. creating a mod_event_* ? Mathieu
See http://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Subscribing_to_... Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene@avgs.ca On 2-Sep-09, at 8:47 AM, Mathieu Parent wrote:
Hi,
On Wed, Sep 2, 2009 at 4:37 PM, Brian West<brian@freeswitch.org> wrote:
Using esl + perl you could do it.
/b
On Wed, Sep 2, 2009 at 4:46 PM, Diego Viola<diego.viola@gmail.com> wrote:
Or you can do something like this with Ruby + FSR:
thanks for your suggestions, but this also requires a daemon (standalone or via inetd).
I will probably use inetd if nobody suggests a better solution. creating a mod_event_* ?
Mathieu
_______________________________________________ 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 http://www.freeswitch.org
Hi On Thu, Sep 3, 2009 at 6:52 AM, Mathieu Rene<mrene_lists@avgs.ca> wrote:
See http://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Subscribing_to_...
Thanks. I have tried this method without success and finally replaced the voicemail section in dialplan by a spidermonkey script with session.setHangupHook(). Test passed! Mathieu Parent
You can do it in perl or lua using a startup script that creates an event listener. Mike On Sep 4, 2009, at 10:32 AM, Mathieu Parent wrote:
Hi
On Thu, Sep 3, 2009 at 6:52 AM, Mathieu Rene<mrene_lists@avgs.ca> wrote:
See http://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Subscribing_to_...
Thanks.
I have tried this method without success and finally replaced the voicemail section in dialplan by a spidermonkey script with session.setHangupHook(). Test passed!
Mathieu Parent
participants (5)
-
Brian West
-
Diego Viola
-
Mathieu Parent
-
Mathieu Rene
-
Michael Jerris