[Freeswitch-users] Event Socket Layer State Diagram

Zoltan Medveczky zoltan.medveczky at 8x8.com
Wed May 28 20:35:59 MSD 2014


You can specify an "Event-UUID" header in your "SendMsg" command.  Its
value will be relayed back in the "Application-UUID" header of the
corresponding CHANNEL_EXECUTE and CHANNEL_EXECUTE_COMPLETE events.


On Wed, May 28, 2014 at 12:08 AM, Grant Bagdasarian <GB at cm.nl> wrote:

> Hello,
>
>
>
> Is there a state diagram available which shows the state transitioning for
> all Channel Events and Channel States?
>
>
>
> Also, I’ve wrote a simple ESL application which listens for all events
> happening in FS during a single call, and I’ve been studying the Channel
> Events/States and the correlation between them. Very useful. I recommend
> every new ESL developer to do this.
>
>
>
> I do have a small question.
>
> When using the SendMSG method of ESLConnection to playback a file, the
> below sequence of events is generated.
>
>
>
> Now my question is: is there a way to send some unique string with the
> sendmsg command and have that one appear in all the other events which are
> shown below.
>
> I need to track the events which share a relationship. CHANNEL_EXECUTE and
> CHANNEL_EXECUTE_COMPLETE contain a unique Application-UUID, which is good
> and could suffice, but I haven’t found a way where I can relate the sendmsg
> command back to these two events.
>
> I know there is the Unique-ID header, but I’d like every action to be
> uniquely identifiable.
>
>
>
> Is that possible or am I asking way too much?
>
>
>
> "Command":      "sendmsg c48f66c0-e5be-11e3-a832-551ac922334e",
>
> "Event-Subclass":            "c48f66c0-e5be-11e3-a832-551ac922334e",
>
> "call-command":              "execute",
>
> "execute-app-name":   "playback",
>
> "execute-app-arg":         "/usr/src/freeswitch/sounds/basic/welcome.wav",
>
> "event-lock":     "true",
>
> "Event-Name": "PRIVATE_COMMAND",
>
>
>
> "Event-Name": "CHANNEL_EXECUTE",
>
> "Application":    "playback",
>
> "Application-Data":         "/usr/src/freeswitch/sounds/basic/welcome.wav",
>
> "Application-UUID":       "ca0df0a8-e5be-11e3-a83e-551ac922334e"
>
>
>
> "Event-Name": "PLAYBACK_START",
>
> "Playback-File-Path":     "/usr/src/freeswitch/sounds/basic/welcome.wav",
>
>
>
> "Event-Name": "PLAYBACK_STOP",
>
> "Playback-File-Path":     "/usr/src/freeswitch/sounds/basic/welcome.wav",
>
> "Playback-Status":           "done"
>
>
>
> "Event-Name": "CHANNEL_EXECUTE_COMPLETE",
>
> "Application":    "playback",
>
> "Application-Data":         "/usr/src/freeswitch/sounds/basic/welcome.wav",
>
> "Application-Response":              "FILE PLAYED",
>
> "Application-UUID":       "ca0df0a8-e5be-11e3-a83e-551ac922334e"
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140528/7b866066/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list