Modification of app_voicemail.c

HI dear asterisk users,

sorry i am not very good at c coding, not know the system very well.

i made the following modification to my app_voicemail.c.

purpose is to disable the “record busy message” input 2.

however it is still there, i want some help at this point? why is it still there when modifying this .c file? is it asking for further compiling ? or more steps?

[quote]case ‘2’: /* Record your busy message */
cmd = 0; i add this two line
break;
snprintf(prefile, sizeof(prefile), “%s%s/%s/busy”, VM_SPOOL_DIR, vmu->context, vms->username);
cmd = play_record_review(chan, “vm-rec-busy”, prefile, maxgreet, fmtc, 0, vmu, &duration, NULL, NULL, record_gain, vms, NULL, NULL);
break;[/quote]

i do it refer to the following:

[quote]Modifications
Q: How can I disable dtmf-input 2,3,4 if I only want the menu behind option 1 available ?

A: (June 2010) 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);[/quote]

[quote=“jeremywang”]HI dear asterisk users,

sorry i am not very good at c coding, not know the system very well.

i made the following modification to my app_voicemail.c.

purpose is to disable the “record busy message” input 2. after add two line means skip it

however it is still there, i want some help at this point? why is it still there when modifying this .c file? is it asking for further compiling ? or more steps?

[quote]case ‘2’: /* Record your busy message */
cmd = 0; i add this two line
break;
snprintf(prefile, sizeof(prefile), “%s%s/%s/busy”, VM_SPOOL_DIR, vmu->context, vms->username);
cmd = play_record_review(chan, “vm-rec-busy”, prefile, maxgreet, fmtc, 0, vmu, &duration, NULL, NULL, record_gain, vms, NULL, NULL);
break;[/quote]

i do it refer to the following:

[quote]Modifications
Q: How can I disable dtmf-input 2,3,4 if I only want the menu behind option 1 available ?

A: (June 2010) 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);[/quote][/quote]

How did you install Asterisk in the first place?

You need to run:

./configure
make menuconfig (and adjust the settings to match your current system)
make
make install

all as root

If this is the source tree from which you originally built the system, and you haven’t cleaned it up senice, you won’t need the configure and make menuconfig steps.

You will need the development tool chain and development versions of libraries used.

thx david first

sorry i didn’t quite get what yo mean.

is there any steps i can make to custom this voicemail manu?

The nearest to an end user method would be to replace the relevant asterisk/sounds files.

there can i find the sound file? for replacement

asteriskdocs.org/en/2nd_Edit … CT-12.html

Obtained by googling “asterisk sounds directory”.