Hi
My function :
function onCallStateChanged(event, call, state, message) {
if ( state == 1 ) {
console.log(call.currentParams.getCustomHeader("MyCustomVar"));
};
};
On my server I add custom header "MyCustomVar" and I see his in wireshark on my pc :
INVITE sip:address@hidden SIP/2.0
Via: SIP/2.0/UDP 192.168.100.203:5060;branch=z9hG4bK5a6d9502
Max-Forwards: 70
From: <sip:address@hidden>;tag=as682f73ae
To: <sip:address@hidden>
Contact: <sip:address@hidden:5060>
Call-ID: address@hidden:5060
CSeq: 102 INVITE
Date: Thu, 28 May 2015 09:31:33 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
MyCustomVar: 100
Content-Type: application/sdp
Content-Length: 284
but I can't get his in my function.
Thanks in advance for all your help.