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
extraHeaders
Array
ofStrings
with extra SIP headers to be included in every REGISTER request. Set it tonull
to 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
extraContactParams
Object
with keys representing the header param name and values representing their param values. Set it tonull
to remove them.
ua.registrator.setExtraContactParams({
x-vendor: 'FooBar',
verified: true
});
// => ;x-vendor=FooBar;x-verified