Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Run a command on event


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
math.parent at gmail.com
Guest





PostPosted: Wed Sep 02, 2009 9:40 am    Post subject: [Freeswitch-users] Run a command on event Reply with quote

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
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Sep 02, 2009 9:56 am    Post subject: [Freeswitch-users] Run a command on event Reply with quote

Using esl + perl you could do it.

/b

On Sep 2, 2009, at 9:27 AM, Mathieu Parent wrote:

Quote:
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
Back to top
diego.viola at gmail.com
Guest





PostPosted: Wed Sep 02, 2009 10:01 am    Post subject: [Freeswitch-users] Run a command on event Reply with quote

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 (math.parent@gmail.com)> wrote:
Quote:
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 (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
Back to top
math.parent at gmail.com
Guest





PostPosted: Wed Sep 02, 2009 10:57 am    Post subject: [Freeswitch-users] Run a command on event Reply with quote

Hi,

On Wed, Sep 2, 2009 at 4:37 PM, Brian West<brian@freeswitch.org> wrote:
Quote:
Using esl + perl you could do it.

/b


On Wed, Sep 2, 2009 at 4:46 PM, Diego Viola<diego.viola@gmail.com> wrote:
Quote:
Or you can do something like this with Ruby + FSR:

http://pastebin.freeswitch.org/10184


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
Back to top
mrene_lists at avgs.ca
Guest





PostPosted: Thu Sep 03, 2009 12:07 am    Post subject: [Freeswitch-users] Run a command on event Reply with quote

See http://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Subscribing_to_events

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:

Quote:
Hi,

On Wed, Sep 2, 2009 at 4:37 PM, Brian West<brian@freeswitch.org>
wrote:
Quote:
Using esl + perl you could do it.

/b


On Wed, Sep 2, 2009 at 4:46 PM, Diego Viola<diego.viola@gmail.com>
wrote:
Quote:
Or you can do something like this with Ruby + FSR:

http://pastebin.freeswitch.org/10184


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


_______________________________________________
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
Back to top
math.parent at gmail.com
Guest





PostPosted: Fri Sep 04, 2009 9:42 am    Post subject: [Freeswitch-users] Run a command on event Reply with quote

Hi

On Thu, Sep 3, 2009 at 6:52 AM, Mathieu Rene<mrene_lists@avgs.ca> wrote:
Quote:
See http://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Subscribing_to_events


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

_______________________________________________
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
Back to top
mike at jerris.com
Guest





PostPosted: Fri Sep 11, 2009 11:35 am    Post subject: [Freeswitch-users] Run a command on event Reply with quote

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:

Quote:
Hi

On Thu, Sep 3, 2009 at 6:52 AM, Mathieu Rene<mrene_lists@avgs.ca>
wrote:
Quote:
See http://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Subscribing_to_events


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


_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services