I have an asterisk server running fine and sip phones connecting fine. Recently we have purchased a domain name from godaddy and configured it to point to our server. I did following things.
Configured A record with domain name pointing to our server IP.
Created srv service with _sip using protocol _udp and port 5060 pointing to our domain name.
I can register sip phone via IP but still can not register via domain name. Please guide if I am doing anything wrong or missing anything. Image of my settings is attached.
When you configure an SRV record, you can test it with the following Linux command: # dig SRV _sip._udp.shifteight.org The result will contain several components, but the section you are interested in is:
*;; ANSWER SECTION: _sip._udp.shifteight.org. 14210 IN SRV 0 0 5060 pbx.shifteight.org.
Attached is my updated srv record on godaddy…
Please note that although i write full domain name but godaddy automatically changes it to @ here _sip._tcp.@
Then there is nothing to explain why it would not work. Does it resolve from your computer? The dig works fine? If so then your DNS appears to be set up fine.
Yes dig works fine as I pasted the answer section of dig in above reply. Also dialtone.mydomain.com is also pingable and also can ssh it.
What else could be wrong? I have already turned off firewall for testing and tried setting domain=mydomain.om in sip_general_additional.conf