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"
In my ESL app I associate the CHANNEL_EXECUTE with the command I sent by comparing the Application & Application-Data headers to what I originally sent, then I store the Application-UUID in my app. I haven't found the PLAYBACK_START and PLAYBACK_STOP events so useful, also PLAYBACK_STOP doesn't always fire, in particular I found that if playback is stopped by sending the break command there is no PLAYBACK_STOP event. Duvid Rottenberg On Wed, May 28, 2014 at 3:08 AM, Grant Bagdasarian <GB@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Thanks Zoltan, I was not aware of this option, I will add it to the wiki. I have tested this in my app and it works. That really simplifies my code and makes me feel better about reliability. Thank You, Duvid Rottenberg On Wed, May 28, 2014 at 12:35 PM, Zoltan Medveczky <zoltan.medveczky@8x8.com
wrote:
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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Duvid, Are you moving these to confluence when updating them? -- Brian West brian@freeswitch.org Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On May 28, 2014, at 4:47 PM, Duvid Rottenberg <adrottenberg@gmail.com> wrote:
Thanks Zoltan, I was not aware of this option, I will add it to the wiki. I have tested this in my app and it works. That really simplifies my code and makes me feel better about reliability.
Thank You, Duvid Rottenberg
It looks like the current version of the page is already in confluence, I will update confluence with this option. On Thu, May 29, 2014 at 9:34 AM, Brian West <brian@freeswitch.org> wrote:
Duvid, Are you moving these to confluence when updating them? -- Brian West brian@freeswitch.org
Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com
T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
On May 28, 2014, at 4:47 PM, Duvid Rottenberg <adrottenberg@gmail.com> wrote:
Thanks Zoltan, I was not aware of this option, I will add it to the wiki. I have tested this in my app and it works. That really simplifies my code and makes me feel better about reliability.
Thank You, Duvid Rottenberg
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Hello Zoltan, Thank you! I thought it was the UUID of the channel I had to pass to the SendMSG command. This makes things easier now!! Cheers, Grant From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Zoltan Medveczky Sent: Wednesday, May 28, 2014 6:36 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Event Socket Layer State Diagram 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@cm.nl<mailto:GB@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@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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
My bad. You said add a new Event-UUID “header”. Btw, are the header names case sensitive? From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Grant Bagdasarian Sent: Friday, May 30, 2014 8:01 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Event Socket Layer State Diagram Hello Zoltan, Thank you! I thought it was the UUID of the channel I had to pass to the SendMSG command. This makes things easier now!! Cheers, Grant From: freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Zoltan Medveczky Sent: Wednesday, May 28, 2014 6:36 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Event Socket Layer State Diagram 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@cm.nl<mailto:GB@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@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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
participants (4)
-
Brian West
-
Duvid Rottenberg
-
Grant Bagdasarian
-
Zoltan Medveczky