Class JsSIP.Registrator
The class JsSIP.Registrator manages the UA reigstration procedures.
Instance Methods
setExtraHeaders(extraHeaders)
Append custom headers to every REGISTER / un-REGISTER request. They can be overriden at any time.
Parameters
extraHeadersArrayofStringswith extra SIP headers to be included in every REGISTER request. Set it tonullto remove them.
ua.registrator.setExtraHeaders([
'X-Foo: bar'
]);
setExtraContactParams(extraContactParams)
Append custom header params into the Contact header of every REGISTER / un-REGISTER request. They can be overriden at any time.
Parameters
extraContactParamsObjectwith keys representing the header param name and values representing their param values. Set it tonullto remove them.
ua.registrator.setExtraContactParams({
x-vendor: 'FooBar',
verified: true
});
// => ;x-vendor=FooBar;x-verified