Re: [OpenSIPS-Users] NAT handling for internally generated messages in local_route

2016-02-05 Thread Husnain Taseer
Dear Rodrigo,
The way you have configured NAT handling in your cfg worked for me
perfectly thank you for you to the point and wonderful assistance.

Regards,
Husnain Taseer
VoIP Developer

On Fri, Feb 5, 2016 at 10:23 PM,  wrote:

> Send Users mailing list submissions to
> users@lists.opensips.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-requ...@lists.opensips.org
>
> You can reach the person managing the list at
> users-ow...@lists.opensips.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
>1. Re: NAT handling for internally generated messages in
>   local_route (Rodrigo Pimenta Carvalho)
>2. Re: NAT handling for internally generated messages in
>   local_route (Rodrigo Pimenta Carvalho)
>3. How to fix contact info and RTP port in SDP? Is fix_nated_sdp
>   function enough? (Rodrigo Pimenta Carvalho)
>4. Re: How to fix contact info and RTP port in SDP? Is
>   fix_nated_sdp function enough? (Newlin, Ben)
>
>
> ------
>
> Message: 1
> Date: Fri, 5 Feb 2016 18:49:44 +0000
> From: Rodrigo Pimenta Carvalho 
> Subject: Re: [OpenSIPS-Users] NAT handling for internally generated
> messages in local_route
> To: OpenSIPS users mailling list 
> Message-ID:
> <
> by2pr02mb1655fac5b55c57297c9fe446b5...@by2pr02mb1655.namprd02.prod.outlook.com
> >
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> In my configuration I have something like this:
>
>
>  USeR LOCation module
> loadmodule "usrloc.so"
> modparam("usrloc", "nat_bflag", "NAT")
> modparam("usrloc", "db_mode",   1)
> modparam("usrloc", "db_url",
> "sqlite:///usr/local/opensips/db/sisc.sqlite") # CUSTOMIZE ME
>
>
>
>
> route{
>
>
> force_rport();
> if (nat_uac_test("23")) {
> if (is_method("REGISTER")) {
> fix_nated_register();
> setbflag(NAT);
> } else {
> fix_nated_contact();
> setflag(NAT);
> }
> }
>
>
>
> .
>
> .
>
> .
>
>
> onreply_route[handle_nat] {
> if (nat_uac_test("1"))
> fix_nated_contact();
> #if ( isflagset(NAT) )
> #rtpproxy_answer("ro");
> xlog("incoming reply\n");
> }
>
>
>
> Hopefully it can give you a direction to follow.
>
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL 979
>
>
> 
> De: users-boun...@lists.opensips.org 
> em nome de Husnain Taseer 
> Enviado: sexta-feira, 5 de fevereiro de 2016 15:06
> Para: users@lists.opensips.org
> Assunto: [OpenSIPS-Users] NAT handling for internally generated messages
> in local_route
>
> Dear Users,
> I am facing the same issue as discussed in the below thread few years ago.
>
> http://opensips.org/pipermail/users/2009-March/003648.html
>
> I am setting $DLG_timeout for every call so after this amount of seconds
> BYE is generated by TM module and sent to both caller and callee. But if
> callee or caller are behind NAT then the contact IP address (in their
> respective contact fields in dialog table) is private because of which
> opensips is sending BYE to their private addresses which is not reaching
> them and call don't disconnects. Is there any solution available to handle
> this issue.
>
> Regards,
> Husnain Taseer
> VoIP Developer
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opensips.org/pipermail/users/attachments/20160205/16a7b91f/attachment-0001.htm
> >
>
> --
>
> Message: 2
> Date: Fri, 5 Feb 2016 18:52:29 +
> From: Rodrigo Pimenta Carvalho 
> Subject: Re: [OpenSIPS-Users] NAT handling for internally generated
> messages in local_route
> To: OpenSIPS users mailling list 
> Message-ID:
> <
> by2pr02mb1655e1dad955e6c0aa7439f1b5...@by2pr02mb1655.namprd02.prod.outlook.com
> >
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I was right 

Re: [OpenSIPS-Users] NAT handling for internally generated messages in local_route

2016-02-05 Thread Rodrigo Pimenta Carvalho
I was right now reading about nat traversal.

I think it will be important for you too: 
http://www.opensips.org/html/docs/modules/2.2.x/nat_traversal.html

NAT Traversal Module - 
OpenSIPS
www.opensips.org
The nat_traversal module implements a very sophisticated keepalive mechanism, 
that is able to handle the most complex environments and use cases ...

If can help you keep the NAT mappings valid during calls, until SIP BYE is sent.


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Husnain Taseer 
Enviado: sexta-feira, 5 de fevereiro de 2016 15:06
Para: users@lists.opensips.org
Assunto: [OpenSIPS-Users] NAT handling for internally generated messages in 
local_route

Dear Users,
I am facing the same issue as discussed in the below thread few years ago.

http://opensips.org/pipermail/users/2009-March/003648.html

I am setting $DLG_timeout for every call so after this amount of seconds BYE is 
generated by TM module and sent to both caller and callee. But if callee or 
caller are behind NAT then the contact IP address (in their respective contact 
fields in dialog table) is private because of which opensips is sending BYE to 
their private addresses which is not reaching them and call don't disconnects. 
Is there any solution available to handle this issue.

Regards,
Husnain Taseer
VoIP Developer
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] NAT handling for internally generated messages in local_route

2016-02-05 Thread Rodrigo Pimenta Carvalho
In my configuration I have something like this:


 USeR LOCation module
loadmodule "usrloc.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "db_mode",   1)
modparam("usrloc", "db_url", "sqlite:///usr/local/opensips/db/sisc.sqlite") # 
CUSTOMIZE ME




route{


force_rport();
if (nat_uac_test("23")) {
if (is_method("REGISTER")) {
fix_nated_register();
setbflag(NAT);
} else {
fix_nated_contact();
setflag(NAT);
}
}



.

.

.


onreply_route[handle_nat] {
if (nat_uac_test("1"))
fix_nated_contact();
#if ( isflagset(NAT) )
#rtpproxy_answer("ro");
xlog("incoming reply\n");
}



Hopefully it can give you a direction to follow.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Husnain Taseer 
Enviado: sexta-feira, 5 de fevereiro de 2016 15:06
Para: users@lists.opensips.org
Assunto: [OpenSIPS-Users] NAT handling for internally generated messages in 
local_route

Dear Users,
I am facing the same issue as discussed in the below thread few years ago.

http://opensips.org/pipermail/users/2009-March/003648.html

I am setting $DLG_timeout for every call so after this amount of seconds BYE is 
generated by TM module and sent to both caller and callee. But if callee or 
caller are behind NAT then the contact IP address (in their respective contact 
fields in dialog table) is private because of which opensips is sending BYE to 
their private addresses which is not reaching them and call don't disconnects. 
Is there any solution available to handle this issue.

Regards,
Husnain Taseer
VoIP Developer
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] NAT handling for internally generated messages in local_route

2016-02-05 Thread Rodrigo Pimenta Carvalho
In my configuration I have something like this:


 USeR LOCation module
loadmodule "usrloc.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "db_mode",   1)
modparam("usrloc", "db_url", "sqlite:///usr/local/opensips/db/sisc.sqlite") # 
CUSTOMIZE ME




route{


force_rport();
if (nat_uac_test("23")) {
if (is_method("REGISTER")) {
fix_nated_register();
setbflag(NAT);
} else {
fix_nated_contact();
setflag(NAT);
}
}



.

.

.


onreply_route[handle_nat] {
if (nat_uac_test("1"))
fix_nated_contact();
#if ( isflagset(NAT) )
#rtpproxy_answer("ro");
xlog("incoming reply\n");
}



Hopefully it can give you a direction to follow.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Husnain Taseer 
Enviado: sexta-feira, 5 de fevereiro de 2016 15:06
Para: users@lists.opensips.org
Assunto: [OpenSIPS-Users] NAT handling for internally generated messages in 
local_route

Dear Users,
I am facing the same issue as discussed in the below thread few years ago.

http://opensips.org/pipermail/users/2009-March/003648.html

I am setting $DLG_timeout for every call so after this amount of seconds BYE is 
generated by TM module and sent to both caller and callee. But if callee or 
caller are behind NAT then the contact IP address (in their respective contact 
fields in dialog table) is private because of which opensips is sending BYE to 
their private addresses which is not reaching them and call don't disconnects. 
Is there any solution available to handle this issue.

Regards,
Husnain Taseer
VoIP Developer
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] NAT handling for internally generated messages in local_route

2016-02-05 Thread Rodrigo Pimenta Carvalho
Hi Husnain Taseer.


I have solved this problem in my opensips configuration file.

Would you like to see  my opensips.cfg file? if yes, provide me your private 
e-mail, please.

I my configuration file, see what I have done with fix_nated_contact();


Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Husnain Taseer 
Enviado: sexta-feira, 5 de fevereiro de 2016 15:06
Para: users@lists.opensips.org
Assunto: [OpenSIPS-Users] NAT handling for internally generated messages in 
local_route

Dear Users,
I am facing the same issue as discussed in the below thread few years ago.

http://opensips.org/pipermail/users/2009-March/003648.html

I am setting $DLG_timeout for every call so after this amount of seconds BYE is 
generated by TM module and sent to both caller and callee. But if callee or 
caller are behind NAT then the contact IP address (in their respective contact 
fields in dialog table) is private because of which opensips is sending BYE to 
their private addresses which is not reaching them and call don't disconnects. 
Is there any solution available to handle this issue.

Regards,
Husnain Taseer
VoIP Developer
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users