[Asterisk-Users] voicemail without prompt

2004-12-17 Thread Ross Kevlin



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.
Anysuggestions would be 
appreciated.
___
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

Re: [Asterisk-Users] voicemail without prompt

2004-12-17 Thread Keith O'Brien








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 [EMAIL PROTECTED]

Subject: [Asterisk-Users]
voicemail without prompt

To:
[EMAIL PROTECTED]

Message-ID: [EMAIL PROTECTED]

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.










___
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

Re: [Asterisk-Users] voicemail without prompt

2004-12-17 Thread Ross Kevlin
this would still only work if the mailbox number was the same as the caller
id. I need someway to get the actual mailbox number of the caller.



- Original Message - 
From: Keith O'Brien
To: [EMAIL PROTECTED]
Sent: Friday, December 17, 2004 3:48 PM
Subject: Re: [Asterisk-Users] voicemail without prompt


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 [EMAIL PROTECTED]
Subject: [Asterisk-Users] voicemail without prompt
To: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
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.



___
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


Re: [Asterisk-Users] voicemail without prompt

2004-12-17 Thread Antony Stone
On Friday 17 December 2004 21:25, Ross Kevlin wrote:

 this would still only work if the mailbox number was the same as the caller
 id. I need some way to get the actual mailbox number of the caller.

Where / how are your mailbox numbers stored?

It shouldn't be too difficult to create a script or DB request to provide the 
CID and get the mailbox number in response?

Just out of interest, why don't you make the mailbox ID = caller ID?

Antony.

-- 
If you want to be happy for an hour, get drunk.
If you want to be happy for a year, get married.
If you want to be happy for a lifetime, get a garden.

 Please reply to the list;
   please don't CC me.
___
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


RE: [Asterisk-Users] voicemail without prompt

2004-12-17 Thread Tim Thompson








Then replace ${CALLERIDNUM} with your
extension/voicemailbox and it will let you in.





No security, but sounds like you dont
want it.





Tim













From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Ross Kevlin
Sent: Friday, December 17, 2004
1:22 PM
To:
[EMAIL PROTECTED]
Subject: [Asterisk-Users]
voicemail without prompt







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.





Anysuggestions would be appreciated.










___
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

Re: [Asterisk-Users] voicemail without prompt

2004-12-17 Thread Christopher Dobbs




The way I have it set up, is that the mailbox is the same as the exten.
I then wrote a macro that does it for me.

[macro-stdiax]
; ARG1 = User
; ARG2 = Voice Mail Number
exten = s,1,Dial(IAX2/${ARG1}/[EMAIL PROTECTED]||Ttr)
;exten = s,2,Voicemail(u${ARG2})
;exten = s,3,Hangup
;exten = s,102,Voicemail(b${ARG2})
;exten = s,103,Hangup

macro-eracewcustomer]
; ARG1 = User
exten = s,1,Dial(IAX2/${ARG1}/[EMAIL PROTECTED]|20|Ttr)
exten = s,2,Voicemail(u${ARG1})
exten = s,3,Hangup
exten = s,102,Voicemail(b${ARG1})
exten = s,103,Hangup

[macro-stdtrunk]
; ARG1 = Zap Port
; ARG2 = Voice Mail Number
exten = s,1,Dial(Zap/${ARG1}|20|Ttr)
exten = s,2,Voicemail(u${ARG2})
exten = s,3,Hangup
exten = s,102,Voicemail(b${ARG2})
exten = s,103,Hangup

[macro-dialtrunk]
exten = s,1,Dial(${TRUNK}/${ARG1})
exten = s,2,Congestion

[macro-dialiax]
exten = s,1,Dial(IAX/${ARG1}/${ARG2})
exten = s,2,Congestion



[dialing_context]

exten = 2050,1,Macro(stdtrunk,1,${EXTEN})
exten = 0205,1,Macro(stdiax,${EXTEN},${EXTEN})


--
Christopher Dobbs
Antony Stone wrote:

  On Friday 17 December 2004 21:25, Ross Kevlin wrote:

  
  
this would still only work if the mailbox number was the same as the caller
id. I need some way to get the actual mailbox number of the caller.

  
  
Where / how are your mailbox numbers stored?

It shouldn't be too difficult to create a script or DB request to provide the 
CID and get the mailbox number in response?

Just out of interest, why don't you make the mailbox ID = caller ID?

Antony.

  




___
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