[SR-Users] limit the length of Via branch parameter

Henning Westerholt hw at gilawa.com
Tue Mar 15 08:36:35 CET 2022


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<https://gilawa.com/>

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

hello ,
he one that is generated from Kamailio
________________________________
De : Henning Westerholt <hw at gilawa.com<mailto:hw at gilawa.com>>
Envoyé : lundi 14 mars 2022 11:39
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Cc : Patrick Karton <patrickarton at hotmail.com<mailto:patrickarton at 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<https://gilawa.com/>



From: sr-users <sr-users-bounces at lists.kamailio.org<mailto:sr-users-bounces at lists.kamailio.org>> On Behalf Of Patrick Karton
Sent: Sunday, March 13, 2022 10:44 AM
To: sr-users at lists.kamailio.org<mailto:sr-users at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220315/644acd53/attachment.htm>


More information about the sr-users mailing list