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 of Strings with extra SIP headers to be included in every REGISTER request. Set it to null 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 represenging their param values. Set it to null to remove them.
ua.registrator.setExtraContactParams([
  x-vendor: 'FooBar',
  verified: true
]);

// =>  ;x-vendor=FooBar;x-verified