<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 &amp; Application-Data headers to what I originally sent, then I store the Application-UUID in my app.<br>
<br><div>I haven&#39;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&#39;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">&lt;<a href="mailto:GB@cm.nl" target="_blank">GB@cm.nl</a>&gt;</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">&quot;Command&quot;:      &quot;sendmsg c48f66c0-e5be-11e3-a832-551ac922334e&quot;,<u></u><u></u></p><p class="MsoNormal">&quot;Event-Subclass&quot;:            &quot;c48f66c0-e5be-11e3-a832-551ac922334e&quot;,<u></u><u></u></p>
<p class="MsoNormal">&quot;call-command&quot;:              &quot;execute&quot;,<u></u><u></u></p><p class="MsoNormal">&quot;execute-app-name&quot;:   &quot;playback&quot;,<u></u><u></u></p><p class="MsoNormal">&quot;execute-app-arg&quot;:         &quot;/usr/src/freeswitch/sounds/basic/welcome.wav&quot;,<u></u><u></u></p>
<p class="MsoNormal">&quot;event-lock&quot;:     &quot;true&quot;,<u></u><u></u></p><p class="MsoNormal">&quot;Event-Name&quot;: &quot;PRIVATE_COMMAND&quot;,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
&quot;Event-Name&quot;: &quot;CHANNEL_EXECUTE&quot;,<u></u><u></u></p><p class="MsoNormal">&quot;Application&quot;:    &quot;playback&quot;,<u></u><u></u></p><p class="MsoNormal">&quot;Application-Data&quot;:         &quot;/usr/src/freeswitch/sounds/basic/welcome.wav&quot;,<u></u><u></u></p>
<p class="MsoNormal">&quot;Application-UUID&quot;:       &quot;ca0df0a8-e5be-11e3-a83e-551ac922334e&quot;<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">&quot;Event-Name&quot;: &quot;PLAYBACK_START&quot;,<u></u><u></u></p>
<p class="MsoNormal">&quot;Playback-File-Path&quot;:     &quot;/usr/src/freeswitch/sounds/basic/welcome.wav&quot;,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">&quot;Event-Name&quot;: &quot;PLAYBACK_STOP&quot;,<u></u><u></u></p>
<p class="MsoNormal">&quot;Playback-File-Path&quot;:     &quot;/usr/src/freeswitch/sounds/basic/welcome.wav&quot;,<u></u><u></u></p><p class="MsoNormal">&quot;Playback-Status&quot;:           &quot;done&quot;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">&quot;Event-Name&quot;: &quot;CHANNEL_EXECUTE_COMPLETE&quot;,<u></u><u></u></p><p class="MsoNormal">&quot;Application&quot;:    &quot;playback&quot;,<u></u><u></u></p>
<p class="MsoNormal">&quot;Application-Data&quot;:         &quot;/usr/src/freeswitch/sounds/basic/welcome.wav&quot;,<u></u><u></u></p><p class="MsoNormal">&quot;Application-Response&quot;:              &quot;FILE PLAYED&quot;,<u></u><u></u></p>
<p class="MsoNormal">&quot;Application-UUID&quot;:       &quot;ca0df0a8-e5be-11e3-a83e-551ac922334e&quot;<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>