[Freeswitch-users] Event Socket

Hector Geraldino Hector.Geraldino at ip-soft.net
Thu Dec 22 19:19:33 MSK 2011


Hi Roger,

If the set of available events is constant (any of the existing events can be received by the ESL application at any time), I don't see why you need to query FS to get this list. Let's suppose this api command exists: issuing this command will always return a list with the same values, which are the values already listed on the Events list page:

http://wiki.freeswitch.org/wiki/Event_List

Can you do that? I'm pretty sure you can't. But, if you *really* want to get this list of events after issuing an api command to freeswitch (non-negotiable feature), you can always send an "api echo STRING_LIST" with the list of possible values:

api echo CHANNEL_CALLSTATE CHANNEL_CREATE CHANNEL_DESTROY CHANNEL_STATE CHANNEL_ANSWER CHANNEL_HANGUP CHANNEL_HANGUP_COMPLETE CHANNEL_EXECUTE CHANNEL_EXECUTE_COMPLETE

Content-Type: api/response
Content-Length: 157

CHANNEL_CALLSTATE CHANNEL_CREATE CHANNEL_DESTROY CHANNEL_STATE CHANNEL_ANSWER CHANNEL_HANGUP CHANNEL_HANGUP_COMPLETE CHANNEL_EXECUTE CHANNEL_EXECUTE_COMPLETE


PS: I'm kidding

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Roger Castaldo
Sent: Thursday, December 22, 2011 10:41 AM
To: freeswitch-users at lists.freeswitch.org
Subject: [Freeswitch-users] Event Socket

Hi everyone i have  a simple question, is there an api command that will list all the available events that can be listened on by the event socket?  i realize there is a wiki page containing a list but for my purposes an api command to list the available event names would be much better.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111222/046b9857/attachment.html 


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