Peter, that was it, thank you. It&#39;s funny that in test code is 0 in getHeader()<div><br></div><div>Now I can anounce that FS is best ever... :-)<div><div id="WISESTAMP_SIG_4033"><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=1330902275696&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">What happens if you use index -1 in getHeader() call?<br>
<div class="im"><br>
/Peter<br>
<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 15:38<br>
<div class="im">Till: FreeSWITCH Users Help<br>
Ämne: Re: [Freeswitch-users] mod_managed<br>
<br>
</div><div><div class="h5">Well, it is code from ManagedEslTest<br>
<br>
static void OutboundModeAsync(Object stateInfo)<br>
    {<br>
      /* add next line to a dialplan<br>
       &lt;action application=&quot;socket&quot; data=&quot;localhost:8022 async full&quot; /&gt;<br>
      */<br>
      TcpListener tcpListener = new TcpListener(IPAddress.Parse(&quot;127.0.0.1&quot;), 8022);<br>
<br>
      try<br>
      {<br>
        tcpListener.Start();<br>
<br>
        Console.WriteLine(&quot;OutboundModeAsync, waiting for connections...&quot;);<br>
<br>
        while (true)<br>
        {<br>
          tcpListener.BeginAcceptSocket((asyncCallback) =&gt;<br>
         {<br>
           TcpListener tcpListened = (TcpListener)asyncCallback.AsyncState;<br>
<br>
           Socket sckClient = tcpListened.EndAcceptSocket(asyncCallback);<br>
<br>
           //Initializes a new instance of ESLconnection, and connects to the host $host on the port $port, and supplies $password to freeswitch<br>
           ESLconnection eslConnection = new ESLconnection(sckClient.Handle.ToInt32());<br>
<br>
           ESLevent eslEvent = eslConnection.GetInfo();<br>
           string strUuid = eslEvent.GetHeader(&quot;UNIQUE-ID&quot;, 0); //THERE I GET NULL<br>
<br>
           eslConnection.SendRecv(&quot;myevents&quot;);<br>
           eslConnection.SendRecv(&quot;divert_events on&quot;);<br>
<br>
           eslConnection.Execute(&quot;answer&quot;, String.Empty, String.Empty);<br>
           eslConnection.Execute(&quot;playback&quot;, &quot;../../../music/8000/suite-espanola-op-47-leyenda.wav&quot;, String.Empty);<br>
<br>
           while (eslConnection.Connected() == ESL_SUCCESS)<br>
           {<br>
             eslEvent = eslConnection.RecvEvent();<br>
             Console.WriteLine(eslEvent.Serialize(String.Empty));<br>
           }<br>
<br>
           sckClient.Close();<br>
           Console.WriteLine(&quot;Connection closed uuid:{0}&quot;, strUuid);<br>
<br>
         }, tcpListener);<br>
<br>
          Thread.Sleep(50);<br>
        }<br>
      }<br>
      catch (Exception ex)<br>
      {<br>
        Console.WriteLine(ex);<br>
      }<br>
      finally<br>
      {<br>
        tcpListener.Stop();<br>
      }<br>
    }<br>
<br>
<br>
<br>
</div></div><div class="im">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><div class="im">Please post your sample code here, and I will have a look.<br>
<br>
/Peter<br>
________________________________<br>
</div><div class="im">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><div class="im">Skickat: den 4 mars 2012 14:59<br>
Till: FreeSWITCH Users Help<br>
Ämne: Re: [Freeswitch-users] mod_managed<br>
<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;&lt;mailto:<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;&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;&lt;mailto:<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;&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;&lt;mailto:<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;&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;&lt;mailto:<a href="mailto:gregor@infomedia.si">gregor@infomedia.si</a>&lt;mailto:<a href="mailto:gregor@infomedia.si">gregor@infomedia.si</a>&gt;&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>
_________________________________________________________________________<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;&lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;&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;&lt;mailto:<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;&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>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<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>&lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<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>
</div>!DSPAM:4f537db532764595775111!<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></div>