Dial Plan Setup - VICIbox server 3.1.8

Hi,
I'm having some issues setting up the dial plan entry. I have read through the forums and the mangers manual but don't seem to be able to make it work.
I found a dialplan from a person in Australia but I cannot make that one work either.
I installed VICIbox server 3.1.8 ISO and I'm using VOIP - IAX2. I have setup a softphone and I can make calls outbound from the softphone, but cannot get the calls to go to the softphone (extn 200) from the Agent screen (with leads loaded from the hopper - manual dial). It rings as if there is a dial tone, but does not make the outbound call. Then is hangs up.
I think the issue is with the dialplan - I have loaded my test leads with '64' country code and then the number '523-XXXX' (where the x's are real numbers). My dial plan which allows outbound calls from the softphone is: (9 is the prefix for the campaign)
exten => _X.,1,Dial(IAX2/028896XXXX/${EXTEN})
exten => _X.,2,Hangup
I have also been working on this: (this one is similar to the Australian dial plan)
exten => _9XXXXXXXXXX,1,Dial(IAX2/02889XXXX/${EXTEN:2},60,tTor)
exten => _9XXXXXXXXXX,2,Hangup
I think it could be the 64 country code messing it up? If I try to ring a number from the softphone with the country code it does not work, it will however work with the area code (eg. '09') ... the number format looks like this:
09 523 XXXX
The full country code would look like this:
+64 9 523 XXXX
I have loaded my leads like this:
523 XXXX
=======================
Any help is much appreciated - I'm new to Asterisk
Thanks
I'm having some issues setting up the dial plan entry. I have read through the forums and the mangers manual but don't seem to be able to make it work.
I found a dialplan from a person in Australia but I cannot make that one work either.
I installed VICIbox server 3.1.8 ISO and I'm using VOIP - IAX2. I have setup a softphone and I can make calls outbound from the softphone, but cannot get the calls to go to the softphone (extn 200) from the Agent screen (with leads loaded from the hopper - manual dial). It rings as if there is a dial tone, but does not make the outbound call. Then is hangs up.
I think the issue is with the dialplan - I have loaded my test leads with '64' country code and then the number '523-XXXX' (where the x's are real numbers). My dial plan which allows outbound calls from the softphone is: (9 is the prefix for the campaign)
exten => _X.,1,Dial(IAX2/028896XXXX/${EXTEN})
exten => _X.,2,Hangup
I have also been working on this: (this one is similar to the Australian dial plan)
exten => _9XXXXXXXXXX,1,Dial(IAX2/02889XXXX/${EXTEN:2},60,tTor)
exten => _9XXXXXXXXXX,2,Hangup
I think it could be the 64 country code messing it up? If I try to ring a number from the softphone with the country code it does not work, it will however work with the area code (eg. '09') ... the number format looks like this:
09 523 XXXX
The full country code would look like this:
+64 9 523 XXXX
I have loaded my leads like this:
523 XXXX
=======================
Any help is much appreciated - I'm new to Asterisk
Thanks