[Asterisk-Users] voicemail without prompt

Keith O'Brien keitheobrien at yahoo.com
Fri Dec 17 13:48:39 MST 2004


I did something like this with some IF logic and changed the callerid to the
appropriate callerid for the mailbox number.   Granted I am sure that there
is a more eloquent approach to this but it works for me.

 

 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;8600 is the vmail pilot number.  If the CLID of the extension

;calling the pilot is 2001-2013 then change the clid to 2000.

;This is done so that when users hit the primary dn and hit the

;messages button they end up in the main mailbox.

;If the extension isn't in the 200X range then it is either

;5001 or 5000 in which case we don't modify the CLID

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;

exten => 8600,1,GotoIf($[${CALLERIDNUM} = 2001]?50:2)

exten => 8600,2,GotoIf($[${CALLERIDNUM} = 2002]?50:3)

exten => 8600,3,GotoIf($[${CALLERIDNUM} = 2003]?50:4)

exten => 8600,4,GotoIf($[${CALLERIDNUM} = 2004]?50:5)

exten => 8600,5,GotoIf($[${CALLERIDNUM} = 2005]?50:6)

exten => 8600,6,GotoIf($[${CALLERIDNUM} = 2006]?50:7)

exten => 8600,7,GotoIf($[${CALLERIDNUM} = 2007]?50:8)

exten => 8600,8,GotoIf($[${CALLERIDNUM} = 2008]?50:9)

exten => 8600,9,GotoIf($[${CALLERIDNUM} = 2009]?50:10)

exten => 8600,10,GotoIf($[${CALLERIDNUM} = 2010]?50:11)

exten => 8600,11,GotoIf($[${CALLERIDNUM} = 2011]?50:12)

exten => 8600,12,GotoIf($[${CALLERIDNUM} = 2012]?50:13)

exten => 8600,13,GotoIf($[${CALLERIDNUM} = 2013]?50:51)

exten => 8600,50,SetCIDNum(2000)

exten => 8600,51,VoicemailMain(s${CALLERIDNUM})

exten => 8600,52,Hangup

 

 

 

 

Message: 9

Date: Fri, 17 Dec 2004 15:21:41 -0500

From: "Ross Kevlin" <RAKevlin at metrostat.net>

Subject: [Asterisk-Users] voicemail without prompt

To: <asterisk-users at lists.digium.com>

Message-ID: <001101c4e476$05477720$b402a8c0 at antec>

Content-Type: text/plain; charset="iso-8859-1"

 

I'm trying to find a way to call voicemail without being prompted for my
mailbox number. I was wondering if there was a variable for sip mailbox, or
is there a way to define a variable that matches a sip's mailbox.

I tried using "exten => 996,1,voicemailMain(${CALLERIDNUM})" but this only
works if the mailbox matches the caller id.

Any suggestions would be appreciated.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041217/58cd4832/attachment.htm


More information about the asterisk-users mailing list