<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
According to voip-info, the syntax for the VoiceMail command is as
follows...<br>
<br>
<span style="font-family: monospace;">VoiceMail([<i>flags</i>]<i>boxnumber[@context][&amp;boxnumber2[@context]][&amp;boxnumber3]</i>)
</span><br>
<br>
If you check the syntax for the VoiceMail command, it indicates that
the mailbox parameter is <i>not</i> optional, so I'm surprised this
works at all.&nbsp; Asterisk will default to the @default context if the
context isn't specified, so you <i>might</i> try Voicemail(@03)
otherwise I suspect you're going to need an IVR to achieve what you
want.<br>
<br>
Zen Kato wrote:
<blockquote cite="mid:20080209.180412.193693141.zenkato@zm.commufa.jp"
 type="cite">
  <pre wrap="">Hi,

I input "0203#" after "mailbox?" voice prompt from Voicemail cmd
on extensions.conf such as

exten =&gt; 0021,1,Ringing
exten =&gt; 0021,2,Wait(1)
exten =&gt; 0021,3,Voicemail
exten =&gt; 0021,4,Hangup

*CLI&gt;     -- Executing [0021@sip:1] Ringing("SIP/0103-09a308b0", "") in new stack
    -- Executing [0021@sip:2] Wait("SIP/0103-09a308b0", "1") in new stack
    -- Executing [0021@sip:3] VoiceMail("SIP/0103-09a308b0", "") in new stack
    -- &lt;SIP/0103-09a308b0&gt; 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 [0021@sip:4] Hangup("SIP/0103-09a308b0", "") in new stack
  == Spawn extension (sip, 0021, 4) exited non-zero on 'SIP/0103-09a308b0'
    -- Executing [h@sip: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&gt; 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 "0203@03" mailbox.
Any idea?

asterisk-1.4.18

--
Zen

_______________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
  </pre>
</blockquote>
</body>
</html>