[OpenSIPS-Users] Is NATHELPER module enough in my case? Help please.

chiu ching cheng ccchiou049 at gmail.com
Fri Jan 8 10:56:45 CET 2016


I think you should enable stun function in mobile phone 2 , then it can
sent public ip in contact header . Then I think nathelper module with sip
proxy module would caused nat signaling problem be solved , but you should
add media proxy function to solve media problem in nated circumstance.



On Wed, Jan 6, 2016 at 8:02 PM, Rodrigo Pimenta Carvalho <pimenta at inatel.br>
wrote:

> Dear OpenSIPS-users,
>
>
> First of all, happy new year.
>
> I'm still reading about NATs, SIP proxies and SIP, to understand how to
> solve a question in my project. I'm not expert in TCP, IP, routers, NATs
> and networks. That is why I would like to get some help here.  I guess I'm
> almost getting the point to solve it.
>
>
> In my current network topology case I have:
>
>
>
>
> Mobile Phone 1 on Internet
>
>
> / \                 |
>
>
> |                  |
>
>
> |      SIP     |
>
>
> |                  \/                 Real IP  (Internet)
>
>
> NAT  ------------------------------------------------
>
> /\                 |                  'Nated' IP (Wan)
>
>
> |                  |
>
>
> |     SIP       |
>
>
> |                  |
>
>
> |                  |
>
>
> |                  \/
>
>
> ROUTER   ------------------------------------------------
>
>
> /\                 |                  (Lan)
>
>
> |       SIP     |
>
>
> |                  |
>
>
> SIP Proxy OPENSIPS
>
>
> |                  |
>
>
> |       SIP    |
>
>
> |                  |
>
>
> Mobile Phone 2 on local network
>
>
>
> When Phone 2 calls Phone 1, everything is ok. Phone 1 is registered on
> OpenSIPS with 'Nated' IP, by someway. So, Phone 2 sends INVITE to such IP.
> When Phone 1 answers with SIP OK, the Contact header filed has the same
> 'Nated' IP. Then, Phone 2 can send the ACK to the correct path.
>
>
> However, when Phone 1 calls Phone 2 and Phone 2 answer with SIP OK, Phone
> 1 can't send the ACK, because  the Contact header field from SIP OK has the
> local IP for Phone 2.
>
> It is true because when Phone 2 registers itself on OpenSIPS, the local IP
> is recorded in the local database table.
>
>
> So I have the following questions:
>
>
> 1 - Can this problem be solved without using the Nat Traversal Module?
>
>
> 2 - Can NATHELPER module fix the Contact header field (as a I saw this
> module has functions related with it), when Phone 2 sends SIP OK to Phone
> 1?  If yes, how can such module determine a 'good' IP to put in this header
> field?
>
>
> 3 - If Phone 2 uses a stun server, will such phone be registered on
> OpenSIP with a real IP, won't be? Could it be a solution too?
>
>
> Any hint will be very helpful!
>
>
> Thanks a lot!
>
>
>
>
>
>
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL 979
>
> _______________________________________________
> 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/20160108/835627d1/attachment-0001.htm>


More information about the Users mailing list