Error in iax host error on dial

Hi,

while connecting 2 asterikses in iax (user and peer) we found that Mobydick has a bad interpretation of the datas: it try to call the host using the defaultuser, not the hostname. In the iax.conf file everything is OK.

Message we receive when allUsers is setted as username:

-- Executing [800@sub_failover-outgoing-7:17] Dial("SIP/Ab2tBzpnPL4jPLw-00000026", "IAX2/allUsers/800") in new stack

[Apr 19 22:52:24] ERROR[29581][C-0000001a]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo(“allUsers”, “(null)”, …): Name or service not known
[Apr 19 22:52:24] WARNING[29581][C-0000001a]: acl.c:833 resolve_first: Unable to lookup ‘allUsers’
[Apr 19 22:52:24] WARNING[29581][C-0000001a]: chan_iax2.c:4727 create_addr: No such host: allUsers
[Apr 19 22:52:24] WARNING[29581][C-0000001a]: app_dial.c:2437 dial_exec_full: Unable to create channel of type ‘IAX2’ (cause 20 - Subscriber absent)

iax.conf

; generated by mod_trunk

[mdc_trunk_conf-3]
; Labo iax - peer
type=peer
context=mdc_incoming-3
defaultuser=allUsers
secret=
host=zone-s
progressinband=yes
allow=all
videosupport=yes
qualify=yes
encryption=aes-128
auth=md5 username=zwr-Mobydick

Same behavior happend with type=user.

Daniel

Hi,

thanks for your report.
you can override the “host” entry by using the field Accounts-Options and add it manually “host=XYZ”

Greetings
Markus

No need to override, putting the host name in username does the job. Still a bug for us (in GUI & call module).

Daniel