<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><font face="Calibri, sans-serif"><div>Michael,</div><div><br></div><div>I have tried voicemail with latest git. Looks good, macro works now, thank you. But I see many WARNING messages in fs_cli when i try to check or leave voicemail. Not sure why. It appear when I don't use vm_announce_cid as well.</div><div><br></div><div>'2012-02-11 00:49:20.169712 [WARNING] switch_xml.c:2329 Invalid UTF-8 character to ampersand, skip it'</div><div><br></div><div>Thanks.</div></font><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Tue, 7 Feb 2012 10:28:22 -0800<br>From: msc@freeswitch.org<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: Re: [Freeswitch-users] voicemail_say_phone_number<br><br>Okay, try latest git. I changed mod_voicemail to use the macro and I set vm_announce_cid to be true/false instead of using a file name. Try it with various caller ID number values and let us know how it goes.<br><br>-MC<br>
<br><div class="ecxgmail_quote">On Tue, Feb 7, 2012 at 8:11 AM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">
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'll commit it to git master and then you all can test it.<br>
<br>Thanks,<br>MC<div class="ecxHOEnZb"><div class="h5"><br><br><div class="ecxgmail_quote">On Tue, Feb 7, 2012 at 2:22 AM, Yuriy Nasida <span dir="ltr"><<a href="mailto:nasida@live.ru">nasida@live.ru</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="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 '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. </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">darcy@primrose.ws</a><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">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><br><br>
<div dir="ltr">
<div style="font-size:12pt;font-family:'Calibri'">
<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->cid_number) && (vm_announce_cid =
switch_channel_get_variable(channel, "vm_announce_cid"))) {</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->cid_number, NULL, "name_spelled", "pronounced",
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:'Calibri';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">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> </div></div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'">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><BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> <BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'">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><BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> <BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'">Please
advise.</span><BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> <BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> <BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'">John
Boteler</span><BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'">Bote
Communications</span><BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'">in
rainy Fort Lauderdale, FL</span><BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> <BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> <BR>
<span style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> <BR>
<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">
<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><BR>
<div>
<div>
<div>
<span style="font-family:'Calibri','sans-serif'">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><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'"> </span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'"><extension
name="vmain"></span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'">
<condition field="destination_number"
expression="^\*98$"></span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'">
<action application="answer"/></span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'">
<action application="set"
data="vm_announce_cid=ivr/ivr-this_is_a_call_from.wav"/>
</span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'">
<action application="sleep" data="1000"/></span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'">
<action application="voicemail" data="check default ${domain_name}
${sip_from_user}"/></span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'">
</condition></span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'">
</extension></span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'"> </span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'">Darcy</span><BR></div>
<div>
<div>
<div>
<span style="font-size:10pt;font-family:'Tahoma','sans-serif'"> </span><BR></div></div></div>
<div>
<p style="margin-bottom:12pt"><b><span style="font-size:10pt;font-family:'Tahoma','sans-serif'">…</span></b><span style="font-family:'Calibri','sans-serif'"><br><br></span></p>
<div>
<span style="font-family:'Calibri','sans-serif'">On Mon, Feb 6, 2012 at
3:22 PM, John <<a href="mailto:freeswitch@earthspike.net">freeswitch@earthspike.net</a>>
wrote:</span><BR>
<div>
<span style="font-family:'Calibri','sans-serif'">Michael,<br><br>It
does work, but it's a bit 'rough': 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:'Calibri','sans-serif'">…</span><BR>
<span style="font-family:'Calibri','sans-serif'">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"> <!-- voicemail main
extension --></span></tt><span style="font-size:10pt;font-family:'Courier New'"><br><tt>
<extension name="vmain"></tt><br><tt>
<condition field="destination_number"
expression="^vmain$|^4000$|^\*98$"></tt><br><tt>
<action
application="answer"/></tt><br><tt>
<action application="sleep"
data="1000"/></tt><br><tt>+ <action
application="set" data="vm_announce_cid=true"
/></tt><br><tt> <action
application="voicemail" data="check default
${domain_name}"/></tt><br><tt>
</condition></tt><br><tt>
</extension></tt></span><span style="font-family:'Calibri','sans-serif'"></span><BR>
<div>
<span style="font-family:'Calibri','sans-serif'"><br><br>On 06/02/12
22:00, Michael Collins wrote: </span><BR>
<p style="margin-bottom:12pt"><span style="font-family:'Calibri','sans-serif'">Yuriy,<br><br></span><span style="font-family:'Calibri','sans-serif'">…</span><span style="font-family:'Calibri','sans-serif'">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>
<span style="font-family:'Calibri','sans-serif'">2012/2/6 Yuriy Nasida
<<a href="mailto:nasida@live.ru">nasida@live.ru</a>></span><BR>
<div>
<div>
<div>
<span style="font-family:'Calibri','sans-serif'">Hello
list,</span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'"> </span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'">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 ? Can I get it without modifying of source code of voicemail module
?</span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'"> </span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'">Please
advise.</span><BR></div>
<div>
<span style="font-family:'Calibri','sans-serif'">Thanks.</span><BR></div></div></div>
<span style="font-family:'Calibri','sans-serif'"></span> <BR></div></div></div></div>
<span style="font-family:'Calibri','sans-serif'"></span> <BR></div></div></div></div></div>
<br><hr>
_________________________________________________________________________<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>
</div></div></div>
<br>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org">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">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>
</div></div></blockquote></div><br>
<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>                                            </div></body>
</html>