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... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060623/c92e6a8d/attachment.htm
Isn't that what the Background() application does? xytek@hotmail.com "blah...">From: "Don" <sales@xwebfactor.com> >Reply-To: Asterisk Users Mailing List - Non-Commercial >Discussion<asterisk-users@lists.digium.com> >To: <asterisk-users@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
You want to use DISA: http://www.voip-info.org/wiki-Asterisk+cmd+DISA Or, you can do it with something like: exten=>_XXXX,1,Answer() exten=>_XXXX,n,Wait(1) exten=>_XXXX,n,Authenticate(1234) exten=>_XXXX,n,Read(CallerID,beep,10) exten=>_XXXX,n,Wait(1) exten=>_XXXX,n,Read(DialedNum,beep,10) exten=>_XXXX,n,Set(CALLERID(num)=+1${CallerID}) exten=>_XXXX,n,Dial(SIP/trunk/+1${DialedNum}) exten=>_XXXX,n,Hangup Example above: Answers Asks for password (1234) Reads a 10 digit number (Calling Number) Reads a 10 digit number (Called Number) Sets outbound callerid Dials called number This is useful for .... testing. On 6/23/06, Don <sales@xwebfactor.com> wrote:> > 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 > > >-- Anthony D Cennami -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060623/10bb7392/attachment.htm
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@lists.digium.com [mailto:asterisk-users-bounces@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@hotmail.com> To: <asterisk-users@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@hotmail.com > "blah..." > > > > > >>From: "Don" <sales@xwebfactor.com> >>Reply-To: Asterisk Users Mailing List - Non-Commercial >>Discussion<asterisk-users@lists.digium.com> >>To: <asterisk-users@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
undrhil.1528785@bloglines.com
2006-Jun-23 15:08 UTC
[Asterisk-Users] Asking for phone number to dial
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@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@lists.digium.com> [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Don > Sent:Friday, June 23, 2006 5:29 PM> To: Asterisk Users Mailing List - Non-CommercialDiscussion> Subject: Re: [Asterisk-Users] Asking for phone number to dial> > > background just accepts input while other sounds...etc...are beingplayed...> 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@hotmail.com>> To: <asterisk-users@lists.digium.com> > Sent: Friday, June 23, 2006 5:19PM> Subject: RE: [Asterisk-Users] Asking for phone number to dial > >> > Isn't that what the Background() application does? > > > > > > > > > > xytek@hotmail.com > > "blah..." > > > > > > > > > > > >>From:"Don" <sales@xwebfactor.com>> >>Reply-To: Asterisk Users Mailing List -Non-Commercial> >>Discussion<asterisk-users@lists.digium.com> > >>To:<asterisk-users@lists.digium.com>> >>Subject: [Asterisk-Users] Asking forphone number to dial> >>Date: Fri, 23 Jun 2006 15:51:00 -0400 > >> > >>Doesanyone know where to find an example or able to provide an example of> >>how to do the following: > >> > >>When asterisk answers a call... > >>Askfor number to dial...then dial that number?> >>I am basically dialing intothe asterisk box and then wanting it to take> >>the digits I enter anddial them on an outbound zap trunk...> >> > >>I basically am just not surehow to have asterisk accept the digits and> >>then use them in the dialcommand...> > > > > >>_______________________________________________> >>--Bandwidth and Colocation provided by Easynews.com -- > >> > >>Asterisk-Usersmailing list> >>To UNSUBSCRIBE or update options visit: > >> http://lists.digium.com/mailman/listinfo/asterisk-users> > > > > > _______________________________________________ > > --Bandwidthand Colocation provided by Easynews.com --> > > > Asterisk-Users mailinglist> > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users> > > > > > -- > > No virus found in this incoming message. > > Checkedby 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-Usersmailing list> To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users> _______________________________________________ > --Bandwidth and Colocationprovided by Easynews.com --> > Asterisk-Users mailing list > To UNSUBSCRIBEor update options visit:> http://lists.digium.com/mailman/listinfo/asterisk-users>
undrhil.1528785@bloglines.com
2006-Jun-23 15:10 UTC
[Asterisk-Users] Asking for phone number to dial
I just realized that I came up with a way to use DISA and still allow for voicemail-like activity. Set background() to play your greeting and then program in an exten with 9 which would then point you to your DISA dialtone. If the caller doesn't press 9, have them go to the general "leaving a message" stage or whatever you want to do with real callers. Undrhil --- Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@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@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com]OnBehalf Of Don> Sent: Friday, June 23, 2006 5:29 PM > To: Asterisk UsersMailing List - Non-Commercial Discussion> Subject: Re: [Asterisk-Users]Asking for phone number to dial> > > background just accepts input whileother sounds...etc...are being played...> instead of waiting for somethingto end and then accept input.> It doesn't store the number...etc...thenadd it to dial command for a zap> channel > > ----- Original Message-----> From: "T. Shaw" <xytek@hotmail.com> > To: <asterisk-users@lists.digium.com>> Sent: Friday, June 23, 2006 5:19 PM > Subject: RE: [Asterisk-Users] Askingfor phone number to dial> > > > Isn't that what the Background() applicationdoes?> > > > > > > > > > xytek@hotmail.com > > "blah..." > > > >> > > > > > > >>From: "Don" <sales@xwebfactor.com> > >>Reply-To: AsteriskUsers Mailing List - Non-Commercial> >>Discussion<asterisk-users@lists.digium.com>> >>To: <asterisk-users@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 anexample of> >>how to do the following: > >> > >>When asterisk answersa call...> >>Ask for number to dial...then dial that number? > >>I am basicallydialing into the asterisk box and then wanting it to take> >>the digitsI enter and dial them on an outbound zap trunk...> >> > >>I basically amjust not sure how to have asterisk accept the digits and> >>then use themin the dial command...> > > > > >>_______________________________________________> >>--Bandwidth and Colocation provided by Easynews.com -- > >> > >>Asterisk-Usersmailing list> >>To UNSUBSCRIBE or update options visit: > >> http://lists.digium.com/mailman/listinfo/asterisk-users> > > > > > _______________________________________________ > > --Bandwidthand Colocation provided by Easynews.com --> > > > Asterisk-Users mailinglist> > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users> > > > > > -- > > No virus found in this incoming message. > > Checkedby 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-Usersmailing list> To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users> _______________________________________________ > --Bandwidth and Colocationprovided by Easynews.com --> > Asterisk-Users mailing list > To UNSUBSCRIBEor update options visit:> http://lists.digium.com/mailman/listinfo/asterisk-users>