[Asterisk-Users] Asking for phone number to dial
Don
sales at xwebfactor.com
Fri Jun 23 15:47:08 MST 2006
Thanks...that works for me 8)
exten => 4521,1,Ringing
exten => 4521,n,Wait,4
exten => 4521,n,Answer
exten => 4521,n,ANSWER()
exten => 4521,n,Wait(1.0)
exten => 4521,n,Read(blahblah,pls-entr-num-uwish2-call,10)
exten => 4521,n,Dial(Zap/g2/${blahblah})
Does exactly what I wanted 8)
----- Original Message -----
From: "John Millican" <john at millican.us>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Friday, June 23, 2006 6:27 PM
Subject: Re: [Asterisk-Users] Asking for phone number to dial
> Instead of Background() use Read(). this will allow for any number of
> digits.
> example:
> exten => 1234, 1, Read(var_to_use|prompt_name|number_of_digits_to_accept);
> ;;;;;then use a goto based on the value of var_to_use.
> exten => 1234,2 GoToIf($[${var_to_use} = 1]?new_exten,1:3);
> this way you are sent to an extension based on what the user dials. this
> will fall through till it matches.
> John M
>
> On Friday June 23 2006 6:18 pm, Anthony Cennami wrote:
>> Where there is a will, there's a way:
>>
>> Assuming you only had one DID, you could:
>>
>> - Use an auto attendant
>> - Use a dialplan timeout that dropped to DISA (not so nice)
>> - Use callerid based redirection (again, not so nice, but available)
>> - Use a Voicemail breakout option (again, not so nice, but better than
>> timeout)
>> - Use a ToD based extension
>>
>> Probably a variety of other options, depending on the
>> application/requirements/costs/etc.
>>
>>
>>
>> On 23 Jun 2006 22:08:20 -0000, undrhil.1528785 at bloglines.com <
>>
>> undrhil.1528785 at bloglines.com> wrote:
>> > I thought Background() only allowed you one digit dialing while it's
>> > playing.
>> > Is this not the case? I agree with the reply which said that you want
>> > to
>> > use DISA, the only problem with DISA is that you have no way to use the
>> > line
>> > for answering regular calls. Once you put the DISA command in the
>> > dialplan,
>> > you get the DISA dialtone for entering you code. I suppose if you know
>> > where
>> > you will be calling from, you could code in a specific dialplan based
>> > on
>> > your
>> > callerid info, but that just seems kind of tedious just for being about
>> > to dial out.
>> >
>> > Undrhil
>> >
>> > --- Asterisk Users Mailing List - Non-Commercial Discussion
>> > <asterisk-users at lists.digium.com wrote:
>> > The number "dialed" after Background
>> > is stored in the EXTEN variable and can be used in the Dial
>> > application.
>> >
>> > > -----Original Message-----
>> > > From: asterisk-users-bounces at lists.digium.com
>> > >
>> > > [mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Don
>> > > Sent:
>> >
>> > Friday, June 23, 2006 5:29 PM
>> >
>> > > To: Asterisk Users Mailing List - Non-Commercial
>> >
>> > Discussion
>> >
>> > > Subject: Re: [Asterisk-Users] Asking for phone number to dial
>> > >
>> > >
>> > >
>> > > background just accepts input while other sounds...etc...are being
>> >
>> > played...
>> >
>> > > instead of waiting for something to end and then accept input.
>> > >
>> > > It doesn't store the number...etc...then add it to dial command for a
>> >
>> > zap
>> >
>> > > channel
>> > >
>> > > ----- Original Message -----
>> > > From: "T. Shaw" <xytek at hotmail.com>
>> > >
>> > > To: <asterisk-users at lists.digium.com>
>> > > Sent: Friday, June 23, 2006 5:19
>> >
>> > PM
>> >
>> > > Subject: RE: [Asterisk-Users] Asking for phone number to dial
>> > >
>> > > > Isn't that what the Background() application does?
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > xytek at hotmail.com
>> > > > "blah..."
>> > > >
>> > > >>From:
>> >
>> > "Don" <sales at xwebfactor.com>
>> >
>> > > >>Reply-To: Asterisk Users Mailing List -
>> >
>> > Non-Commercial
>> >
>> > > >>Discussion<asterisk-users at lists.digium.com>
>> > > >>To:
>> >
>> > <asterisk-users at lists.digium.com>
>> >
>> > > >>Subject: [Asterisk-Users] Asking for
>> >
>> > phone number to dial
>> >
>> > > >>Date: Fri, 23 Jun 2006 15:51:00 -0400
>> > > >>
>> > > >>Does
>> >
>> > anyone know where to find an example or able to provide an example of
>> >
>> > >>how to do the following:
>> > > >>When asterisk answers a call...
>> > > >>Ask
>> >
>> > for number to dial...then dial that number?
>> >
>> > > >>I am basically dialing into
>> >
>> > the asterisk box and then wanting it to take
>> >
>> > > >>the digits I enter and
>> >
>> > dial them on an outbound zap trunk...
>> >
>> > > >>I basically am just not sure
>> >
>> > how to have asterisk accept the digits and
>> >
>> > > >>then use them in the dial
>> >
>> > command...
>> >
>> > > >>_______________________________________________
>> > > >>
>> > > >>--Bandwidth and Colocation provided by Easynews.com --
>> > > >>
>> > > >>Asterisk-Users
>> >
>> > mailing list
>> >
>> > > >>To UNSUBSCRIBE or update options visit:
>> > > >> http://lists.digium.com/mailman/listinfo/asterisk-users
>> > > >
>> > > > _______________________________________________
>> > > > --Bandwidth
>> >
>> > and Colocation provided by Easynews.com --
>> >
>> > > > Asterisk-Users mailing
>> >
>> > list
>> >
>> > > > To UNSUBSCRIBE or update options visit:
>> > > > http://lists.digium.com/mailman/listinfo/asterisk-users
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > No virus found in this incoming message.
>> > > > Checked
>> >
>> > by AVG Free Edition.
>> >
>> > > > Version: 7.1.394 / Virus Database: 268.9.2/373 -
>> >
>> > Release Date: 6/22/2006
>> >
>> > > _______________________________________________
>> > >
>> > > --Bandwidth and Colocation provided by Easynews.com --
>> > >
>> > > Asterisk-Users
>> >
>> > mailing list
>> >
>> > > To UNSUBSCRIBE or update options visit:
>> > > http://lists.digium.com/mailman/listinfo/asterisk-users
>> > >
>> > > _______________________________________________
>> > > --Bandwidth and Colocation
>> >
>> > provided by Easynews.com --
>> >
>> > > Asterisk-Users mailing list
>> > > To UNSUBSCRIBE
>> >
>> > or update options visit:
>> > > http://lists.digium.com/mailman/listinfo/asterisk-users
>> >
>> > _______________________________________________
>> > --Bandwidth and Colocation provided by Easynews.com --
>> >
>> > Asterisk-Users mailing list
>> > To UNSUBSCRIBE or update options visit:
>> > http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 6/22/2006
>
>
More information about the asterisk-users
mailing list