Please confirm: are you sending the call to the &quot;socket&quot; application in your dialplan? If so, then your ESL app needs to be listening on the TCP port specified. See the examples here: <a href="http://wiki.freeswitch.org/wiki/Event_Socket_Outbound#Examples">http://wiki.freeswitch.org/wiki/Event_Socket_Outbound#Examples</a><div>
<br></div><div>-MC<br><br><div class="gmail_quote">On Mon, Oct 24, 2011 at 8:50 AM, Nuwan Wijerathne <span dir="ltr">&lt;<a href="mailto:NuwanW@unifybusiness.co.uk">NuwanW@unifybusiness.co.uk</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-GB" link="blue" vlink="purple"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’m trying to build an IVR application around freeswtich. I’m using freeswitch event socket in C#. I’m intercepting inbound calls in the dial plan and sending them to my application via outbound socket. Could someone please explain how to execute “answer” application through event socket. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Eg – I’m sending the command as below and it’s not working.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">ESLConnection eslConnection = new ESLConnection(server, port, password)<u></u><u></u></p>
<p class="MsoNormal">ESLEvent eventHandle = eslConnection.SendRecv(“event plain ALL”);<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">eventHandle = eslConnection.RecvEvent();<u></u><u></u></p>
<p class="MsoNormal">string uniqueCallID = evenHandle.GetHeader(“Unique-ID”);<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><b><span style="color:#953735">eslConnection.Execute(“answer”, string.Empty, UniqueCallID);<u></u><u></u></span></b></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I believe I’m doing something wrong as I can’t find required information. Could someone please let me know where to find more information about freeswitch event socket in .Net. (Google not giving me required information)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thank you,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><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>