<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">That would have worked if the variable you put into the message was X-a instead of a<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 18, 2015, at 6:51 AM, Ali Jibran <<a href="mailto:ali.jibran44@gmail.com" class="">ali.jibran44@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi all.<br class="">I make a call to FS callcenter using webRTC. Now I would like to add some additional data to the header. <br class="">That I did by using extraheaders. Now all that is good. I can see the custom header in the sip trace on freeswitch.<br class=""><br class="">For e.g in sip.js I add:<div class=""><div class=""><div class="">var options = {</div><div class=""> extraHeaders: [ 'a: foo' ]</div><div class="">};</div></div><br class=""><br class="">on FS i get:<div class=""><div class=""> INVITE <a href="sip:900@anonymous.invalid" class="">sip:900@anonymous.invalid</a> SIP/2.0</div><div class=""> Via: SIP/2.0/WS 9jscv0q24s4m.invalid;branch=z9hG4bK1002472</div><div class=""> Max-Forwards: 70</div><div class=""> To: <<a href="sip:900@anonymous.invalid" class="">sip:900@anonymous.invalid</a>></div><div class=""> From: <<a href="sip:anonymous.hfsqa4@anonymous.invalid" class="">sip:anonymous.hfsqa4@anonymous.invalid</a>>;tag=depmif1fo5</div><div class=""> Call-ID: l5pieavpjguoset7ugvd</div><div class=""> CSeq: 1458 INVITE</div><div class=""> <b class=""> a: foo</b></div><div class=""> Contact: <<a href="sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob" class="">sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob</a>></div><div class=""> Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE</div><div class=""> Content-Type: application/sdp</div><div class=""> Contact: <<a href="sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob" class="">sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob</a>></div><div class=""> Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE</div><div class=""> Content-Type: application/sdp</div><div class=""> Supported: outbound</div><div class=""> User-Agent: SIP.js/0.5.0</div><div class=""> Content-Length: 3636</div></div></div><div class=""><br class=""></div><div class="">How do I access it in the dialplan? I tried ${sip_h_X-a} but it didnt't work. Help please?</div></div></div></blockquote></div><br class=""></div></body></html>