Guys. Im trying to implement some kind of call forward or DND, I checked the wiki and there are some examples of call forwards but I was wondering if anybody has implemented one that will let you forward calls to SIP, IX or ZAP channels alike? For example, forwardto another extension, to an outside number or directly to voicemail (ala DND). Thx!
Anton Krall wrote:> Guys. > > Im trying to implement some kind of call forward or DND, I checked the wiki > and there are some examples of call forwards but I was wondering if anybody > has implemented one that will let you forward calls to SIP, IX or ZAP > channels alike? For example, forwardto another extension, to an outside > number or directly to voicemail (ala DND). > > Thx!Anton, Very easy with Goto()... Lets say you have a "friends" context that allows calls to any number or extension. This is all you have to do: [macro-stdexten] exten => s,1,DBGet(TRANSEXT=DNDFWD/${ARG1}) exten => s,2,Goto(friends,${TRANSEXT}) exten => s,102,Dial(SIP/${ARG1},2) ; or whatever you use now... exten => s,103,Voicemail(u${ARG1}) ; you get the point... exten => s,104,Hangup ; duh Then if you really wanted to get fancy-in-the-pantsy, you could setup another extension like so: [internal-phones-only] exten => 1000,1,Answer exten => 1000,2,Read(FWDNO) exten => 1000,3,DBPut(DNDFWD=${CALLERIDNUM}/${FWDNO}) exten => 1000,4,Playback(vm-goodbye) exten => 1000,5,Hangup ...or something like that... -- Kristian Kielhofner
On Tue, 2005-03-08 at 09:14, Anton Krall wrote:> Guys. > > Im trying to implement some kind of call forward or DND, I checked the wiki > and there are some examples of call forwards but I was wondering if anybody > has implemented one that will let you forward calls to SIP, IX or ZAP > channels alike? For example, forwardto another extension, to an outside > number or directly to voicemail (ala DND).Yes. Give them an extension to prompt for, and store, the call forward number. Also an extension to cancel call forward. Use the * internal database to store the call forward numbers against the extension that they are setting it up from. If the call forward number is the same extension that they are setting up from, then assume they want DND and code the dial plan to check for this and do a redirect to voicemail.> > Thx! > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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-- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states."
Hello all, I am looking at the possibility integrating Asterisk with our current Mitel 200sx. If this is possible what physical connection is made between the Mitel box and * box? Then can a user choose if a call is go out VoIP or not? Has anyone had any luck in doing this? Thanks, Scott
Nice idea.. Now, also We would need to check the number of digitsentered, if more than X, then call is an outside number, is less than X, then its an internal extension.. Sounds good? -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Howard Lowndes Sent: Lunes, 07 de Marzo de 2005 04:43 p.m. To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Call Forward or DND On Tue, 2005-03-08 at 09:14, Anton Krall wrote:> Guys. > > Im trying to implement some kind of call forward or DND, I checked the > wiki and there are some examples of call forwards but I was wondering > if anybody has implemented one that will let you forward calls to SIP, > IX or ZAP channels alike? For example, forwardto another extension, to > an outside number or directly to voicemail (ala DND).Yes. Give them an extension to prompt for, and store, the call forward number. Also an extension to cancel call forward. Use the * internal database to store the call forward numbers against the extension that they are setting it up from. If the call forward number is the same extension that they are setting up from, then assume they want DND and code the dial plan to check for this and do a redirect to voicemail.> > Thx! > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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-- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states." _______________________________________________ Asterisk-Users mailing list Asterisk-Users@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
On Tue, 2005-03-08 at 10:48, Anton Krall wrote:> Nice idea.. Now, also We would need to check the number of digitsentered, if > more than X, then call is an outside number, is less than X, then its an > internal extension..Simple. SetGlobalVar(DIGITS=4) GotoIf($[${LEN(${EXTEN}) > ${DIGITS}]?s-ext:s-int)> > Sounds good? > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Howard Lowndes > Sent: Lunes, 07 de Marzo de 2005 04:43 p.m. > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Call Forward or DND > > On Tue, 2005-03-08 at 09:14, Anton Krall wrote: > > Guys. > > > > Im trying to implement some kind of call forward or DND, I checked the > > wiki and there are some examples of call forwards but I was wondering > > if anybody has implemented one that will let you forward calls to SIP, > > IX or ZAP channels alike? For example, forwardto another extension, to > > an outside number or directly to voicemail (ala DND). > > Yes. > Give them an extension to prompt for, and store, the call forward number. > Also an extension to cancel call forward. > Use the * internal database to store the call forward numbers against the > extension that they are setting it up from. > If the call forward number is the same extension that they are setting up > from, then assume they want DND and code the dial plan to check for this and > do a redirect to voicemail. > > > > Thx! > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@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 > -- > Howard. > LANNet Computing Associates; > Your Linux people <http://www.lannetlinux.com> > ------------------------------------------ > "When you just want a system that works, you choose Linux; when you want a > system that just works, you choose Microsoft." > ------------------------------------------ > "Flatter government, not fatter government; Get rid of the Australian > states." > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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@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-- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states."
Wow, too professional for me hahaha can you explain to me the last part of the goto? -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Howard Lowndes Sent: Lunes, 07 de Marzo de 2005 06:22 p.m. To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Call Forward or DND On Tue, 2005-03-08 at 10:48, Anton Krall wrote:> Nice idea.. Now, also We would need to check the number of > digitsentered, if more than X, then call is an outside number, is less > than X, then its an internal extension..Simple. SetGlobalVar(DIGITS=4) GotoIf($[${LEN(${EXTEN}) > ${DIGITS}]?s-ext:s-int)> > Sounds good? > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Howard > Lowndes > Sent: Lunes, 07 de Marzo de 2005 04:43 p.m. > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Call Forward or DND > > On Tue, 2005-03-08 at 09:14, Anton Krall wrote: > > Guys. > > > > Im trying to implement some kind of call forward or DND, I checked > > the wiki and there are some examples of call forwards but I was > > wondering if anybody has implemented one that will let you forward > > calls to SIP, IX or ZAP channels alike? For example, forwardto > > another extension, to an outside number or directly to voicemail (alaDND).> > Yes. > Give them an extension to prompt for, and store, the call forward number. > Also an extension to cancel call forward. > Use the * internal database to store the call forward numbers against > the extension that they are setting it up from. > If the call forward number is the same extension that they are setting > up from, then assume they want DND and code the dial plan to check for > this and do a redirect to voicemail. > > > > Thx! > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@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 > -- > Howard. > LANNet Computing Associates; > Your Linux people <http://www.lannetlinux.com> > ------------------------------------------ > "When you just want a system that works, you choose Linux; when you > want a system that just works, you choose Microsoft." > ------------------------------------------ > "Flatter government, not fatter government; Get rid of the Australian > states." > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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@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-- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states." _______________________________________________ Asterisk-Users mailing list Asterisk-Users@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
On Tue, 2005-03-08 at 11:43, Anton Krall wrote:> Wow, too professional for me hahaha can you explain to me the last part of > the goto? > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Howard Lowndes > Sent: Lunes, 07 de Marzo de 2005 06:22 p.m. > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [Asterisk-Users] Call Forward or DND > > On Tue, 2005-03-08 at 10:48, Anton Krall wrote: > > Nice idea.. Now, also We would need to check the number of > > digitsentered, if more than X, then call is an outside number, is less > > than X, then its an internal extension.. > > Simple. > > SetGlobalVar(DIGITS=4) > GotoIf($[${LEN(${EXTEN}) > ${DIGITS}]?s-ext:s-int)If the length "${LEN()}" of the dialout extension "${EXTEN}" is greater than ">" some parameter you define "${DIGITS}" then go to "?" somewhere in the dial plan that handles external call outs, otherwise ":" go to somewhere in the dial plan that handles internal call outs. The SetGlobalVar() is not necessary if you have defined DIGITS => 4 in the [globals] section of your dial plan. s-ext and s-int can be stated: either as a priority point in the current extension in the current context, 10 or as a priority point in a different extension in the current context, 1234|10 or as a priority point in a different extension in a different context. other-context|1234|10 Check out the GotoIf() application.> > > > Sounds good? > > > > -----Original Message----- > > From: asterisk-users-bounces@lists.digium.com > > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Howard > > Lowndes > > Sent: Lunes, 07 de Marzo de 2005 04:43 p.m. > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: Re: [Asterisk-Users] Call Forward or DND > > > > On Tue, 2005-03-08 at 09:14, Anton Krall wrote: > > > Guys. > > > > > > Im trying to implement some kind of call forward or DND, I checked > > > the wiki and there are some examples of call forwards but I was > > > wondering if anybody has implemented one that will let you forward > > > calls to SIP, IX or ZAP channels alike? For example, forwardto > > > another extension, to an outside number or directly to voicemail (ala > DND). > > > > Yes. > > Give them an extension to prompt for, and store, the call forward number. > > Also an extension to cancel call forward. > > Use the * internal database to store the call forward numbers against > > the extension that they are setting it up from. > > If the call forward number is the same extension that they are setting > > up from, then assume they want DND and code the dial plan to check for > > this and do a redirect to voicemail. > > > > > > Thx! > > > > > > _______________________________________________ > > > Asterisk-Users mailing list > > > Asterisk-Users@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 > > -- > > Howard. > > LANNet Computing Associates; > > Your Linux people <http://www.lannetlinux.com> > > ------------------------------------------ > > "When you just want a system that works, you choose Linux; when you > > want a system that just works, you choose Microsoft." > > ------------------------------------------ > > "Flatter government, not fatter government; Get rid of the Australian > > states." > > > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@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@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 > -- > Howard. > LANNet Computing Associates; > Your Linux people <http://www.lannetlinux.com> > ------------------------------------------ > "When you just want a system that works, you choose Linux; when you want a > system that just works, you choose Microsoft." > ------------------------------------------ > "Flatter government, not fatter government; Get rid of the Australian > states." > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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@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-- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states."
Ah! I see that on the goto you are refering to extentions/priorities by name and not number.. That one threw me off guard :) Thx -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Howard Lowndes Sent: Lunes, 07 de Marzo de 2005 07:16 p.m. To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Call Forward or DND On Tue, 2005-03-08 at 11:43, Anton Krall wrote:> Wow, too professional for me hahaha can you explain to me the last > part of the goto? > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Howard > Lowndes > Sent: Lunes, 07 de Marzo de 2005 06:22 p.m. > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [Asterisk-Users] Call Forward or DND > > On Tue, 2005-03-08 at 10:48, Anton Krall wrote: > > Nice idea.. Now, also We would need to check the number of > > digitsentered, if more than X, then call is an outside number, is > > less than X, then its an internal extension.. > > Simple. > > SetGlobalVar(DIGITS=4) > GotoIf($[${LEN(${EXTEN}) > ${DIGITS}]?s-ext:s-int)If the length "${LEN()}" of the dialout extension "${EXTEN}" is greater than ">" some parameter you define "${DIGITS}" then go to "?" somewhere in the dial plan that handles external call outs, otherwise ":" go to somewhere in the dial plan that handles internal call outs. The SetGlobalVar() is not necessary if you have defined DIGITS => 4 in the [globals] section of your dial plan. s-ext and s-int can be stated: either as a priority point in the current extension in the current context, 10 or as a priority point in a different extension in the current context, 1234|10 or as a priority point in a different extension in a different context. other-context|1234|10 Check out the GotoIf() application.> > > > Sounds good? > > > > -----Original Message----- > > From: asterisk-users-bounces@lists.digium.com > > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Howard > > Lowndes > > Sent: Lunes, 07 de Marzo de 2005 04:43 p.m. > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: Re: [Asterisk-Users] Call Forward or DND > > > > On Tue, 2005-03-08 at 09:14, Anton Krall wrote: > > > Guys. > > > > > > Im trying to implement some kind of call forward or DND, I checked > > > the wiki and there are some examples of call forwards but I was > > > wondering if anybody has implemented one that will let you forward > > > calls to SIP, IX or ZAP channels alike? For example, forwardto > > > another extension, to an outside number or directly to voicemail > > > (ala > DND). > > > > Yes. > > Give them an extension to prompt for, and store, the call forwardnumber.> > Also an extension to cancel call forward. > > Use the * internal database to store the call forward numbers > > against the extension that they are setting it up from. > > If the call forward number is the same extension that they are > > setting up from, then assume they want DND and code the dial plan to > > check for this and do a redirect to voicemail. > > > > > > Thx! > > > > > > _______________________________________________ > > > Asterisk-Users mailing list > > > Asterisk-Users@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 > > -- > > Howard. > > LANNet Computing Associates; > > Your Linux people <http://www.lannetlinux.com> > > ------------------------------------------ > > "When you just want a system that works, you choose Linux; when you > > want a system that just works, you choose Microsoft." > > ------------------------------------------ > > "Flatter government, not fatter government; Get rid of the > > Australian states." > > > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@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@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 > -- > Howard. > LANNet Computing Associates; > Your Linux people <http://www.lannetlinux.com> > ------------------------------------------ > "When you just want a system that works, you choose Linux; when you > want a system that just works, you choose Microsoft." > ------------------------------------------ > "Flatter government, not fatter government; Get rid of the Australian > states." > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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@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-- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states." _______________________________________________ Asterisk-Users mailing list Asterisk-Users@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