On Mon, Jun 7, 2010 at 2:15 PM, Jonas Kellens <[email protected]> wrote:
> 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 ?
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?
--
Best regards,
Glenn Larsen
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users