Did You try to specify extension i context ?
Dial(IAX2/myiax2peer/${EXTEN}@thecontextimtryingtodial/extension)
fragment from:
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Dial
"
[iaxhost1-out]
exten => 99205,1,Dial(IAX2/value3:value4@value1/99105)
; A more complicated extension example:
exten => 982XX,1,Dial(IAX2/value3:value4@value1/991${EXTEN:3})
"
> Hello
>
> I am trying to use this command to dial an IAX2 channel, with a supplied
context, etc:
>
> Dial(IAX2/myiax2peer/${EXTEN}@thecontextimtryingtodial)
>
> This fails, with an authentication failed message while:
> Dial(IAX2/myiax2peer/${EXTEN}) succeeds with out a hitch.
>
> Why is this???
>
> Regards
> Jon
>