<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<div><div>Thank you guys!&nbsp;</div><div><br></div><div>It works. The example with 'vm_announce_cid=ivr/ivr-this_is_a_call_from.wav' is more correct. Otherwise FS tries to play message true.wav :)</div><div>So, voicemail module doesn't use macro "voicemail_say_phone_number" and as far as I see the source code of mod_voicemail.c explains this behaviour.&nbsp;</div><div>Yes, ability for playing of some wav file if I will have vm from annonymous would be very useful.&nbsp;</div><div>Probably I can &nbsp;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 id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: darcy@primrose.ws<br>To: freeswitch-users@lists.freeswitch.org<br>Date: Mon, 6 Feb 2012 23:27:23 -0500<br>Subject: Re: [Freeswitch-users] voicemail_say_phone_number<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">


<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass tt
{font-family:"Courier New";}
.ExternalClass span.ecxEmailStyle19
{font-family:"Calibri","sans-serif";color:black;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

</style>


<div dir="ltr">
<div style="font-family:'Calibri';color:#000000;font-size:12pt">
<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>&nbsp;</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, "vm_announce_cid"))) {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
switch_ivr_play_file(session, NULL, vm_announce_cid, NULL);</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
switch_ivr_sleep(session, 500, SWITCH_TRUE, NULL);</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
switch_ivr_say(session, cbt-&gt;cid_number, NULL, "name_spelled", "pronounced", 
NULL, NULL);</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>Which indicates you will play the file in variable 
“vm_announce_cid”.&nbsp;&nbsp; </div>
<div>&nbsp;</div>
<div>Darcy</div>
<div>In Sunny Ottawa Canada</div>
<div style="font-style:normal;display:inline;font-family:'Calibri';color:#000000;font-size:small;font-weight:normal;text-decoration:none">
<div style="font:10pt tahoma">
<div><font size="3" face="Calibri"></font>&nbsp;</div>
<div style="background:#f5f5f5">
<div style="font-color:black"><b>From:</b> <a title="bote_radio@botecomm.com" href="mailto:bote_radio@botecomm.com">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">'FreeSWITCH Users Help'</a> 
</div>
<div><b>Subject:</b> Re: [Freeswitch-users] 
voicemail_say_phone_number</div></div></div>
<div>&nbsp;</div></div>
<div style="font-style:normal;display:inline;font-family:'Calibri';color:#000000;font-size:small;font-weight:normal;text-decoration:none">
<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt">Well, 
now I'm cornfused. The original example by John used vm_announce_cid as a 
Boolean switch. But you've tested it as a string that points to the desired 
sound file?</span></p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt"></span>&nbsp;</p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt">I 
have no means to test this nor access to sources right now and I just added 
John's example to the wiki. I should back it out or correct it based on your 
results.</span></p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt"></span>&nbsp;</p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt">Please 
advise.</span></p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt"></span>&nbsp;</p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt"></span>&nbsp;</p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt">John 
Boteler</span></p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt">Bote 
Communications</span></p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt">in 
rainy Fort Lauderdale, FL</span></p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt"></span>&nbsp;</p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt"></span>&nbsp;</p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black;font-size:11pt"></span>&nbsp;</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 class="ecxMsoNormal"><b><span style="font-family:'Tahoma','sans-serif';font-size:10pt">From:</span></b><span style="font-family:'Tahoma','sans-serif';font-size:10pt"> 
Darcy<br><b>Sent:</b> Monday, 06 February, 2012 
22:02<br><br></span></p>
<div>
<div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">The 
message,&nbsp;&nbsp; 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.&nbsp;&nbsp; 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 class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&nbsp;</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&lt;extension 
name="vmain"&gt;</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;condition field="destination_number" 
expression="^\*98$"&gt;</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;action application="answer"/&gt;</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;action application="set" 
data="vm_announce_cid=ivr/ivr-this_is_a_call_from.wav"/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;action application="sleep" data="1000"/&gt;</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;action application="voicemail" data="check default ${domain_name} 
${sip_from_user}"/&gt;</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/condition&gt;</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&nbsp;&nbsp;&nbsp; 
&lt;/extension&gt;</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&nbsp;</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">Darcy</span></p></div>
<div>
<div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Tahoma','sans-serif';color:black;font-size:10pt">&nbsp;</span></p></div></div></div>
<div>
<p style="margin-bottom:12pt" class="ecxMsoNormal"><b><span style="font-family:'Tahoma','sans-serif';color:black;font-size:10pt">…</span></b><span style="font-family:'Calibri','sans-serif';color:black"><br><br></span></p>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">On Mon, Feb 6, 2012 at 
3:22 PM, John &lt;<a href="mailto:freeswitch@earthspike.net">freeswitch@earthspike.net</a>&gt; 
wrote:</span></p>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">Michael,<br><br>It 
does work, but it's a bit 'rough': all it does it speak the number just before 
the date.&nbsp; So I can understand why it was not documented...<br></span><span style="font-family:'Calibri','sans-serif';color:black">…</span></p>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">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="color:black;font-size:10pt">&nbsp;&nbsp;&nbsp; &lt;!-- voicemail main 
extension --&gt;</span></tt><span style="font-family:'Courier New';color:black;font-size:10pt"><br><tt>&nbsp;&nbsp;&nbsp; 
&lt;extension name="vmain"&gt;</tt><br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;condition field="destination_number" 
expression="^vmain$|^4000$|^\*98$"&gt;</tt><br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;action 
application="answer"/&gt;</tt><br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;action application="sleep" 
data="1000"/&gt;</tt><br><tt>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action 
application="set" data="vm_announce_cid=true" 
/&gt;</tt><br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action 
application="voicemail" data="check default 
${domain_name}"/&gt;</tt><br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/condition&gt;</tt><br><tt>&nbsp;&nbsp;&nbsp; 
&lt;/extension&gt;</tt></span><span style="font-family:'Calibri','sans-serif';color:black"></span></p>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black"><br><br>On 06/02/12 
22:00, Michael Collins wrote: </span></p>
<p style="margin-bottom:12pt" class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">Yuriy,<br><br></span><span style="font-family:'Calibri','sans-serif';color:black">…</span><span style="font-family:'Calibri','sans-serif';color:black">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 class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">2012/2/6 Yuriy Nasida 
&lt;<a href="mailto:nasida@live.ru">nasida@live.ru</a>&gt;</span></p>
<div>
<div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">Hello 
list,</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&nbsp;</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">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 
"voicemail_say_phone_number" in conf/lang/en/vm/sounds.xml. But... when FS uses 
it ?&nbsp; Can I get it without modifying of source code of voicemail module 
?</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">&nbsp;</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">Please 
advise.</span></p></div>
<div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black">Thanks.</span></p></div></div></div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black"></span>&nbsp;</p></div></div></div></div>
<p class="ecxMsoNormal"><span style="font-family:'Calibri','sans-serif';color:black"></span>&nbsp;</p></div></div></div></div></div>

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

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org</div>                                               </div></body>
</html>