[Freeswitch-users] mod_voicemail.c file change

Archana Venugopan a.venugopan at mundio.com
Thu Nov 22 14:52:31 MSK 2012


Hi,

Currently while dialling voicemail from mod_voicemail.c file it picks up the name recorded in system greetings and says like

'<Name> person you are trying to reach is currently not available.Record you message after the tone press any key or stop talking to end the recording'

I require something like this
'You have reached the mailbox of <Name> Record you message after the tone press any key or stop talking to end the recording'.

I knew I have to change in mod_voicemail.c file. But since am not familiar with C code not sure how to get this.

if (!skip_greeting) {
                memset(buf, 0, sizeof(buf));
                args.input_callback = cancel_on_dtmf;
                args.buf = buf;
                args.buflen = sizeof(buf);

                switch_ivr_sleep(session, 100, SWITCH_TRUE, NULL);

                if (switch_file_exists(greet_path, switch_core_session_get_pool(session)) == SWITCH_STATUS_SUCCESS) {
                        memset(buf, 0, sizeof(buf));
                        TRY_CODE(switch_ivr_play_file(session, NULL, greet_path, &args));
                } else {
                        if (switch_file_exists(cbt.name_path, switch_core_session_get_pool(session)) == SWITCH_STATUS_SUCCESS) {
                                memset(buf, 0, sizeof(buf));
                                TRY_CODE(switch_ivr_play_file(session, NULL, cbt.name_path, &args));
                        }
                        if (*buf == '\0') {
                                if (!read_id) {
                                        if (!(read_id = switch_channel_get_variable(channel, "voicemail_alternate_greet_id"))) {
                                                read_id = id;
                                        }
                                }
                                memset(buf, 0, sizeof(buf));
                                TRY_CODE(switch_ivr_phrase_macro(session, VM_PLAY_GREETING_MACRO, read_id, NULL, &args));
                        }

Can anyone please help me out. Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121122/c805e9cf/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list