[Asterisk-Users] Call Forward or DND

Kristian Kielhofner kris at krisk.org
Mon Mar 7 15:56:43 MST 2005


Anton Krall wrote:
> 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? 

With a little modification the sample that I provided would do exactly that:

[internal-phones-only]
exten => _*21.,1,Answer
exten => _*21.,2,DBPut(DNDFWD=${CALLERIDNUM}/${EXTEN:3})
exten => _*21.,3,Playback(vm-goodbye)
exten => _*21.,4,Hangup

--
Kristian Kielhofner



More information about the asterisk-users mailing list