<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Currently while dialling voicemail from mod_voicemail.c file it picks up the name recorded in system greetings and says like<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">‘<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’<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I require something like this<o:p></o:p></p>
<p class="MsoNormal">‘You have reached the mailbox of <Name> Record you message after the tone press any key or stop talking to end the recording’.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">if (!skip_greeting) {<o:p></o:p></p>
<p class="MsoNormal"> memset(buf, 0, sizeof(buf));<o:p></o:p></p>
<p class="MsoNormal"> args.input_callback = cancel_on_dtmf;<o:p></o:p></p>
<p class="MsoNormal"> args.buf = buf;<o:p></o:p></p>
<p class="MsoNormal"> args.buflen = sizeof(buf);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> switch_ivr_sleep(session, 100, SWITCH_TRUE, NULL);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> if (switch_file_exists(greet_path, switch_core_session_get_pool(session)) == SWITCH_STATUS_SUCCESS) {<o:p></o:p></p>
<p class="MsoNormal"> memset(buf, 0, sizeof(buf));<o:p></o:p></p>
<p class="MsoNormal"> TRY_CODE(switch_ivr_play_file(session, NULL, greet_path, &args));<o:p></o:p></p>
<p class="MsoNormal"> } else {<o:p></o:p></p>
<p class="MsoNormal"> if (switch_file_exists(cbt.name_path, switch_core_session_get_pool(session)) == SWITCH_STATUS_SUCCESS) {<o:p></o:p></p>
<p class="MsoNormal"> memset(buf, 0, sizeof(buf));<o:p></o:p></p>
<p class="MsoNormal"> TRY_CODE(switch_ivr_play_file(session, NULL, cbt.name_path, &args));<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"> if (*buf == '\0') {<o:p></o:p></p>
<p class="MsoNormal"> if (!read_id) {<o:p></o:p></p>
<p class="MsoNormal"> if (!(read_id = switch_channel_get_variable(channel, "voicemail_alternate_greet_id"))) {<o:p></o:p></p>
<p class="MsoNormal"> read_id = id;<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"> memset(buf, 0, sizeof(buf));<o:p></o:p></p>
<p class="MsoNormal"> TRY_CODE(switch_ivr_phrase_macro(session, VM_PLAY_GREETING_MACRO, read_id, NULL, &args));<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can anyone please help me out. Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>