<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] Reading custom SIP headers</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>If they are actually &#8220;Price&#8221; and &#8220;Gateway&#8221; you are doing it wrong, they should be either X- or P- headers since they are private headers. Else you will have to hack the code to get access to them<BR>
<BR>
On 4/9/14 1:16 PM, &quot;ik&quot; &lt;<a href="idokan@gmail.com">idokan@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<BR>
On Wed, Apr 9, 2014 at 7:08 PM, Ken Rice &lt;<a href="krice@freeswitch.org">krice@freeswitch.org</a>&gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Use the info dialplan application on one of the calls coming in to see how they actually show up as chan vars<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
Thanks for the reply, but as I wrote, I already tried to use info, and it did not gave me the variables. <BR>
I can only see them on sofia's trace.<BR>
<BR>
 <BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<BR>
On 4/9/14 10:59 AM, &quot;ik&quot; &lt;<a href="idokan@gmail.com">idokan@gmail.com</a> &lt;<a href="http://idokan@gmail.com">http://idokan@gmail.com</a>&gt; &gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Hello,<BR>
<BR>
I have a SIP Provider that add custom headers to sip .<BR>
I tried to see them using app info, but they do not appear, but with sofia trace I can see them.<BR>
<BR>
For example the provider gives me a header named:<BR>
</SPAN></FONT><SPAN STYLE='font-size:11pt'><FONT FACE="Courier New">Price: 0.25<BR>
Gateway: foo<BR>
</FONT><FONT FACE="Monaco, Courier New"><BR>
The upper case letter is part of the name, and both Price and Gateway are different headers.<BR>
<BR>
I tried also to read them using ${variable_sip_Gateway} and ${sip_Gateway}, but the variables are empty.<BR>
<BR>
How can I read the extra sip headers ?<BR>
<BR>
Thanks,<BR>
Ido<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></FONT></SPAN><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;<a href="http://consulting@freeswitch.org">http://consulting@freeswitch.org</a>&gt; <BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> &lt;<a href="http://FreeSWITCH-users@lists.freeswitch.org">http://FreeSWITCH-users@lists.freeswitch.org</a>&gt; <BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><FONT COLOR="#888888"><BR>
</FONT></SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
Twitter: @FreeSWITCH<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>