[Asterisk-Users] Variable digit length in national dial plan
Alfred R. Nurnberger
alfred at flosys.com
Sun Mar 14 19:51:26 MST 2004
Try this:
exten => _0XXXXXXXX.,1,Dial(Zap/g2/${EXTEN})
The dot at the end means that more digits may follow.
This way * determines end of number by a timeout.
In general you could use:
exten => _X.,1,Dial(Zap/g2/${EXTEN})
This way ANY length number would be sent out 1:1
Only drawback is the 5 sec. wait until it is sent to the PSTN.
- Alfred
-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of
marco.parisotto at puntocontatto.it
Sent: Sunday, March 14, 2004 4:58 AM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Variable digit length in national dial plan
Dear All,
we are integrating Asterisk between PSTN and a Panasonic PBX using 2 E100P
cards
and PRI lines.
------PSTN----<>--PRI---Asterisk----<>-----PRI---Panasonic PBX
Everything works fine except for outgoing calls.
In Italy the local call may have a variable lenght (9 or 10 digit). How
can we
instruct Asterisk to wait the possibly 10th digit?
We tried to configure the extension.con as follow:
;emergency number
exten => _1xx,1,Dial(Zap/g2/${EXTEN})
;international
exten => _00XX.,1,Dial(Zap/g2/${EXTEN})
;Local 9 Digit
exten => _0XXXXXXXX,1,Dial(Zap/g2/${EXTEN})
;Local 10 Digit
exten => _0XXXXXXXXX,1,Dial(Zap/g2/${EXTEN})
But it does not work.... while attempting a number of ten digit asterisk
sends out a 9 lenght digit number, ignoring the 10th digit.
We have a work around that consists in terminating the dialed number
with a # character... But it is very unprofessional solution.
May someone help us?
Best regards,
Marco
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list