[Freeswitch-users] mod_voicemail.c file change
Dorn DJBinter
djbinter at gmail.com
Thu Nov 22 21:10:16 MSK 2012
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>
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
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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE: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/20121122/a4423f57/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list