[Freeswitch-users] mod_voicemail.c file change
Archana Venugopan
a.venugopan at mundio.com
Fri Nov 23 12:08:05 MSK 2012
Hi,
Yes currently that plays 'person you are trying to reach is currently not available'. But I require this sentence first 'You have reached the mailbox of' followed by <Name> instead of Name reading at first.
Regards,
Archana
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Dorn DJBinter
Sent: 22 November 2012 18:10
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] mod_voicemail.c file change
Look at voicemail_play_greeting macro.
Sent from my iPad
On Nov 22, 2012, at 5:18 AM, Archana Venugopan <a.venugopan at mundio.com<mailto:a.venugopan at mundio.com>> wrote:
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
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<http://lists.freeswitch.org/mailman/options/freeswitch-users>
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121123/5b116742/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list