[OpenSIPS-Users] uac_registrant, how to force registration port?
alipey at gmail.com
Thu Nov 7 21:56:07 CET 2013
This has nothing to do with opensips. This is your router that is picking a
random port when it does NAT.
How you can fix it: it all depends on what kind of router you have. Some
allow static NAT binding. The cheap routers don't have that flexibility.
Some routers, if you do a port forwarding from your public IP:port to
opensips, they use that binding for outgoing NAT as well - just another
thing to try.
It also depends on how many devices you have on your LAN side of the router
and if any other device is using that port.
Also, sometimes when you reboot the router, it gives you the same port as
opensips and will keep it as long as it's up.
So, just do some research on your router.
On Thu, Nov 7, 2013 at 2:48 PM, Max E. Reyes Vera J. <navaismo at gmail.com>wrote:
> I was testing the uac_registrant module to register opensips with my sip
> provider, but I have one issue, when the opensips is registered it use a
> random port, so when I go to my account details(on the sip provider web
> page) I can see the status as Registered with my Public_IP:RandomPort, i.e:
> 189.256.36.12:10623. I tried to use the forced_socket field but with no
> luck, every time it register with random port.
> My opensips is behind NAT
> opensips------>router---------->sip provider.
> Is there a way to force the port on registration just like asterisk does
> with the 5060 port?
> Thanks & best regards.
> PD: How can I reply future answers. I mean, I just click on the owner's
> thread email and that open my mail client with the RE:subject, but when I
> check the list my response appear like a new thread. :(
> Saludos Cordiales
> *dCAA*. Max E. Reyes Vera Juárez
> Desarrollo y Soporte Asterisk / Hardware
> navaismo at gmail.com
> mreyesvera at digital-merge.com
> (+52) 55 4170-3703 xt 5000
> Users mailing list
> Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users