Ok Chiu Ching.

I also thought about to use a stun server, but I wasn't sure about it.

Now I'm sure that a stun server will help me and can be a solution.


Thank you very much!


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


________________________________
De: [email protected] <[email protected]> em nome 
de chiu ching cheng <[email protected]>
Enviado: sexta-feira, 8 de janeiro de 2016 07:56
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] Is NATHELPER module enough in my case? Help 
please.

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 
<[email protected]<mailto:[email protected]>> 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<tel:%2B55%2035%203471%209200> RAMAL 979

_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to