[Asterisk-Users] Dialout handler with/without leading 1
Wilson Pickett
spamsucks2005 at gmail.com
Sun Mar 27 00:23:45 MST 2005
> If this handles the case where 10 digits are required:
>
> exten => _9NXXXXXXXXX,1,StripMSD,1
>
> exten => _NXXXXXXXXX,2,Dial,Zap/4/BYEXTENSION
>
> How do you create a handler which works for either this or
> the case with a leading '1' plus 10 digits?
I'd start by looking at this material:
http://www.voip-info.org/wiki-Asterisk+config+extensions.conf
There are at least five other pages that relate closely to the
dialplan which is the most important aspect of asterisk configuration
(once you get it running).
A leading 1 + 10 digits would probably be something like this:
_1XXXXXXXXXX
Looking at applications docs, StripMSD is "deprecated", replaced by
the ${EXTEN:1} syntax.
hth
More information about the asterisk-users
mailing list