I have got this error:
ast_sockaddr_resolve:
Getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known
In Asterisk PBX.
All registration process with asterisk is successfully done. After that when I hit the call button of my application it shows the above error.
Here are my logs:
-- Executing [7008@default:1] Dial("SIP/7005-00000006", "SIP/7008,,H") in new stack
== Using SIP RTP CoS mark 5
[Feb 6 19:43:51] ERROR[5802][C-00000005]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known
[Feb 6 19:43:51] WARNING[5802][C-00000005]: chan_sip.c:16609 __set_address_from _contact: Invalid host name in Contact: (can't resolve in DNS) : 'df7jal23ls0d.invalid'
-- Called SIP/7008
-- SIP/7008-00000007 is ringing
-- Got SIP response 603 "Failed to get local SDP" back from 192.168.0.26:566 17
-- SIP/7008-00000007 is busy
== Everyone is busy/congested at this time (1:1/0/0)
-- Auto fallthrough, channel 'SIP/7005-00000006' status is 'BUSY'
[Feb 6 19:43:54] WARNING[5800][C-00000005]: chan_sip.c:24848 handle_response: R emote host can't match request ACK to call '07791e5d190b43915aca104937588c4e@192 .168.0.17:5060'. Giving up.
suhani-pbx*CLI> netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known
No such command ' netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known' (type 'core show help netsock2.c:305 ast_sockaddr_resolve:' for other possible commands)
[root@suhani-pbx ~]# netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known
-bash: syntax error near unexpected token `('
[root@suhani-pbx ~]# netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known
-bash: syntax error near unexpected token `('
[root@suhani-pbx ~]# netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known
-bash: syntax error near unexpected token `('
That mean you incorrectly setuped your server.
Server should have correct resolvable dns name OR have be record in /etc/hosts pointing your name to ip.