According to voip-info, the syntax for the VoiceMail command is as
follows...

VoiceMail([/flags/]/[EMAIL PROTECTED]&[EMAIL PROTECTED]&boxnumber3]/)


If you check the syntax for the VoiceMail command, it indicates that the
mailbox parameter is /not/ optional, so I'm surprised this works at
all.  Asterisk will default to the @default context if the context isn't
specified, so you /might/ try Voicemail(@03) otherwise I suspect you're
going to need an IVR to achieve what you want.

Zen Kato wrote:
> Hi,
>
> I input "0203#" after "mailbox?" voice prompt from Voicemail cmd
> on extensions.conf such as
>
> exten => 0021,1,Ringing
> exten => 0021,2,Wait(1)
> exten => 0021,3,Voicemail
> exten => 0021,4,Hangup
>
> *CLI>     -- Executing [EMAIL PROTECTED]:1] Ringing("SIP/0103-09a308b0", "") 
> in new stack
>     -- Executing [EMAIL PROTECTED]:2] Wait("SIP/0103-09a308b0", "1") in new 
> stack
>     -- Executing [EMAIL PROTECTED]:3] VoiceMail("SIP/0103-09a308b0", "") in 
> new stack
>     -- <SIP/0103-09a308b0> Playing 'vm-whichbox' (language 'en')
> [Feb  9 17:11:54] WARNING[3574]: app_voicemail.c:2850 leave_voicemail: No 
> entry in voicemail config file for '0203'
>     -- Executing [EMAIL PROTECTED]:4] Hangup("SIP/0103-09a308b0", "") in new 
> stack
>   == Spawn extension (sip, 0021, 4) exited non-zero on 'SIP/0103-09a308b0'
>     -- Executing [EMAIL PROTECTED]:1] Hangup("SIP/0103-09a308b0", "") in new 
> stack
>   == Spawn extension (sip, h, 1) exited non-zero on 'SIP/0103-09a308b0'
>
> I have an entry of 0203 at Context 03 on voicemail.conf as follows;
>
> *CLI> voicemail show users
> Context    Mbox  User                      Zone       NewMsg
> default    general New User                                  0
> 03         0103                                            0
> 03         0203                                            0
> 03         0303                                            0
>
> But, I could not enter into "[EMAIL PROTECTED]" mailbox.
> Any idea?
>
> asterisk-1.4.18
>
> --
> Zen
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>   
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to