5

我有这个错误:

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

在星号 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 `('
4

2 回答 2

3

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

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

于 2017-02-06T09:34:35.000 回答
0

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

于 2020-07-09T12:13:30.643 回答