All,

I committed a pjsip patch pull request in pjsip project to support SIP 3xx 
embedded header. It inserts stand-alone SIP headers based on SIP 3xx Contact 
header URI header parameters into the redirect SIP INVITE messages. It is a 
common feature supported by any SIP implementations, such as Metaswitch, Oracle 
SBC, Ribbon, etc. It should solve the issue that it is difficult to pass useful 
information using SIP 3xx in Asterisk. If anybody wants to try, the patch link 
is attached.

https://github.com/pjsip/pjproject/pull/3085/commits/b065eef9913df144445757808b352c2ce9054809

To use this patch, please follow the steps

  1.  Download Asterisk 18 source code
  2.  Run “./configure --with-pjproject-bundled --with-jansson-bundled”.
  3.  Apply the patch to 
./third-party/pjproject/source/pjsip/src/pjsip-ua/sip_inv.c
  4.  Build/install/run Asterisk
  5.  In pjsip.conf, the redirect server endpoint should be configured with 
“redirect_method=uri_pjsip”
  6.  When the redirect server returns a SIP 3xx with Contact header, say 
“Contact: <sip:xxxxxxxxxxx@a.b.c.d?Test=test>;q=0.99”, the redirected SIP 
INVITE message should contain “Test: test” header.

Please me know if you have any questions.

Sincerely,

Di-Shi Sun.




_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to