Im looking for something like the article on the wiki where the user can dial *21 plus the number or extension to forward to...
I don't quite get the internal on that yet but it's a mix of that and what you just posted... Although the wiki just send the call to another extension so I would need to use vars to decide if it should go to the outside, an extension or maybe the voicemail. Im looking for something like on other PBX where you dial *21 + extension or outside number like 9123456 In the case of voicemail, phones usually have a button for SAC to voicemail but this would have to also be some kind of *21 combination... Any ideas? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kristian Kielhofner Sent: Lunes, 07 de Marzo de 2005 04:24 p.m. To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Call Forward or DND 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 _______________________________________________ Asterisk-Users mailing list [email protected] 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 [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
