[Asterisk-Users] Dial Plan Format Strings

Benjamin Wakefield ben at team.dcsi.net.au
Tue Apr 13 07:28:30 MST 2004


<snip>
have to dial the entire number, like 1 + area code + number. I'd like to
eliminate this by having the user just dial 9 + 7 digit number, and have
asterisk put the 1 + area code (which is in a variable in
extensions.conf)
in front of it prior to sending the request to Voice Pulse.  Is this
possible? 
</snip>


Sure it's possible! Asterisk can do anything!

exten => _9XXXXXXX,1,Dial(Technology/123/1212${EXTEN:1})

See after the: "Technology/123/" there is a "1212" you can make that
your "1 + area code"

Then the: "${EXTEN:1}" dumps in the number that was dialled and chops
off the first (1) digit, which is the 9.

:)
Ben
________________________
Benjamin Wakefield
ben at team.dcsi.net.au
http://www.dcsi.net.au/
DCSI - We do Internet.
64 Queen Street
Warragul, VIC 3820 AU
Ph: (+61) 1300 665 575
Fx: (+61) 1300 556 595

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
G! d- s: a-- C+ UL++ P+ L++ E---- W+ N+ o- K- w+$ O--- M-- V? PS !PE Y--
PGP- t 5 X+ R- tv b- DI-- D--- G-- e* h* r- z++
------END GEEK CODE BLOCK------







More information about the asterisk-users mailing list