Leave the C code, you don&#39;t need to know or change anything in there.<div><br></div><div>The voicemail_play_greeting macro is a configuration option.</div><div><br></div><div>Look in your configuration at lang/en/vm/sounds.xml, the macro is defined in there as a combination of play-file and say to produce the message that&#39;s heard.</div>

<div><br></div><div>Changing that macro will change what&#39;s heard.</div><div><br></div><div>-Steve</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On 23 November 2012 09:08, Archana Venugopan <span dir="ltr">&lt;<a href="mailto:a.venugopan@mundio.com" target="_blank">a.venugopan@mundio.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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 &lt;Name&gt; instead of Name reading at first.<span style="color:#1f497d"><u></u><u></u></span></p>


<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="color:#1f497d">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Archana</span><span style="font-size:10.0pt;color:#1f497d"><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>]
<b>On Behalf Of </b>Dorn DJBinter<br>
<b>Sent:</b> 22 November 2012 18:10<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] mod_voicemail.c file change<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Look at voicemail_play_greeting macro.<br>
<br>
Sent from my iPad<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Nov 22, 2012, at 5:18 AM, Archana Venugopan &lt;<a href="mailto:a.venugopan@mundio.com" target="_blank">a.venugopan@mundio.com</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></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<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">‘&lt;Name&gt; 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’<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I require something like this<u></u><u></u></p>
<p class="MsoNormal">‘You have reached the mailbox of &lt;Name&gt; Record you message after the tone press any key or stop talking to end the recording’.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></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.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">if (!skip_greeting) {<u></u><u></u></p>
<p class="MsoNormal">                memset(buf, 0, sizeof(buf));<u></u><u></u></p>
<p class="MsoNormal">                args.input_callback = cancel_on_dtmf;<u></u><u></u></p>
<p class="MsoNormal">                args.buf = buf;<u></u><u></u></p>
<p class="MsoNormal">                args.buflen = sizeof(buf);<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">                switch_ivr_sleep(session, 100, SWITCH_TRUE, NULL);<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">                if (switch_file_exists(greet_path, switch_core_session_get_pool(session)) == SWITCH_STATUS_SUCCESS) {<u></u><u></u></p>
<p class="MsoNormal">                        memset(buf, 0, sizeof(buf));<u></u><u></u></p>
<p class="MsoNormal">                        TRY_CODE(switch_ivr_play_file(session, NULL, greet_path, &amp;args));<u></u><u></u></p>
<p class="MsoNormal">                } else {<u></u><u></u></p>
<p class="MsoNormal">                        if (switch_file_exists(cbt.name_path, switch_core_session_get_pool(session)) == SWITCH_STATUS_SUCCESS) {<u></u><u></u></p>
<p class="MsoNormal">                                memset(buf, 0, sizeof(buf));<u></u><u></u></p>
<p class="MsoNormal">                                TRY_CODE(switch_ivr_play_file(session, NULL, cbt.name_path, &amp;args));<u></u><u></u></p>
<p class="MsoNormal">                        }<u></u><u></u></p>
<p class="MsoNormal">                        if (*buf == &#39;\0&#39;) {<u></u><u></u></p>
<p class="MsoNormal">                                if (!read_id) {<u></u><u></u></p>
<p class="MsoNormal">                                        if (!(read_id = switch_channel_get_variable(channel, &quot;voicemail_alternate_greet_id&quot;))) {<u></u><u></u></p>
<p class="MsoNormal">                                                read_id = id;<u></u><u></u></p>
<p class="MsoNormal">                                        }<u></u><u></u></p>
<p class="MsoNormal">                                }<u></u><u></u></p>
<p class="MsoNormal">                                memset(buf, 0, sizeof(buf));<u></u><u></u></p>
<p class="MsoNormal">                                TRY_CODE(switch_ivr_phrase_macro(session, VM_PLAY_GREETING_MACRO, read_id, NULL, &amp;args));<u></u><u></u></p>
<p class="MsoNormal">                        }<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Can anyone please help me out. Thanks<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><u></u><u></u></span></p>
</div>
</blockquote>
</div></div></div>
</div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>