title: ast_sockaddr_resolve: getaddrinfo(): Name or service not known
body: <p>I have got this error:</p>
  
  <pre><code>ast_sockaddr_resolve: 
  Getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known
  </code></pre>
  
  <p>In Asterisk PBX. </p>
  
  <p>All registration process with asterisk is successfully done. After that when I hit the call button of my application it shows the above error.</p>
  
  <p>Here are my logs:</p>
  
  <pre><code>  -- 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&gt;  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 `('
  </code></pre>