<div dir="ltr">In my ESL app I associate the <span style="font-family:Calibri,sans-serif;font-size:15px">CHANNEL_EXECUTE</span> 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.<br>
<br><div>I haven't found the <span style="font-family:Calibri,sans-serif;font-size:15px">PLAYBACK_START and </span><span style="font-family:Calibri,sans-serif;font-size:15px">PLAYBACK_STOP events so useful, also </span><span style="font-family:Calibri,sans-serif;font-size:15px">PLAYBACK_STOP doesn't always fire, in particular I found that if playback is stopped by sending the break command there is no </span><span style="font-family:Calibri,sans-serif;font-size:15px">PLAYBACK_STOP event.</span></div>
<div><span style="font-family:Calibri,sans-serif;font-size:15px"><br></span></div><div><span style="font-family:Calibri,sans-serif;font-size:15px">Duvid Rottenberg</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, May 28, 2014 at 3:08 AM, Grant Bagdasarian <span dir="ltr"><<a href="mailto:GB@cm.nl" target="_blank">GB@cm.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hello,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Is there a state diagram available which shows the state transitioning for all Channel Events and Channel States?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I do have a small question.<u></u><u></u></p><p class="MsoNormal">When using the SendMSG method of ESLConnection to playback a file, the below sequence of events is generated.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal">I know there is the Unique-ID header, but I’d like every action to be uniquely identifiable. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Is that possible or am I asking way too much?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">"Command": "sendmsg c48f66c0-e5be-11e3-a832-551ac922334e",<u></u><u></u></p><p class="MsoNormal">"Event-Subclass": "c48f66c0-e5be-11e3-a832-551ac922334e",<u></u><u></u></p>
<p class="MsoNormal">"call-command": "execute",<u></u><u></u></p><p class="MsoNormal">"execute-app-name": "playback",<u></u><u></u></p><p class="MsoNormal">"execute-app-arg": "/usr/src/freeswitch/sounds/basic/welcome.wav",<u></u><u></u></p>
<p class="MsoNormal">"event-lock": "true",<u></u><u></u></p><p class="MsoNormal">"Event-Name": "PRIVATE_COMMAND",<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
"Event-Name": "CHANNEL_EXECUTE",<u></u><u></u></p><p class="MsoNormal">"Application": "playback",<u></u><u></u></p><p class="MsoNormal">"Application-Data": "/usr/src/freeswitch/sounds/basic/welcome.wav",<u></u><u></u></p>
<p class="MsoNormal">"Application-UUID": "ca0df0a8-e5be-11e3-a83e-551ac922334e"<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">"Event-Name": "PLAYBACK_START",<u></u><u></u></p>
<p class="MsoNormal">"Playback-File-Path": "/usr/src/freeswitch/sounds/basic/welcome.wav",<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">"Event-Name": "PLAYBACK_STOP",<u></u><u></u></p>
<p class="MsoNormal">"Playback-File-Path": "/usr/src/freeswitch/sounds/basic/welcome.wav",<u></u><u></u></p><p class="MsoNormal">"Playback-Status": "done"<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">"Event-Name": "CHANNEL_EXECUTE_COMPLETE",<u></u><u></u></p><p class="MsoNormal">"Application": "playback",<u></u><u></u></p>
<p class="MsoNormal">"Application-Data": "/usr/src/freeswitch/sounds/basic/welcome.wav",<u></u><u></u></p><p class="MsoNormal">"Application-Response": "FILE PLAYED",<u></u><u></u></p>
<p class="MsoNormal">"Application-UUID": "ca0df0a8-e5be-11e3-a83e-551ac922334e"<u></u><u></u></p></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>