<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Look at voicemail_play_greeting macro.<br><br>Sent from my iPad</div><div><br>On Nov 22, 2012, at 5:18 AM, Archana Venugopan &lt;<a href="mailto:a.venugopan@mundio.com">a.venugopan@mundio.com</a>&gt; wrote:<br>
<br></div><blockquote type="cite"><div>

<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>


<div class="Section1">
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"> </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</p>
<p class="MsoNormal"> </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’</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I require something like this</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’.</p>
<p class="MsoNormal"> </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.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">if (!skip_greeting) {</p>
<p class="MsoNormal">                memset(buf, 0, sizeof(buf));</p>
<p class="MsoNormal">                args.input_callback = cancel_on_dtmf;</p>
<p class="MsoNormal">                args.buf = buf;</p>
<p class="MsoNormal">                args.buflen = sizeof(buf);</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">                switch_ivr_sleep(session, 100, SWITCH_TRUE, NULL);</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">                if (switch_file_exists(greet_path, switch_core_session_get_pool(session)) == SWITCH_STATUS_SUCCESS) {</p>
<p class="MsoNormal">                        memset(buf, 0, sizeof(buf));</p>
<p class="MsoNormal">                        TRY_CODE(switch_ivr_play_file(session, NULL, greet_path, &amp;args));</p>
<p class="MsoNormal">                } else {</p>
<p class="MsoNormal">                        if (switch_file_exists(cbt.name_path, switch_core_session_get_pool(session)) == SWITCH_STATUS_SUCCESS) {</p>
<p class="MsoNormal">                                memset(buf, 0, sizeof(buf));</p>
<p class="MsoNormal">                                TRY_CODE(switch_ivr_play_file(session, NULL, cbt.name_path, &amp;args));</p>
<p class="MsoNormal">                        }</p>
<p class="MsoNormal">                        if (*buf == &#39;\0&#39;) {</p>
<p class="MsoNormal">                                if (!read_id) {</p>
<p class="MsoNormal">                                        if (!(read_id = switch_channel_get_variable(channel, &quot;voicemail_alternate_greet_id&quot;))) {</p>
<p class="MsoNormal">                                                read_id = id;</p>
<p class="MsoNormal">                                        }</p>
<p class="MsoNormal">                                }</p>
<p class="MsoNormal">                                memset(buf, 0, sizeof(buf));</p>
<p class="MsoNormal">                                TRY_CODE(switch_ivr_phrase_macro(session, VM_PLAY_GREETING_MACRO, read_id, NULL, &amp;args));</p>
<p class="MsoNormal">                        }</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Can anyone please help me out. Thanks</p>
<p class="MsoNormal"> </p>
</div>


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