Prefix the header with X-. Anything else is invalid.On 18 March 2015 at 07:51, Ali Jibran <ali.jibran44@gmail.com> wrote:_________________________________________________________________________Hi all.
I make a call to FS callcenter using webRTC. Now I would like to add some additional data to the header.
That I did by using extraheaders. Now all that is good. I can see the custom header in the sip trace on freeswitch.
For e.g in sip.js I add:var options = {extraHeaders: [ 'a: foo' ]};
on FS i get:INVITE sip:900@anonymous.invalid SIP/2.0Via: SIP/2.0/WS 9jscv0q24s4m.invalid;branch=z9hG4bK1002472Max-Forwards: 70To: <sip:900@anonymous.invalid>From: <sip:anonymous.hfsqa4@anonymous.invalid>;tag=depmif1fo5Call-ID: l5pieavpjguoset7ugvdCSeq: 1458 INVITEa: fooContact: <sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob>Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGEContent-Type: application/sdpContact: <sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob>Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGEContent-Type: application/sdpSupported: outboundUser-Agent: SIP.js/0.5.0Content-Length: 3636How do I access it in the dialplan? I tried ${sip_h_X-a} but it didnt't work. Help please?
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Brian West
brian@freeswitch.org

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest