<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="Helvetica, Arial, sans-serif">I have commented out case 5, </font>case
2 and case 3, leaving case 1, 4,6,7,8,9.<br>
<br>
But when I press "1" on the menu, I hear: " I'm sorry, I did not
understand your response"<br>
<br>
<br>
if (play_auto) {<br>
cmd = '1';<br>
} else {<br>
cmd = vm_intro(chan, vmu, &vms);<br>
}<br>
<br>
vms.repeats = 0;<br>
vms.starting = 1;<br>
while ((cmd > -1) && (cmd != 't') && (cmd !=
'#')) {<br>
/* Run main menu */<br>
switch (cmd) {<br>
case '1':<br>
vms.curmsg = 0;<br>
/* Fall through */<br>
/* commented out from here<br>
case '5':<br>
cmd = vm_browse_messages(chan, &vms, vmu);<br>
break;<br>
<br>
<snip code><br>
<br>
if (vms.repeats > 3)<br>
cmd = 't';<br>
}<br>
}<br>
if (cmd == 't') {<br>
cmd = 0;<br>
vms.repeats = 0;<br>
}<br>
break;<br>
commented out till here */<br>
<br>
<br>
Jonas.<br>
<br>
<br>
<br>
On 06/07/2010 04:22 PM, Glenn O Larsen wrote:
<blockquote
cite="mid:AANLkTilqeArsAotKDJF8mB240Cp1bzEwwvFLB1z2fuJm@mail.gmail.com"
type="cite">
<pre wrap="">On Mon, Jun 7, 2010 at 2:15 PM, Jonas Kellens <a class="moz-txt-link-rfc2396E" href="mailto:jonas.kellens@telenet.be"><jonas.kellens@telenet.be></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I made some changes to app_voicemail.c and recompiled asterisk. Now my
caller is only presented with the menu-choice I want.
However, the caller can still give another dtmf-input and be taken to that
specific menu.
How can I disable dtmf-input 2,3,4 if I only want the menu behind option 1
available ?
</pre>
</blockquote>
<pre wrap="">
In the C code, find:
case '2': /* Change folders */
if (useadsi)
adsi_folders(chan, 0, "Change to folder...");
cmd = get_folder2(chan, "vm-changeto", 0);
then add the lines:
+ cmd = 0; /* Go back to root menu */
+ break; /* don't continue */
so it look like this:
case '2': /* Change folders */
cmd = 0; /* Go back to root menu */
break; /* don't continue */
if (useadsi)
adsi_folders(chan, 0, "Change to folder...");
cmd = get_folder2(chan, "vm-changeto", 0);
add the same lines to case 3 and 4..
Did that help?
</pre>
</blockquote>
</body>
</html>