[SR-Users] Removing Via and Record-Route headers

Marrold kamailio at marrold.co.uk
Sun Mar 20 02:43:34 CET 2016


Thanks for your quick response.

No, you can't remove those headers. They serve an essential purpose and the
> endpoints won't consider the requests or responses valid without them.
>

It should be theoretically possible to remove some of the via and
record-route headers, assuming the contact is also re-written. The end
point's (phones) themselves do not need to be aware of anything downstream
of the SIP server they're registered too.


>
> See my blog post on this topic:
>
>
> http://blog.csrpswitch.com/sip-udp-fragmentation-and-kamailio-the-sip-header-diet/


Thanks for the link!

On Sun, Mar 20, 2016 at 1:27 AM, Alex Balashov <abalashov at evaristesys.com>
wrote:

> Marrold,
>
> No, you can't remove those headers. They serve an essential purpose and
> the endpoints won't consider the requests or responses valid without them.
>
> See my blog post on this topic:
>
>
> http://blog.csrpswitch.com/sip-udp-fragmentation-and-kamailio-the-sip-header-diet/
>
> And you certainly can't hide topology this way.
>
> -- Alex
>
>
> On 03/19/2016 09:26 PM, Marrold wrote:
>
> Hi,
>>
>> Is there any way to remove Via and Record-Route headers from requests
>> sent to an endpoint and update the contact header, but have Kamailio
>> statefully remember where the replies need to route?
>>
>> I imagine this would involve mangling the packets slightly to behave
>> similar to a B2BUA.
>>
>> My motivations, in order of priority -
>>
>> 1) Reduce UDP packet size to avoid MTU limitations
>> 2) Improve interoperability, don't expect end points to be able to
>> properly parse / process many via / record-route headers
>> 3) Hide topology.
>>
>> If someone could point me in the right direction in terms of
>> configuration or modules, that would be great.
>>
>> Thanks
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
> 1447 Peachtree Street NE, Suite 700
> Atlanta, GA 30309
> United States
>
> Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160320/fae86741/attachment.html>


More information about the sr-users mailing list