[OpenSIPS-Users] UDP to TCP issue with Re-INVITE

Mickael Hubert mickael at winlux.fr
Mon Dec 16 08:27:26 EST 2019


Hi David,
Yes I use it

if (nat_uac_test("3") && ($Ri == $var(publicip) || $Ri == $var(vpnip)))
{
xlog("L_INFO","$avp(startlog) -- Nated EP Detected\n");
if (force_rport())
{
xlog("L_INFO","$avp(startlog) -- RPORT parameter forced\n");
}
if (fix_nated_contact())
{
xlog("L_INFO","$avp(startlog) -- Nated $rm's Contact Fixed !\n");
}
if (fix_nated_sdp("10"))
{
xlog("L_INFO","$avp(startlog) -- Nated SDP Fixed for $rm\n");
}
}

Le lun. 16 déc. 2019 à 13:50, David Villasmil <
david.villasmil.work at gmail.com> a écrit :

> Aré you using nathelper?
>
> On Mon, 16 Dec 2019 at 12:06, Mickael Hubert <mickael at winlux.fr> wrote:
>
>> Hi all,
>> I advanced in my LAB
>> I have this configuration:
>> SIP client (tcp:192.168.10.203) -- my NAT router --> (tcp:2.2.2.2:8060)
>> opensips (udp:10.1.15.126:5060) --> rest of infra (udp:10.1.15.0/24:5060)
>>
>> When I received the reinvite from "rest of infra" on private interface
>> (10.1.15.126), I could see this log:
>>
>> Dec 16 12:55:27 am-frontal1a-test /usr/local/sbin/opensips[26160]:
>> ERROR:tm:msg_send: send() to 192.168.10.203:5060 for proto tcp/2 failed
>> Dec 16 12:55:27 am-frontal1a-test /usr/local/sbin/opensips[26160]:
>> ERROR:tm:t_forward_nonack: sending request failed
>> Dec 16 12:55:27 am-frontal1a-test /usr/local/sbin/opensips[26160]:
>> retcode = -6
>>
>> I don't know why OpenSIPS tries to send the Re-invite to client private
>> IP instead client public port and IP (natted).
>>
>> Do you have an idea please ?
>>
>> thanks
>>
>> Le jeu. 12 déc. 2019 à 11:09, Mickael Hubert <mickael at winlux.fr> a
>> écrit :
>>
>>> Hi all,
>>> I have an issue, opensips doesn't want forward Re-INVITE during UDP to
>>> TCP mapping session.
>>> Customer (NATTED) -- TCP --> (public interface listen tcp:8060) OpenSIPS
>>> (private interface listen udp:5060) --> rest of infrastructure (udp:5060)
>>>
>>> I can send a call from customer to OpenSIPS (initial INVITE, 200OK, etc
>>> ...).
>>> But when I received Re-INVITE from UAS (sip session timer), OpenSIPS
>>> doesn't forward it to customer.
>>>
>>> You can see the call flow here:
>>> https://photos.app.goo.gl/eUSb5MvBhUfueaoM7
>>> You can see SIP messages and opensips's logs in txt file in attachment
>>>
>>> OpenSIPS handles on it's public interface:
>>> - Topology hiding
>>> - Nat detection
>>>
>>> Thanks a lot for you help !
>>>
>>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> --
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> phone: +34669448337
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191216/8a548a2c/attachment.html>


More information about the Users mailing list