Asterisk 1.8 and Dial(SIP/peer_name) to undefined peer

Home » Asterisk Users » Asterisk 1.8 and Dial(SIP/peer_name) to undefined peer
Asterisk Users No Comments

Hi,

In Asterisk 1.8.0 dialplan command Dial(SIP/peer_name) produces errors
if no such peer_name defined instead of just saying “peer not found”:

[Nov 19 20:01:23] ERROR[7827]: netsock2.c:245 ast_sockaddr_resolve:
getaddrinfo(“sdf”, “(null)”, …): Name or service not known
[Nov 19 20:01:23] WARNING[7827]: chan_sip.c:5041 create_addr: No such
host: sdf
[Nov 19 20:01:23] NOTICE[7827]: channel.c:5106 __ast_request_and_dial:
Unable to request channel SIP/sdf

I didn’t find any bug report regarding this issue. Is there any setting
in sip.conf to disable host resolving in case of undefined peer name?