Well, it is code from ManagedEslTest<div><br></div><div><div>static void OutboundModeAsync(Object stateInfo)</div><div>    {</div><div>      /* add next line to a dialplan</div><div>       &lt;action application=&quot;socket&quot; data=&quot;localhost:8022 async full&quot; /&gt;</div>
<div>      */</div><div>      TcpListener tcpListener = new TcpListener(IPAddress.Parse(&quot;127.0.0.1&quot;), 8022);</div><div><br></div><div>      try</div><div>      {</div><div>        tcpListener.Start();</div><div>
<br></div><div>        Console.WriteLine(&quot;OutboundModeAsync, waiting for connections...&quot;);</div><div><br></div><div>        while (true)</div><div>        {</div><div>          tcpListener.BeginAcceptSocket((asyncCallback) =&gt;</div>
<div>         {</div><div>           TcpListener tcpListened = (TcpListener)asyncCallback.AsyncState;</div><div><br></div><div>           Socket sckClient = tcpListened.EndAcceptSocket(asyncCallback);</div><div><br></div>
<div>           //Initializes a new instance of ESLconnection, and connects to the host $host on the port $port, and supplies $password to freeswitch</div><div>           ESLconnection eslConnection = new ESLconnection(sckClient.Handle.ToInt32());</div>
<div><br></div><div>           ESLevent eslEvent = eslConnection.GetInfo();</div><div>           string strUuid =<b> eslEvent.GetHeader(&quot;UNIQUE-ID&quot;, 0); //THERE I GET NULL</b></div><div><br></div><div>           eslConnection.SendRecv(&quot;myevents&quot;);</div>
<div>           eslConnection.SendRecv(&quot;divert_events on&quot;);</div><div><br></div><div>           eslConnection.Execute(&quot;answer&quot;, String.Empty, String.Empty);</div><div>           eslConnection.Execute(&quot;playback&quot;, &quot;../../../music/8000/suite-espanola-op-47-leyenda.wav&quot;, String.Empty);</div>
<div><br></div><div>           while (eslConnection.Connected() == ESL_SUCCESS)</div><div>           {</div><div>             eslEvent = eslConnection.RecvEvent();</div><div>             Console.WriteLine(eslEvent.Serialize(String.Empty));</div>
<div>           }</div><div><br></div><div>           sckClient.Close();</div><div>           Console.WriteLine(&quot;Connection closed uuid:{0}&quot;, strUuid);</div><div><br></div><div>         }, tcpListener);</div><div>
<br></div><div>          Thread.Sleep(50);</div><div>        }</div><div>      }</div><div>      catch (Exception ex)</div><div>      {</div><div>        Console.WriteLine(ex);</div><div>      }</div><div>      finally</div>
<div>      {</div><div>        tcpListener.Stop();</div><div>      }</div><div>    }</div><div id="WISESTAMP_SIG_8353"><div style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif"><img src="https://wisestamp.appspot.com/pixel.png?p=chrome&amp;v=3.11.16.0&amp;t=1330871667264&amp;u=2cae5e430c4ca423" width="1" height="1"><br>
</div></div><br><br><div class="gmail_quote">2012/3/4 Peter Olsson <span dir="ltr">&lt;<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Please post your sample code here, and I will have a look.<br>
<div class="im"><br>
/Peter<br>
________________________________<br>
Från: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] för Gregor Nanger [<a href="mailto:gregor@infomedia.si">gregor@infomedia.si</a>]<br>

</div>Skickat: den 4 mars 2012 14:59<br>
Till: FreeSWITCH Users Help<br>
Ämne: Re: [Freeswitch-users] mod_managed<br>
<div class="im"><br>
I did tried all permutations...<br>
<br>
Even getBody() returns null.... Do you think that this is because of Windows installation?<br>
<br>
Otherwise library works ok.<br>
<br>
<br>
<br>
<br>
</div>2012/3/4 Peter Olsson &lt;<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>&lt;mailto:<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>&gt;&gt;<br>

<div class="im">I&#39;m not really sure about this, but the getHeader is maybe case sensitive? Have you tried<br>
<br>
&quot;Event-Name&quot; as the header name instead?<br>
<br>
/Peter<br>
<br>
________________________________<br>
</div>Från: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>&lt;mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>&gt; [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>&lt;mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>&gt;] för Gregor Nanger [<a href="mailto:gregor@infomedia.si">gregor@infomedia.si</a>&lt;mailto:<a href="mailto:gregor@infomedia.si">gregor@infomedia.si</a>&gt;]<br>

<div class="im">Skickat: den 4 mars 2012 13:10<br>
Till: FreeSWITCH Users Help<br>
Ämne: [Freeswitch-users] mod_managed<br>
<br>
<br>
I&#39;m so close to anounce  Freeswitch as the best voip software ever created :-)<br>
<br>
I am using mod_managed with c# and trying Test Visual studio project that is included. I can connect inbound and outbound and I can control call. But I cannot read header. If I use method getHeader(&quot;EVENT-NAME&quot;) , response is null. Whichever header I read, I get null. Serialize method prints all headers..<br>

<br>
Any suggestion? I am using Freeswitch with Windows OS.<br>
<br>
<br>
<br>
</div><div class="im">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
</div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>
<div class="im"><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>
</div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>
<div class="im"><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>
</div>!DSPAM:4f5373e932764490361988!<br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>