Re: [OpenSIPS-Users] OpenSIPS is behind a NAT, not the UAC. What to do?

2016-07-27 Thread Rodrigo Pimenta Carvalho
Sorry. The rest of message:


1 - check the IP from SDP.

2 - If such IP is equal to the IP of the gateway, then:

we will fix the current IP, changing it to the OpenSIPS public IP.


Hopefully, it is easy to read such IP from SDP, using some function of OpenSIPS.


Could you comment about this decision, please?


Thank you very much!



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



De: Rodrigo Pimenta Carvalho
Enviado: quarta-feira, 27 de julho de 2016 14:04
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] OpenSIPS is behind a NAT, not the UAC. What to do?


Hi.


It sounds good for who is using rtpproxy. In our case we are using direct media 
without rtpproxy.


As long as our OpenSIPS will be behind a NAT and such NAT is a gateway, we have 
decided to do the following:






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



De: users-boun...@lists.opensips.org  em nome 
de Johan De Clercq 
Enviado: quarta-feira, 27 de julho de 2016 11:57
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] OpenSIPS is behind a NAT, not the UAC. What to do?

in the startup route, you should find  your pub ip using curl.
Put that in a var and then use that var in rtpproxy.

2016-07-27 15:07 GMT+02:00 Rodrigo Pimenta Carvalho 
mailto:pime...@inatel.br>>:

Dear OpenSIPS-users.



The function nat_uac_test() (from module NATHELPER) works very well and tells 
me whether a cliente to my OpenSIPS is behind a NAT.


But, for my specific network topology, is my OpenSIPS that is behind a NAT, 
from the client perspective. In this case I have to fix the SDP content that 
goes from OpenSIPS to the client, so that the client will be able to send its 
media to a public IP, when communicating to a peer in the same network domain 
of this SIP server.


How can I be sure that for a client perspective the OpenSIPS is behind a NAT? 
In another words, is there a way to the OpenSIPS determine if its client is in 
the same network or in a remote network?


--


P.S. I suspect that OpenSIPS should be used in a node with public IP to 
simplify our solution. But our customer asked us to put OpenSIPS in a 
residential device that will be always behind a NAT for some smartphones 
perspective and not behind a NAT for another home devices perspective.


---


Any hint will be very helpful!


Best regards.



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

___
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS is behind a NAT, not the UAC. What to do?

2016-07-27 Thread Rodrigo Pimenta Carvalho
Hi.


It sounds good for who is using rtpproxy. In our case we are using direct media 
without rtpproxy.


As long as our OpenSIPS will be behind a NAT and such NAT is a gateway, we have 
decided to do the following:






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



De: users-boun...@lists.opensips.org  em nome 
de Johan De Clercq 
Enviado: quarta-feira, 27 de julho de 2016 11:57
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] OpenSIPS is behind a NAT, not the UAC. What to do?

in the startup route, you should find  your pub ip using curl.
Put that in a var and then use that var in rtpproxy.

2016-07-27 15:07 GMT+02:00 Rodrigo Pimenta Carvalho 
mailto:pime...@inatel.br>>:

Dear OpenSIPS-users.



The function nat_uac_test() (from module NATHELPER) works very well and tells 
me whether a cliente to my OpenSIPS is behind a NAT.


But, for my specific network topology, is my OpenSIPS that is behind a NAT, 
from the client perspective. In this case I have to fix the SDP content that 
goes from OpenSIPS to the client, so that the client will be able to send its 
media to a public IP, when communicating to a peer in the same network domain 
of this SIP server.


How can I be sure that for a client perspective the OpenSIPS is behind a NAT? 
In another words, is there a way to the OpenSIPS determine if its client is in 
the same network or in a remote network?


--


P.S. I suspect that OpenSIPS should be used in a node with public IP to 
simplify our solution. But our customer asked us to put OpenSIPS in a 
residential device that will be always behind a NAT for some smartphones 
perspective and not behind a NAT for another home devices perspective.


---


Any hint will be very helpful!


Best regards.



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

___
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS is behind a NAT, not the UAC. What to do?

2016-07-27 Thread Johan De Clercq
in the startup route, you should find  your pub ip using curl.
Put that in a var and then use that var in rtpproxy.

2016-07-27 15:07 GMT+02:00 Rodrigo Pimenta Carvalho :

> Dear OpenSIPS-users.
>
>
>
> The function nat_uac_test() (from module NATHELPER) works very well and
> tells me whether a cliente to my OpenSIPS is behind a NAT.
>
>
> But, for my specific network topology, is my OpenSIPS that is behind a
> NAT, from the client perspective. In this case I have to fix the SDP
> content that goes from OpenSIPS to the client, so that the client will be
> able to send its media to a public IP, when communicating to a peer in the
> same network domain of this SIP server.
>
>
> How can I be sure that for a client perspective the OpenSIPS is behind a
> NAT? In another words, is there a way to the OpenSIPS determine if its
> client is in the same network or in a remote network?
>
>
> --
>
>
> P.S. I suspect that OpenSIPS should be used in a node with public IP to
> simplify our solution. But our customer asked us to put OpenSIPS in a
> residential device that will be always behind a NAT for some smartphones
> perspective and not behind a NAT for another home devices perspective.
>
>
>
> ---
>
>
> Any hint will be very helpful!
>
>
> Best regards.
>
>
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL 979
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] OpenSIPS is behind a NAT, not the UAC. What to do?

2016-07-27 Thread Rodrigo Pimenta Carvalho
Dear OpenSIPS-users.



The function nat_uac_test() (from module NATHELPER) works very well and tells 
me whether a cliente to my OpenSIPS is behind a NAT.


But, for my specific network topology, is my OpenSIPS that is behind a NAT, 
from the client perspective. In this case I have to fix the SDP content that 
goes from OpenSIPS to the client, so that the client will be able to send its 
media to a public IP, when communicating to a peer in the same network domain 
of this SIP server.


How can I be sure that for a client perspective the OpenSIPS is behind a NAT? 
In another words, is there a way to the OpenSIPS determine if its client is in 
the same network or in a remote network?


--


P.S. I suspect that OpenSIPS should be used in a node with public IP to 
simplify our solution. But our customer asked us to put OpenSIPS in a 
residential device that will be always behind a NAT for some smartphones 
perspective and not behind a NAT for another home devices perspective.


---


Any hint will be very helpful!


Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users