[Asterisk-Users] Wildcards and variable number of digits

Brian West brian at bkw.org
Sun Sep 5 14:21:16 MST 2004


And your using chan_phone?

bkw

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Eric Jacksch
> Sent: Sunday, September 05, 2004 4:17 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: RE: [Asterisk-Users] Wildcards and variable number of digits
> 
> Here are the snippets...I changed things to "9" just in case...
> 
> No matter what I do, I get to dial 9 plus two more digits...
> 
> 
> [internal]
> ;include => extensions
> ;include => tovpc
> include => tofwd
> ; this should just dial myself
> exten => _999XXX,1,Dial,${P1}
> 
> ....
> 
> [macro-dialwfd]
> exten => s,1,SetCallerID(${FWDCIDNAME})
> exten =>
> s,2,Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${ARG1},${ARG2},
> r)
> exten => s,3,Hangup
> 
> ; Prefix 9 to dial out to Free World Dial
> [tofwd]
> ; when I do this, it gives me a ring (and then busy) as soon as I
> ; dial the second digit
> exten => _9X.,1,Macro(dialwfd,${EXTEN:1},60)
> 
> 
> 
> -----Original Message-----
> From:	Brian West [mailto:brian at bkw.org]
> Sent:	Sun 2004-09-05 15:55
> To:	'Asterisk Users Mailing List - Non-Commercial Discussion'
> Cc:
> Subject:	RE: [Asterisk-Users] Wildcards and variable number of digits
> Actually it does the proper usage of the "." char in your dial plan should
> solve this problem.  It's not the channel driver that's doing this its
> asterisk.  You need to sandbox a wildcard into its own context then
> include
> it.  Otherwise it wins NO MATER WHAT.  This way an extension defined
> within
> the current context wins over the included wildcard context.
> S=
> bkw
> 
> > -----Original Message-----
> > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> > bounces at lists.digium.com] On Behalf Of Eric Jacksch
> > Sent: Sunday, September 05, 2004 2:50 PM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: Re: [Asterisk-Users] Wildcards and variable number of digits
> >
> > Not sure I understand..does that help my problem of not being able to
> > enter
> > sufficient digits, or is that a consideration once I get a driver that
> > allows me to # terminate the dialing string?
> >
> >
> > On 2004-09-05 15:00, "Brian West" <brian at bkw.org> wrote:
> >
> > > Just to clarify the usage of the . wildcard in your dialplan.
> > >
> > > Here is the proper usage of this feature which seems to not be
> > documented
> > > ANYWHERE very well.
> > >
> > > [default]
> > > include => other
> > > exten => _712XXX,1,NoOp,Blah
> > >
> > > [other]
> > > exten => _7.,1,NoOp,somethingelse
> > >
> > >
> > > The extensions in the current context win over an include.. only if
> > > something doesn't specifically match in [default] but does as a
> wildcard
> > as
> > > an include then it will work.  Remember includes are your friend.
> > >
> > > bkw
> > >
> > >
> > >> -----Original Message-----
> > >> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> > >> bounces at lists.digium.com] On Behalf Of Karl Brose
> > >> Sent: Sunday, September 05, 2004 1:50 PM
> > >> To: Asterisk Users Mailing List - Non-Commercial Discussion
> > >> Subject: Re: [Asterisk-Users] Wildcards and variable number of digits
> > >>
> > >>
> > >> The problem you are having is due to the way chan_phone was designed.
> > >> The distributed driver does not buffer the entire phone number dialed
> > >> and then send it on to the PBX,
> > >> like a SIP phone would, but instead scans the dial plan after every
> > >> digit is entered to look for a match.
> > >> The solution is to only use fixed length extension patterns, but at
> the
> > >> same time requires different dial plans
> > >> for the Phone/phoneX devices.  I you're only dialing PSTN numbers
> it's
> > >> not so bad, but many VOIP providers
> > >> have all kinds of numbering plans. On the other hand, fixed patterns
> > are
> > >> nice since you don't have to
> > >> press any "call" or "dial" buttons to make the call.
> > >>
> > >> I have a new chan_phone driver which solves this issue by buffering
> the
> > >> dial string until the user presses
> > >> the pound (#) key to send the phone number to the pbx.  The features
> > can
> > >> be toggled on/off any time by dialing
> > >> *1#  or  *0#  or in the config file with a mode "buffered"  which is
> > >> otherwise the same as "dialtone"
> > >>
> > >>
> > >>
> > >>
> > >> Eric Jacksch wrote:
> > >>
> > >>> Greetings,
> > >>>
> > >>> I'm having a miserable time getting Asterisk working with FWD.  All
> > the
> > >>> samples show something like...
> > >>>
> > >>> exten => _7., ....
> > >>>
> > >>> How do I get Asterisk to wait until the user is finished dialing
> > instead
> > >> of
> > >>> trying as soon as it gets the second digit?
> > >>>
> > >>> I can use _7XXX, and dial the FWD 3-digit test numbers fine, but I'd
> > like
> > >> to
> > >>> be able to dial others...
> > >>>
> > >>> Same problem for outside analog line...how do I convince Asterisk to
> > send
> > >>> anything that starts with a "9" to it?
> > >>>
> > >>> If it makes a difference, I'm playing with some QuickNet cards to
> > learn
> > >> the
> > >>> system...then I'll likely buy some other cards with higher capacity.
> > >>>
> > >>> Thanks,
> > >>> Eric
> > >>>
> > >>>
> > >>> --------------------------------------------------------------------
> --
> > --
> > >>>
> > >>> _______________________________________________
> > >>> 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
> > >>>
> > >>>
> > >> _______________________________________________
> > >> 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
> > >
> > > _______________________________________________
> > > 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
> >
> > --
> > Eric Jacksch, CISSP, CISM
> > Tenebris Technologies Inc.
> > http://www.tenebris.ca
> > +1 613 860-0964
> > jacksch at tenebris.ca
> >
> > Information security consulting, investigations, and forensics.
> 
> 
> _______________________________________________
> 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
> 
> 
> _______________________________________________
> 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