IAX2 Netsock Error With Name Resolution

Home » Asterisk Users » IAX2 Netsock Error With Name Resolution
Asterisk Users 2 Comments

Am getting netsock error like this when using IAX2,

Connected to Asterisk 11.2.1 currently running on indiaprimaryast01 (pid 4270)
== Using SIP RTP CoS mark 5
— Executing [2001@Test:1] Dial(“SIP/4090-00000005”,
“SIP/2001@IAX2/IND-MAN,30”)
in new stack
[Jun 23 06:31:36] NOTICE[4383][C-00000005]: chan_sip.c:29491
sip_request_call: Conflicting extension values given. Using ‘2001’ and not
‘IND-MAN’
== Using SIP RTP CoS mark 5
[Jun 23 06:31:36] ERROR[4383][C-00000005]: netsock2.c:269
ast_sockaddr_resolve: getaddrinfo(“IAX2”, “(null)”, …): Temporary failure in name resolution
[Jun 23 06:31:36] WARNING[4383][C-00000005]: chan_sip.c:6191 create_addr:
No such host: IAX2
[Jun 23 06:31:36] WARNING[4383][C-00000005]: app_dial.c:2437
dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 –
Subscriber absent)
== Everyone is busy/congested at this time (1:0/0/1)

My hostname are proper, in /etc/hostname and /etc/sysconfig/network

Even then am not able to find why am getting this error. Also am able to ping with my own hostname.

Regards,

2 thoughts on - IAX2 Netsock Error With Name Resolution


  • “SIP/2001@IAX2/IND-MAN,30”) in new stack sip_request_call: Conflicting extension values given. Using ‘2001’ and not
    ‘IND-MAN’
    ast_sockaddr_resolve: getaddrinfo(“IAX2”, “(null)”, …): Temporary failure in name resolution No such host: IAX2
    dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 –
    Subscriber absent)

    Try this syntax Dial(IAX2/IND-MAN/2001,30)
    Where IND-MAN is the name of a peer/friend [IND-MAN] defined in iax.conf and 2001 is the extension on the remote system ‘IND-MAN’ where 2001 dials SIP/2001

    Alec Davis

  • After changing my dialplan as suggested, there is no socket error, but getting Busy/Congested, and the call is hanging up, let me check that part…

    Earlier my dialplan was,
    ;exten => _2XXX,1,Dial(SIP/${EXTEN}@${MANIAX},30)

    and I changed like this exten => _2XXX,1,Dial(${MANIAX}/${EXTEN},30)

    whether the SIP matters?

    And now since its a SIP extension in other side, am getting failed because the extension is not able to find.

    Regards.