<div dir="ltr">Prefix the header with X-. Anything else is invalid.</div><div class="gmail_extra"><br><div class="gmail_quote">On 18 March 2015 at 07:51, Ali Jibran <span dir="ltr">&lt;<a href="mailto:ali.jibran44@gmail.com" target="_blank">ali.jibran44@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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: [ &#39;a: foo&#39; ]</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: &lt;sip:900@anonymous.invalid&gt;</div><div>   From: &lt;sip:anonymous.hfsqa4@anonymous.invalid&gt;;tag=depmif1fo5</div><div>   Call-ID: l5pieavpjguoset7ugvd</div><div>   CSeq: 1458 INVITE</div><div>  <b> a: foo</b></div><div>   Contact: &lt;sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob&gt;</div><div>   Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE</div><div>   Content-Type: application/sdp</div><div>   Contact: &lt;sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob&gt;</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&#39;t work. Help please?</div></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></div>