[OpenSIPS-Users] NAT, UPDATE problem

Miha miha at softnet.si
Fri Oct 17 10:44:02 CEST 2014


hi,

I have solved this by adding onreply route and it it I put 
fix_nated_contact();

Now contact in 200ok is fixed and media is ok.

tnx
miha

On 16/10/2014 15:53, Miha wrote:
> Hi,
>
> in my cfg file i have this:
>
>                 if (nat_uac_test("18")) {
>                         xlog("fixing nat");
>                         if (method=="REGISTER") {
>
>                                 fix_nated_register();
>                                 fix_nated_contact();
>                         } else {
>                                 fix_nated_contact();
>                         }
>                 force_rport();
>                 }
>
> But when 200ok with sdp is send this part of script does not execute 
> as in contact is still private ip. I have 18 in nat_uac_test so if src 
> port port in via are different this should be triggered but it is not 
> that is why proxy sends media to private ip.
>
> Here is my sip trace:
>
> http://pastebin.com/KvNdttj9
>
> Tnx
>
> miha
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list