当我尝试使用sipml5注册扩展名时,在CLI中会看到以下内容。
请注意,我的星号和sipml5在同一服务器上。

[Jan  3 16:48:43] ERROR[10158]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known
[Jan  3 16:48:43] WARNING[10158]: chan_sip.c:15894 __set_address_from_contact: Invalid host name in Contact: (can't resolve in DNS) : 'df7jal23ls0d.invalid'
[Jan  3 16:48:43] ERROR[10158]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known
[Jan  3 16:48:43] WARNING[10158]: chan_sip.c:15894 __set_address_from_contact: Invalid host name in Contact: (can't resolve in DNS) : 'df7jal23ls0d.invalid'
[Jan  3 16:48:43] ERROR[10158]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("df7jal23ls0d.invalid", "(null)", ...): Name or service not known
[Jan  3 16:48:43] WARNING[10158]: chan_sip.c:15894 __set_address_from_contact: Invalid host name in Contact: (can't resolve in DNS) : 'df7jal23ls0d.invalid'
    -- Registered SIP '1500' at 37.76.211.51:55603
       > Saved useragent "IM-client/OMA1.0 sipML5-v1.2013.08.10B" for peer 1500

最佳答案

我在尝试使用SipML5时遇到了相同的错误。正如@mirkobrankovic所说,但呼叫流不受该DNS解析的影响,在Asterisk 11.7 / Asterisk 11.6中。但是,要消除该错误,您要做的就是在/etc/hosts文件中添加星号服务器的正确主机名,并在登录时在SipML5界面中确保输入Display NamePrivate Identity具有相同的值-您在sip.conf中声明的帐户名称。这将消除错误。例如,如果您在sip.conf中为sip用户提供以下条目:

[one_siptest2.com]
secret=1234
context=siptest2.com
host=dynamic


在SipML5界面的Display namePrivate Identity中添加“ one_siptest2.com”。

如果使用的是实时数据库,则可以从以下简单查询中获取要输入的名称:

select name from sipusers where context = 'whatever_context_name';


并在上述2个字段中输入所需的名称。

图片示例:

关于asterisk - Asterisk 11 Sipml5,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20908753/

10-12 05:01