<div dir="ltr">Sadly thats no longer true, Crazy right?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 7:28 AM, Ben Langfeld <span dir="ltr"><<a href="mailto:ben@langfeld.co.uk" target="_blank">ben@langfeld.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Prefix the header with X-. Anything else is invalid.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 18 March 2015 at 07:51, Ali Jibran <span dir="ltr"><<a href="mailto:ali.jibran44@gmail.com" target="_blank">ali.jibran44@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi all.<br>I make a call to FS callcenter using webRTC. Now I would like to add some additional data to the header. <br>That I did by using extraheaders. Now all that is good. I can see the custom header in the sip trace on freeswitch.<br><br>For e.g in sip.js I add:<div><div><div>var options = {</div><div> extraHeaders: [ 'a: foo' ]</div><div>};</div></div><br><br>on FS i get:<div><div> INVITE sip:900@anonymous.invalid SIP/2.0</div><div> Via: SIP/2.0/WS 9jscv0q24s4m.invalid;branch=z9hG4bK1002472</div><div> Max-Forwards: 70</div><div> To: <sip:900@anonymous.invalid></div><div> From: <sip:anonymous.hfsqa4@anonymous.invalid>;tag=depmif1fo5</div><div> Call-ID: l5pieavpjguoset7ugvd</div><div> CSeq: 1458 INVITE</div><div> <b> a: foo</b></div><div> Contact: <sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob></div><div> Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE</div><div> Content-Type: application/sdp</div><div> Contact: <sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob></div><div> Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE</div><div> Content-Type: application/sdp</div><div> Supported: outbound</div><div> User-Agent: SIP.js/0.5.0</div><div> Content-Length: 3636</div></div></div><div><br></div><div>How do I access it in the dialplan? I tried ${sip_h_X-a} but it didnt't work. Help please?</div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.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://confluence.freeswitch.org" target="_blank">http://confluence.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" target="_blank">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></blockquote></div><br></div>
<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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div>
</div>