ast_sockaddr_resolve:getaddrinfo():名称或服务未知

时间:2017-02-06 09:29:45

标签: webrtc asterisk sip pbx sipml

我收到了这个错误:

ast_sockaddr_resolve: 
Getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known

在Asterisk PBX中。

所有使用星号的注册过程均已成功完成。之后当我点击我的应用程序的呼叫按钮时,它显示上述错误。

以下是我的日志:

  -- 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 `('

2 个答案:

答案 0 :(得分:3)

这意味着您错误地设置了服务器。

服务器应具有正确的可解析dns名称,或者在/ etc / hosts中记录,并将您的名称指向ip。

答案 1 :(得分:0)

问题是由最终用户发送格式错误的sip数据包引起的。