Hello everybody,
I have the following .conf files in a PBX <- Asterisk -> ISDN PSTN configuration, but, despite what is stated in the whole of manuals and forums available over the net and my best efforts, and can’t get this dialplan to work as expected:
I was hoping to have all the dialed numbers starting with “22” to be routed to a regular ISDN landline and the international ones to be routed trough a VoipBuster (or other ITSP provider) account.
As you can see, apparently all my matchings should be slick, however, I find Asterisk dialing just the 22 or 00 plus another digit down the line instead of waiting to see the whole number.
I also tried for example to match dialed numbers with an extension “_22xxxxxxx”, but Asterisk allows me to dial extra digits beyond the expected 9!
This is absolutely incoherent with the behaviour described in all the texts and i’m starting to despair with this simple but unexplained error ( !
Am I missing something?
I’m using version 1.0.7-BRIstuffed-0.2.0-RC7k as available in the official Debian mirrors.
Thanks for your help in advance!
Sergio
EXTENSIONS.CONF
[general]
static=yes
writeprotect=no
[globals]
[default]
[PBX_PSTN]
include => All
exten => _22.,1,Dial(misdn/1/${EXTEN})
exten => h,1,Hangup
[PSTN_PBX]
exten => _X.,1,Dial(misdn/4/${EXTEN})
exten => _X.,2,Hangup
[All]
exten => _00.,1,Dial(misdn/1/${EXTEN})
exten => _00.,2,Hangup
SIP.CONF
[general]
port = 5090 ;
bindaddr = 0.0.0.0;
srvlookup=yes
disallow=all
allow=gsm
allow=ilbc
allow=speex
allow=lpc10
allow=ulaw
allow=alaw