Hi, i decide run asterisk read manul and create sip.conf file [code][root@centos ~]# cat /etc/asterisk/sip.conf
[general]
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
[1000]
type=friend
context=phones
host=192.168.0.25
[/code]
but asterisk give me mistake:
centos*CLI> sip reload
Reloading SIP
== Parsing '/etc/asterisk/sip.conf': Found
== Parsing '/etc/asterisk/users.conf': Found
[Jun 16 15:09:27] ERROR[1183]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("centos", "(null)", ...): Name or service not known
[Jun 16 15:09:27] WARNING[1183]: acl.c:833 resolve_first: Unable to lookup 'centos'
== Using SIP CoS mark 4
== Parsing '/etc/asterisk/sip_notify.conf': Found
There is nothing in the file that would explain the error. Where is “centos” used. My guess is that you have a host name with no corresponding IP address.
[root@centos ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=centos
GATEWAY=192.168.0.2
here is ping
[root@centos ~]# ping centos
PING centos.euroterminal.local (192.168.0.115) 56(84) bytes of data.
64 bytes from centos.euroterminal.local (192.168.0.115): icmp_seq=1 ttl=64 time=0.026 ms
64 bytes from centos.euroterminal.local (192.168.0.115): icmp_seq=2 ttl=64 time=0.019 ms
I decided what problem, but now then i reload asterisk core reload
i received[Jun 16 16:55:11] WARNING[1182]: pbx_dundi.c:4835 set_config: Unable to look up host 'a-'
The problem decides, how to close topic?