Yeah, this was my bad. I started on this and got interrupted, then came back like an hour later and totally forgot about the fact that of mod_voicemail.c not using the macro. I think today I can do a quick test on that and if it works I&#39;ll commit it to git master and then you all can test it.<br>
<br>Thanks,<br>MC<br><br><div class="gmail_quote">On Tue, Feb 7, 2012 at 2:22 AM, Yuriy Nasida <span dir="ltr">&lt;<a href="mailto:nasida@live.ru">nasida@live.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">
<div><div>Thank you guys! </div><div><br></div><div>It works. The example with &#39;vm_announce_cid=ivr/ivr-this_is_a_call_from.wav&#39; is more correct. Otherwise FS tries to play message true.wav :)</div><div>So, voicemail module doesn&#39;t use macro &quot;voicemail_say_phone_number&quot; and as far as I see the source code of mod_voicemail.c explains this behaviour. </div>
<div>Yes, ability for playing of some wav file if I will have vm from annonymous would be very useful. </div><div>Probably I can  add it independently but I believe that your modifying will more correctly :)</div><div>Darcy please let me know if you plan to add this feature in the near future.</div>
<div><br></div><div>Anyway thanks again!</div></div><br><div><div></div><hr>From: <a href="mailto:darcy@primrose.ws" target="_blank">darcy@primrose.ws</a><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
Date: Mon, 6 Feb 2012 23:27:23 -0500<br>Subject: Re: [Freeswitch-users] voicemail_say_phone_number<div><div class="h5"><br><br>







<div dir="ltr">
<div style="font-size:12pt;font-family:&#39;Calibri&#39;">
<div>If John’s works, use it, I could not make it work but the example I show 
below played the greeting before the clid, I have not added anything to play an 
annonymous greeting yet as I have not had time.</div>
<div> </div>
<div>in mod_voicemail.c you have the following code:</div>
<div>if (!zstr(cbt-&gt;cid_number) &amp;&amp; (vm_announce_cid = 
switch_channel_get_variable(channel, &quot;vm_announce_cid&quot;))) {</div>
<div>            
switch_ivr_play_file(session, NULL, vm_announce_cid, NULL);</div>
<div>            
switch_ivr_sleep(session, 500, SWITCH_TRUE, NULL);</div>
<div>            
switch_ivr_say(session, cbt-&gt;cid_number, NULL, &quot;name_spelled&quot;, &quot;pronounced&quot;, 
NULL, NULL);</div>
<div>        }</div>
<div>Which indicates you will play the file in variable 
“vm_announce_cid”.   </div>
<div> </div>
<div>Darcy</div>
<div>In Sunny Ottawa Canada</div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:&#39;Calibri&#39;;display:inline;font-weight:normal">
<div style="font:10pt tahoma">
<div><font face="Calibri" size="3"></font> </div>
<div style="background:#f5f5f5">
<div><b>From:</b> <a title="bote_radio@botecomm.com" href="mailto:bote_radio@botecomm.com" target="_blank">Bote Man</a> </div>
<div><b>Sent:</b> Monday, February 06, 2012 11:14 PM</div>
<div><b>To:</b> <a title="freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">&#39;FreeSWITCH Users Help&#39;</a> 
</div>
<div><b>Subject:</b> Re: [Freeswitch-users] 
voicemail_say_phone_number</div></div></div>
<div> </div></div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:&#39;Calibri&#39;;display:inline;font-weight:normal">
<div>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">Well, 
now I&#39;m cornfused. The original example by John used vm_announce_cid as a 
Boolean switch. But you&#39;ve tested it as a string that points to the desired 
sound file?</span></p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"></span> </p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">I 
have no means to test this nor access to sources right now and I just added 
John&#39;s example to the wiki. I should back it out or correct it based on your 
results.</span></p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"></span> </p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">Please 
advise.</span></p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"></span> </p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"></span> </p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">John 
Boteler</span></p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">Bote 
Communications</span></p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">in 
rainy Fort Lauderdale, FL</span></p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"></span> </p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"></span> </p>
<p><span style="font-size:11pt;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"></span> </p>
<div style="border-bottom:medium none;border-left:blue 1.5pt solid;padding-bottom:0in;padding-left:4pt;padding-right:0in;border-top:medium none;border-right:medium none;padding-top:0in">
<p><b><span style="font-family:&#39;Tahoma&#39;,&#39;sans-serif&#39;;font-size:10pt">From:</span></b><span style="font-family:&#39;Tahoma&#39;,&#39;sans-serif&#39;;font-size:10pt"> 
Darcy<br><b>Sent:</b> Monday, 06 February, 2012 
22:02<br><br></span></p>
<div>
<div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">The 
message,   this_is_a_call_from actually has to be set in the dialplan 
it appears, the fs plays the file set in vm_announce_cid, a simple dial plan 
below reflects one way of doing this, tested and it works.   Needs 
more time to suit the total requirements, but this makes it a little more 
professional by adding the message in front of the 
number.</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"> </span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">&lt;extension 
name=&quot;vmain&quot;&gt;</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">       
&lt;condition field=&quot;destination_number&quot; 
expression=&quot;^\*98$&quot;&gt;</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">             
&lt;action application=&quot;answer&quot;/&gt;</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">             
&lt;action application=&quot;set&quot; 
data=&quot;vm_announce_cid=ivr/ivr-this_is_a_call_from.wav&quot;/&gt;             
</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">             
&lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">             
&lt;action application=&quot;voicemail&quot; data=&quot;check default ${domain_name} 
${sip_from_user}&quot;/&gt;</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">       
&lt;/condition&gt;</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">    
&lt;/extension&gt;</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"> </span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">Darcy</span></p></div>
<div>
<div>
<div>
<p><span style="font-size:10pt;font-family:&#39;Tahoma&#39;,&#39;sans-serif&#39;"> </span></p></div></div></div>
<div>
<p style="margin-bottom:12pt"><b><span style="font-size:10pt;font-family:&#39;Tahoma&#39;,&#39;sans-serif&#39;">…</span></b><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"><br><br></span></p>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">On Mon, Feb 6, 2012 at 
3:22 PM, John &lt;<a href="mailto:freeswitch@earthspike.net" target="_blank">freeswitch@earthspike.net</a>&gt; 
wrote:</span></p>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">Michael,<br><br>It 
does work, but it&#39;s a bit &#39;rough&#39;: all it does it speak the number just before 
the date.  So I can understand why it was not documented...<br></span><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">…</span></p>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">John<br><br>PS. For 
those who want to know where to insert this, put the line marked with + into 
your conf/dialplan/default.xml file:<br><br></span><tt><span style="font-size:10pt">    &lt;!-- voicemail main 
extension --&gt;</span></tt><span style="font-size:10pt;font-family:&#39;Courier New&#39;"><br><tt>    
&lt;extension name=&quot;vmain&quot;&gt;</tt><br><tt>      
&lt;condition field=&quot;destination_number&quot; 
expression=&quot;^vmain$|^4000$|^\*98$&quot;&gt;</tt><br><tt>        
&lt;action 
application=&quot;answer&quot;/&gt;</tt><br><tt>        
&lt;action application=&quot;sleep&quot; 
data=&quot;1000&quot;/&gt;</tt><br><tt>+       &lt;action 
application=&quot;set&quot; data=&quot;vm_announce_cid=true&quot; 
/&gt;</tt><br><tt>        &lt;action 
application=&quot;voicemail&quot; data=&quot;check default 
${domain_name}&quot;/&gt;</tt><br><tt>      
&lt;/condition&gt;</tt><br><tt>    
&lt;/extension&gt;</tt></span><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"></span></p>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"><br><br>On 06/02/12 
22:00, Michael Collins wrote: </span></p>
<p style="margin-bottom:12pt"><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">Yuriy,<br><br></span><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">…</span><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">Please set 
vm_announce_cid to true prior to checking voicemail and see if it works. If it 
does, please let me know. If you can add it to the wiki then do so, otherwise 
one of our intrepid community members will do 
it.<br><br>-MC</span></p>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">2012/2/6 Yuriy Nasida 
&lt;<a href="mailto:nasida@live.ru" target="_blank">nasida@live.ru</a>&gt;</span></p>
<div>
<div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">Hello 
list,</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"> </span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">I would like to have 
one simple ability to listen the phone number of caller when I check my 
voicemail. At present I listen date of message only. I have found the macro 
&quot;voicemail_say_phone_number&quot; in conf/lang/en/vm/sounds.xml. But... when FS uses 
it ?  Can I get it without modifying of source code of voicemail module 
?</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"> </span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">Please 
advise.</span></p></div>
<div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;">Thanks.</span></p></div></div></div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"></span> </p></div></div></div></div>
<p><span style="font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;"></span> </p></div></div></div></div></div>

<br><hr>
_________________________________________________________________________<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:<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>
</div></div></div>
<br>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></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>