How to define custom +sip.instance parameter in Contact header in PJSIP?

Viewed 15

I am trying to customise the PJSIP +sip.instance parameter in the Contact header but PJSIP does not allow me to do that.

I try to use

pjsua --use-tls --id="sip:XXXXXXX" --registrar="sip:XXXXXXXX:XXXX;transport=tls" --realm="XXXXXXX" --username="XXXXXX" --password="XXXXXX" --contact-params='+sip.instance="<urn:uuid:00000000-0000-XXXX-XXXX-XXXXXXXXXXX>"' 

but there is again another +sip.instance parameter added to the contact header based on the default value and I get an error like this:

 sip_reg.c  .Invalid Contact: "<sip:XXXXXXXXXX;transport=TLS;ob>+sip.instance=<urn:uuid:00000000-0000-XXXX-XXXX-XXXXXXXXXXX>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-YYYY-YYYY-YYYYYYYYYY>""

How do I remove the default +sip.instance parameter and add my own custom +sip.instance parameter in the Contact header?

0 Answers
Related