AW: [Asterisk-Users] Exclude prefixes

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu May 8 07:31:10 MST 2003


On Thursday 08 May 2003 01:24, Pauline Middelink wrote:
> Christoph Frei wrote:
> > Thomas Haeger wrote:
> > >I think this should make it possible to dial every number
> > > over the Modem/g1 line.
> > >But some prefixes like 0190 etc. should better not be
> > > possible.
> > >
> > >
> > >How can i exclude especially prefixes ?
> >
> > try this:
> >
> > [demo]
> >
> > exten => _0190.,1,Congestion
> >
> > exten => _.,1,Dial,Modem/g1:${Exten}
> > exten => _.,2,Congestion
>
> Guys, this wont work in all case. The shorter regular
> expression will match first. Just ran headlong into this
> problem when connecting to a PABX which sents digit after
> digit instead of the entire number in one go.

If so, then I think that would be a bug.  From my reading of the
source, the logic is never to assume the extension is complete
until one of the following two conditions is met:
a) DigitTimeout, or b) no other extension can possibly match.

-Tilghman




More information about the asterisk-users mailing list