[Asterisk-Users] Call Forward or DND

Anton Krall akrall-lists at intruder.com.mx
Mon Mar 7 18:33:34 MST 2005


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 at lists.digium.com
[mailto:asterisk-users-bounces at 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 at lists.digium.com
> [mailto:asterisk-users-bounces at 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 at lists.digium.com
> > [mailto:asterisk-users-bounces at 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 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
> > --
> > 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 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
> --
> 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 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
--
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 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