Kristopher Lalletti
2004-Jun-07 17:27 UTC
[Asterisk-Users] SIP registration issues - Ugly workaround
Hello everyone, I'm currently attempting to get Asterisk properly registering through a NAT proxy. Here's the twist, the provider does not permit direct SIP messages to the sip registry, instead they want registration to be done by their nat traversal proxy, and when you send-out the registration messages to the nat traversal, they must be sent as if they were originally sent directly to the sip proxy. To make a story short, I had to override the resolution of the SIP proxy hostname from my /etc/hosts to point to the nat traversal, and finally, after 4 weeks, I got asterisk to register. My registration line in /etc/asterisk/sip.conf looks like this: register => userid:password:userid@sip.provider.com:5065/401 where userid is a numerical 8 digit value. Is there a more elegant method on accomplishing this? Thanks Kris