[SR-Users] Via header line missing

Karlheinz Knapp kknapp66 at gmail.com
Wed Sep 5 17:43:34 CEST 2018


Hi,

we want to use kamailio as a IPv6 to IPv4 proxy.
IPv4 to IPv4 bridging with NAT works.

If we come from an IPv6 address, the registration packet is send via IPv4
to the provider.
He answers with 401 Unauthorized and one Via line in the header.
On the IPv6 side was no Via line in the packet.

So I tried to add one line by hand using an onreply_route and append_hf(),
msg_apply_changes()
To my suprise, this line does never appear, but the original Via line is
now in the packet !!!
If I add now additional Via header lines, they appear in the packet too.

This looks realy like a bug to me.

A solution is needed, because the phone does not respond to the 401 with
user and password.
It starts a new registration instead.

Maybe I can fix it with my additional Via linem but I need the original
branch ID (I think)
How can I get this?

Btw. we have this behaviour with 4.4.2 and 5.1.5

If I get no answer during the next 12 hours I'll try 3.3.7

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180905/12f42106/attachment.html>


More information about the sr-users mailing list