I am pretty sure the problem is in the “CONTACT” line, as it refers to my internal IP.
The router is forwarding 5060 and 5061 to this machine and I have setup the external host name. I would expect that name to be in the contact line instead of the internal IP.
Any hints ?
Thank you very much.
PS: I had to replace @ by _ and remove pointy brackets otherwise the board wouldn’t allow me to post
Change your settings in the “Asterisk SIP Settings” module. Select the static IP and try to auto configure it. If it fails, set it manually and apply the settings.
As my IP is dynamic, I would definitely need to use a domain name instead of an IP, or I would have to manually come to SIP Settings and change it, no ?
Every time that your public ip is changing, you must change the nat settings in your sip configuration. If you will not change it, you will have problems with calls.
I am not implying, I am telling you that it is not working properly, but not because of the Asterisk, it is because of the SIP protocol.
Anyway, if you are using a dynamic public ip (that changes all the time) you will need to install a client that will update your ip in dynamic services (dyndns, no-ip etc.) if you want to use a domain instead an ip.
When you write host=dynamic it means that the end device should register to you (the server). As you are the client and not the server (in cse of sip providers), you need to send the registration request (the sip register command).
As for the dynamic ip (the public ip of the server) in a NAT environment, you should always update your external ip in the sip nat settings if it changes in order to avoid one way audio problems.