JsSIP icon indicating copy to clipboard operation
JsSIP copied to clipboard

New UA config param for global extra headers

Open stefang42 opened this issue 3 years ago • 1 comments

Some proprietary SIP call managers require the presence of specific extra SIP headers to be present in every single request and response from a client. Currently JsSIP doesn't have a way to accomplish that, extra headers can only be added to some specific requests and responses that are directly triggered via JsSIP APIs like UA.call() or RTCSession.answer(), but many requests/responses that are triggered internally by JsSIP like ACKs or error responses don't contain these headers.

This PR adds the new UA configuration entry "extra_headers", which contains headers that should be added to every request and response, even provisional responses and ACKs. Any extra headers that are provided through the already existing APIs are added on top of these global extra headers.

stefang42 avatar Apr 21 '22 07:04 stefang42

Merge?

Once I prepare a new version in the docs I'll merge and add this config.

jmillan avatar Jun 10 '22 10:06 jmillan

Thanks @stefang42, JsSIP 3.10.0 has been released.

jmillan avatar Nov 05 '22 22:11 jmillan