Hello Patrick,

 

then you probably need to change the code of Kamailio.

 

The length of the Via branch parameter is not restricted in RFC 3261. The relevant section only states:

 

https://www.rfc-editor.org/rfc/rfc3261#section-8.1.1.7

 

   The branch parameter value MUST be unique across space and time for

   all requests sent by the UA. [..]

   The branch ID inserted by an element compliant with this

   specification MUST always begin with the characters "z9hG4bK".  [..]

   Beyond this requirement,

   the precise format of the branch token is implementation-defined.

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: Patrick Karton <patrickarton@hotmail.com>
Sent: Tuesday, March 15, 2022 1:40 AM
To: Henning Westerholt <hw@gilawa.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: RE: limit the length of Via branch parameter

 

hello ,

he one that is generated from Kamailio


De : Henning Westerholt <hw@gilawa.com>
Envoyé : lundi 14 mars 2022 11:39
À : Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc : Patrick Karton <patrickarton@hotmail.com>
Objet : RE: limit the length of Via branch parameter

 

Hello,

 

not sure why one wants to do this, but anyway - do you mean the value that is processed from Kamailio, or the one that is generated from Kamailio?

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Patrick Karton
Sent: Sunday, March 13, 2022 10:44 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] limit the length of Via branch parameter

 

Hello,

 

i would like to know if there is a way or option to limit the length of the value of branch parameter in Via header ? 

 

Thanks.