Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] monitoring events in Python


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





PostPosted: Sat Feb 14, 2009 12:48 am    Post subject: [Freeswitch-users] monitoring events in Python Reply with quote

I'm trying to use custom events for a conference call in a Python script. I set-up the events in the conference.conf.xml file, and I send "bgapi event plain CUSTOM conference::maintenance" to enable them. But I don't know how to look for these events in my script. Does anybody have some example code, or maybe just point me in the right direction? Thanks.
Back to top
egghunt at gmail.com
Guest





PostPosted: Sat Feb 14, 2009 5:30 am    Post subject: [Freeswitch-users] monitoring events in Python Reply with quote

You might use freepy, which can be found in freeswitch tree, on dir scripts/socket/freepy. fseventlistener.py is a good example to follow.

You'll want to pass your custom event to sniff_custom_events().

On Sat, Feb 14, 2009 at 3:45 AM, Adam Wilt <wiltingtree@gmail.com (wiltingtree@gmail.com)> wrote:
Quote:
I'm trying to use custom events for a conference call in a Python script. I set-up the events in the conference.conf.xml file, and I send "bgapi event plain CUSTOM conference::maintenance" to enable them. But I don't know how to look for these events in my script. Does anybody have some example code, or maybe just point me in the right direction? Thanks.




_______________________________________________
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




--
Arnaldo M Pereira
ap@arnaldopereira.com (ap@arnaldopereira.com)
Back to top
mike at jerris.com
Guest





PostPosted: Sat Feb 14, 2009 12:08 pm    Post subject: [Freeswitch-users] monitoring events in Python Reply with quote

its just "event plain CUSTOM conference::maintenance" no "bgapi" see: http://wiki.freeswitch.org/wiki/Event_Socket
for more info.

MIke

On Feb 14, 2009, at 12:45 AM, Adam Wilt wrote:

Quote:
I'm trying to use custom events for a conference call in a Python
script. I set-up the events in the conference.conf.xml file, and I
send "bgapi event plain CUSTOM conference::maintenance" to enable
them. But I don't know how to look for these events in my script.
Does anybody have some example code, or maybe just point me in the
right direction? Thanks.

_______________________________________________
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