错误[12799] netsock2.c: getaddrinfo( "ims.ntc.net.np" , "(null)" , ...): 名称或服务未知, 如何解决此问题?



我正在尝试配置NTC SIP线路中继配置,但";错误[12799]netsock2.c:getaddrinfo("ims.ntc.np","(null(",…(:名称或服务未知";出现错误。电信说我们的sip请求没有到达那里,我该如何解决这个问题?

[2020-07-24 07:59:05] ERROR[12799] netsock2.c: getaddrinfo("ims.ntc.net.np", "(null)", ...): Name or service not known
[2020-07-24 07:59:05] WARNING[12799] acl.c: Unable to lookup 'ims.ntc.net.np'
[2020-07-24 07:59:05] WARNING[12799] acl.c: Cannot connect to (null): Invalid argument
[2020-07-24 07:59:05] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:05] NOTICE[12799] chan_sip.c: -- Registration for '+97723597002@ims.ntc.net.np' timed out, trying again (Attempt #14)
[2020-07-24 07:59:05] WARNING[12799] chan_sip.c: Retransmission timeout reached on transmission 63c184f060c6ddd85c43e1b75b3aec3f@127.0.0.1 for seqno 114 (Critical Request) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 60031ms with no response
[2020-07-24 07:59:06] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:07] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:09] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:13] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:17] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:21] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:25] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 08:00:05] ERROR[12799] netsock2.c: getaddrinfo("ims.ntc.net.np", "(null)", ...): Name or service not known

这是一个DNS Looukup错误。

如果您在任何中继配置中使用此DNS,这就是问题的根源,请直接使用和IP进行映射,这样您就不会再有错误了。

但如果主干使用IP,我建议您映射此域。提供者可以在请求中使用内部域,这样可以消除错误。

还要检查是否没有防火墙阻止通信。

您正在某处使用中继主机名"ims.ntc.np";并且该dns名称无效。

检查名称或确保dns正常工作。

最新更新