Peter, that was it, thank you. It'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&v=3.11.16.0&t=1330902275696&u=2cae5e430c4ca423" width="1" height="1"><br></div></div><br><br><div class="gmail_quote">2012/3/4 Peter Olsson <span dir="ltr"><<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>></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>
<action application="socket" data="localhost:8022 async full" /><br>
*/<br>
TcpListener tcpListener = new TcpListener(IPAddress.Parse("127.0.0.1"), 8022);<br>
<br>
try<br>
{<br>
tcpListener.Start();<br>
<br>
Console.WriteLine("OutboundModeAsync, waiting for connections...");<br>
<br>
while (true)<br>
{<br>
tcpListener.BeginAcceptSocket((asyncCallback) =><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("UNIQUE-ID", 0); //THERE I GET NULL<br>
<br>
eslConnection.SendRecv("myevents");<br>
eslConnection.SendRecv("divert_events on");<br>
<br>
eslConnection.Execute("answer", String.Empty, String.Empty);<br>
eslConnection.Execute("playback", "../../../music/8000/suite-espanola-op-47-leyenda.wav", 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("Connection closed uuid:{0}", 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 <<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a><mailto:<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>>><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><mailto:<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><mailto:<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><mailto:<a href="mailto:gregor@infomedia.si">gregor@infomedia.si</a>>]<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 <<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a><mailto:<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>><mailto:<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a><mailto:<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>>>><br>
<div class="im">I'm not really sure about this, but the getHeader is maybe case sensitive? Have you tried<br>
<br>
"Event-Name" 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><mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>><mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><mailto:<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><mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>><mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><mailto:<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><mailto:<a href="mailto:gregor@infomedia.si">gregor@infomedia.si</a>><mailto:<a href="mailto:gregor@infomedia.si">gregor@infomedia.si</a><mailto:<a href="mailto:gregor@infomedia.si">gregor@infomedia.si</a>>>]<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'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("EVENT-NAME") , 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><mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>><mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>>><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><mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>><mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>>><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><mailto:<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><mailto:<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>
</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>