No subject


Wed Dec 21 17:12:16 CET 2011


The maddr parameter indicates the server address to be
contacted for this user, overriding any address derived from
the host field.  When an maddr parameter is present, the port
and transport components of the URI apply to the address
indicated in the maddr parameter value.  [4] describes the
proper interpretation of the transport, maddr, and hostport in
order to obtain the destination address, port, and transport
for sending a request.

I can see that OpenSIPS has fixed this.
http://sourceforge.net/tracker/?func=3Ddetail&atid=3D1086410&aid=3D3312423&=
group_id=3D232389

Would it be possible to get this patch into Kamailio also?

/Morten



On Fri, Jun 1, 2012 at 8:57 AM, Morten Isaksen <misak at misak.dk> wrote:
> Hi,
>
> I have this setup:
>
> Mediation server with internal ip -- NAT firewall -- Kamailio proxy --
> PSTN gateway
>
> The mediation server sends a contact header with maddr=3D<internal IP>
>
> fix_nated_contact only changes the host part and leaves the maddr intact.
>
> When the PSTN gateway sends a PRACK or a BYE it puts the <internal IP>
> in the RURI, and kamailio then try to forward the message directly to
> the <internal IP> and not the NAT ip.
>
>
> From RFC 3261 19.1.1:
>
> =A0 =A0 =A0 =A0 The maddr parameter indicates the server address to be
> =A0 =A0 =A0 =A0 contacted for this user, overriding any address derived f=
rom
> =A0 =A0 =A0 =A0 the host field. =A0When an maddr parameter is present, th=
e port
> =A0 =A0 =A0 =A0 and transport components of the URI apply to the address
> =A0 =A0 =A0 =A0 indicated in the maddr parameter value. =A0[4] describes =
the
> =A0 =A0 =A0 =A0 proper interpretation of the transport, maddr, and hostpo=
rt in
> =A0 =A0 =A0 =A0 order to obtain the destination address, port, and transp=
ort
> =A0 =A0 =A0 =A0 for sending a request.
>
>
> I can see that OpenSIPS has fixed this.
> http://sourceforge.net/tracker/?func=3Ddetail&atid=3D1086410&aid=3D331242=
3&group_id=3D232389
>
> Would it be possible to get this patch into Kamailio also?
>
> --
> Morten Isaksen



--=20
Morten Isaksen



More information about the sr-users mailing list