今天我的星号暂时无法接听电话。当我检查星号日志时,在此期间出现以下错误。
Purely numeric hostname (1002), and not a peer--rejecting!
在我重新启动星号后,问题解决了。问题是什么?
今天我的星号暂时无法接听电话。当我检查星号日志时,在此期间出现以下错误。
Purely numeric hostname (1002), and not a peer--rejecting!
在我重新启动星号后,问题解决了。问题是什么?
很可能这意味着您的 dns 服务器无法正常工作。使用本地 dns 缓存服务器或多于一个 dns 服务器。
其他可能的情况——你调用像 SIP/1234 这样的东西,它不在你的 sip.conf 中。
这是相关的源代码部分,它有描述:
peer = sip_find_peer(peername, NULL, TRUE, FINDPEERS, FALSE, 0);
if (peer) { int res; if (newdialog) { set_socket_transport(&dialog->socket, 0); } res = create_addr_from_peer(dialog, peer); dialog->relatedpeer = sip_ref_peer(peer, "create_addr: setting dialog's relatedpeer pointer"); sip_unref_peer(peer, "create_addr: unref peer from sip_find_peer hashtab lookup"); return res; } else if (ast_check_digits(peername)) { /* Although an IPv4 hostname *could* be represented as a 32-bit integer, it is uncommon and * it makes dialing SIP/${EXTEN} for a peer that isn't defined resolve to an IP that is * almost certainly not intended. It is much better to just reject purely numeric hostnames */ ast_log(LOG_WARNING, "Purely numeric hostname (%s), and not a peer--rejecting!\n", peername); return -1; } else {