[OpenSIPS-Users] Truncated Branch in Via

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Jul 6 11:38:08 CEST 2016

Hi Rahul,

That define is used to calculate the the max VIA len when OpenSIPS is 
generating its own VIA headers. That max len does not impact the VIA 
headers which were received.

I do not understand exactly (in your example) what's the flow of that 
VIA header. If you want, send me off-list the pcap/ngrep showing the SIP 
package (before and after OpenSIPS) and how it is affected.


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer

On 05.07.2016 20:57, Gupta, Rahul wrote:
> We are using opensips 1.11.5 as a stateless proxy and seeing a 
> truncated Branch in Via for my REGISTER message. After some code 
> digging, the MAX length is calculated using the following formula and 
> seems like its truncating the branch after 55 characters. This is 
> causing the REGISTER to fail in our case. Is there a config level 
> solution to this ?
> *#define MAX_BRANCH_PARAM_LEN  (MCOOKIE_LEN+8 /*!<int2hex*/ + 1 
> /*sep*/ + \*
> *                                MD5_LEN + 1 /*!<sep*/ + 8 /*int2hex*/ 
> + \*
> *                                1 /*extra space, needed by 
> t_calc_branch*/)*
> truncated from opensips à Via: SIP/2.0/UDP 
> XX.XX.XX.XX:5060;branch=z9hG4bK0fddbbc9-1487-4755-a0b3-0c319155b8c3_0efbfc5e_11160 
> Via from EndPoint à                   Via: SIP/2.0/UDP 
> XX.XX.XX.XX:5060;branch=z9hG4bK0fddbbc9-1487-4755-a0b3-0c319155b8c3_0efbfc5e_1116078308924346_MTAuMTIuMy4xMQ 
> *Thanks*
> *Rahul Gupta*
> DISCLAIMER: This e-mail may contain information that is confidential, 
> privileged or otherwise protected from disclosure. If you are not an 
> intended recipient of this e-mail, do not duplicate or redistribute it 
> by any means. Please delete it and any attachments and notify the 
> sender that you have received it in error. Unintended recipients are 
> prohibited from taking action on the basis of information in this 
> e-mail. E-mail messages may contain computer viruses or other defects, 
> may not be accurately replicated on other systems, or may be 
> intercepted, deleted or interfered with without the knowledge of the 
> sender or the intended recipient. If you are not comfortable with the 
> risks associated with e-mail messages, you may decide not to use 
> e-mail to communicate with IPC. IPC reserves the right, to the extent 
> and under circumstances permitted by applicable law, to retain, 
> monitor and intercept e-mail messages to and from its systems.
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160706/91485007/attachment-0001.htm>

More information about the Users mailing list