one really effective way is the topos module. If you can not use this, you could switch to compact sip header. This way you save some bytes per header-field. But this is something that needs to be supported from the user agent as well. You could remove not needed headers and SDP inside the Kamailio, but this will probably not help you a lot. In the end the user agents need to be fixed, probably.
--
Henning Westerholt –
https://skalatan.de/blog/
Kamailio services –
https://gilawa.com
> -----Original Message-----
> From: Benoît Panizzon via sr-users
sr-users@lists.kamailio.org
> Sent: Freitag, 23. Februar 2024 16:54
> To: sr-users@lists.kamailio.org
> Cc: Benoît Panizzon
benoit.panizzon@imp.ch
> Subject: [SR-Users] How to keep SIP messages small, possibly below
> fragmentation limit?
>
> Hi
>
> In the process of getting rid of our commercial B2Bua SBC and handling all
> clients directly via Kamailio...
>
> We have come across some (unfortunately many we have in use) CPE which
> have an issue with fragmented packets or which simply do not allocate enough
> memory to parse or create messages of a certain size. Their SIP stack just
> crashes with errors like 'message to large for send buffer'
> and similar.
>
> This affects messages with containing as little as 5 via and 4 record-route
> header and a couple of codec in the SDP.
>
> Is there a recipe for trying to keep packets as small as possible?
>
> I would like to avoid using the topos module as I issues with this module
> completely failing in certain situations.
>
> --
> Mit freundlichen Grüssen
>
> -Benoît Panizzon- @ HomeOffice und normal erreichbar
> --
> I m p r o W a r e A G - Leiter Commerce Kunden
> ______________________________________________________
>
> Zurlindenstrasse 29 Tel +41 61 826 93 00
> CH-4133 Pratteln Fax +41 61 826 93 01
> Schweiz Web
http://www.imp.ch
> ______________________________________________________
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe
> send an email to sr-users-leave@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the
> sender!
> Edit mailing list options or unsubscribe: