[asterisk-users] Update peer IP address
Daniel Heckl
daniel.heckl at gmail.com
Mon Mar 30 11:31:46 CDT 2015
Hello
I use Asterisk 11 with FreePBX 12. Our SIP Provider is Telekom Germany. We have sometimes problems with incoming and outgoing calls. I hope I can explain it understandable.
For example, Asterisk sends a REGISTER to 217.0.23.68 (tel.t-online.de <http://tel.t-online.de/>), the message is answered with OK and the peer is registered.
Usually INVITES comes now from this ip address. All works fine. But sometimes INVITES comes from an other IP address, for example 217.0.23.100. This request Asterisk responds with 401 Unauthorized.
In the next register procedure REGISTER are sent to the new ip address and answered also with OK. But qualify OPTIONS are continue be sent to the old ip address. Incoming and outgoing calls are canceled. Outgoing calls are answered with Forbidden.
Even if the REGISTER procedure works with the new ip address, the peers are connected with the old address.
Waiting doesn’t help, only a „sip reload“ update the ip address of the peer.
What is the solution for this problem? How can asterisk update the peer?
The Asterisk is local behind a NAT with a firewall, following settings are used:
externhost with DynDNS
stun with stun.t-online.de <http://stun.t-online.de/>
nat=yes
srvlookup=yes
allowguest=no
trustrpid=no
insecure=invite
qualify=yes
Thank you!
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150330/9cb4cb90/attachment.html>
More information about the asterisk-users
mailing list