<br><br><div class="gmail_quote">On Mon, Jul 30, 2012 at 12:08 PM, Hector Geraldino <span dir="ltr"><<a href="mailto:Hector.Geraldino@ipsoft.com" target="_blank">Hector.Geraldino@ipsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I don’t know what API you’re using to handle ESL connections, but in general all you need to do is to send an execute command with sendmsg:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">sendmsg <uuid><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">call-command: execute<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">execute-app-name: speak<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">execute-app-arg: flite|kal|Hello world<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> </span></p>
</div></div></blockquote><br>
</div>The method Hector suggests is good if you are doing a raw outbound event socket connection. I'd recommend using ESL and the programming language of your choice to help abstract away some of the unnecessary details.<br>
<br>Also, if for some reason you need to execute the command on an arbitrary UUID then you can use uuid_broadcast. From fs_cli you can test it:<br><br>uuid_broadcast <uuid> speak::flite|kal|'hello word' bleg<br>
<br>Replace 'bleg' with 'aleg' or 'both' depending on exactly you want to accomplish, i.e. play on the inbound leg, outbound leg, or both.<br><br>-MC<br>