monitoring events in Python
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.
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> wrote:
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
-- Arnaldo M Pereira ap@arnaldopereira.com
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:
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.
participants (3)
-
Adam Wilt
-
Arnaldo de Moraes Pereira
-
Michael Jerris