I'm having a similar problem with getting my trunk working properly. I'm using the settings from the providers support page, wwwdotmyteldotnetdotau/support_asteriskdotphp (sorry, i'm too new to post urls, the iax settings are at the bootom of that page). I put the parts that need to go in iax.conf in Account Entry field except for the registration string which I put in registration string. I gave it a carrier ID of testtrunk, which is my username. I selected IAX2 protocol and put the dialplan from the same help page in. My username and password was substituted in.
My CLI output when I make a call is...
-- Executing Dial("SIP/cc100-b785de78", "IAX2/testtrunk/1300360089") in new stack
Aug 7 12:35:01 WARNING[24726]: chan_iax2.c:2993 create_addr: No such host: testtrunk
Aug 7 12:35:01 NOTICE[24726]: app_dial.c:1076 dial_exec_full: Unable to create channel of type 'IAX2' (cause 3 - No route to destination)
== Everyone is busy/congested at this time (1:0/0/1)
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
-- Executing DeadAGI("SIP/cc100-b785de78", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----3-----CHANUNAVAIL----------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
I'm thinking there is an issue with my dialplan relating to my trunk extension but I'm not knowledgeable enough to fix it. Can you please make any suggestions?