<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">was this completed? Here are a few
suggestions.<br>
1) the voicemail_say_phone_number macro needs a sound file for
anonymous<br>
2) <span class="hl_starttag"><span class="hl_string">ivr/ivr-this_is_a_call_from.wav
should probably replaced with voicemail/vm-from.wav</span></span><br>
3) we should move the playing of this macro a little further down
(after playing the message number) after the "play_file:" label<br>
if there is anything I can help testing or creating a patch,
please let me know.<br>
Thanks<br>
<br>
On 2/7/2012 1:28 PM, Michael Collins wrote:<br>
</div>
<blockquote
cite="mid:CAKzWOxVRWOS+7JGeEJfJjcKq9M+OV1FuL5SPA8iHZ7G+THX+Mw@mail.gmail.com"
type="cite">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="gmail_quote">On Tue, Feb 7, 2012 at 8:11 AM, Michael
Collins <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;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="HOEnZb">
<div class="h5"><br>
<br>
<div class="gmail_quote">On Tue, Feb 7, 2012 at 2:22 AM,
Yuriy Nasida <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:nasida@live.ru"
target="_blank">nasida@live.ru</a>></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
'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>
<hr>From: <a moz-do-not-send="true"
href="mailto:darcy@primrose.ws"
target="_blank">darcy@primrose.ws</a><br>
To: <a moz-do-not-send="true"
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><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> </div>
<div style="background:#f5f5f5">
<div><b>From:</b> <a
moz-do-not-send="true"
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
moz-do-not-send="true"
title="freeswitch-users@lists.freeswitch.org"
href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">'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>
<p><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></p>
<p><span
style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> </p>
<p><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></p>
<p><span
style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> </p>
<p><span
style="font-size:11pt;font-family:'Calibri','sans-serif'">Please
advise.</span></p>
<p><span
style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> </p>
<p><span
style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> </p>
<p><span
style="font-size:11pt;font-family:'Calibri','sans-serif'">John
Boteler</span></p>
<p><span
style="font-size:11pt;font-family:'Calibri','sans-serif'">Bote
Communications</span></p>
<p><span
style="font-size:11pt;font-family:'Calibri','sans-serif'">in
rainy Fort Lauderdale, FL</span></p>
<p><span
style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> </p>
<p><span
style="font-size:11pt;font-family:'Calibri','sans-serif'"></span> </p>
<p><span
style="font-size:11pt;font-family:'Calibri','sans-serif'"></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:'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><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></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'"> </span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'"><extension
name="vmain"></span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'">
<condition
field="destination_number"
expression="^\*98$"></span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'">
<action
application="answer"/></span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'">
<action
application="set"
data="vm_announce_cid=ivr/ivr-this_is_a_call_from.wav"/>
</span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'">
<action
application="sleep"
data="1000"/></span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'">
<action
application="voicemail"
data="check default
${domain_name}
${sip_from_user}"/></span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'">
</condition></span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'">
</extension></span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'"> </span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'">Darcy</span></p>
</div>
<div>
<div>
<div>
<p><span
style="font-size:10pt;font-family:'Tahoma','sans-serif'"> </span></p>
</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>
<p><span
style="font-family:'Calibri','sans-serif'">On
Mon, Feb 6, 2012 at
3:22 PM, John <<a
moz-do-not-send="true"
href="mailto:freeswitch@earthspike.net" target="_blank">freeswitch@earthspike.net</a>>
wrote:</span></p>
<div>
<p><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></p>
<p><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></p>
<div>
<p><span
style="font-family:'Calibri','sans-serif'"><br>
<br>
On 06/02/12 22:00,
Michael Collins
wrote: </span></p>
<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>
<p><span
style="font-family:'Calibri','sans-serif'">2012/2/6
Yuriy Nasida
<<a
moz-do-not-send="true"
href="mailto:nasida@live.ru" target="_blank">nasida@live.ru</a>></span></p>
<div>
<div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'">Hello
list,</span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'"> </span></p>
</div>
<div>
<p><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></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'"> </span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'">Please
advise.</span></p>
</div>
<div>
<p><span
style="font-family:'Calibri','sans-serif'">Thanks.</span></p>
</div>
</div>
</div>
<p><span
style="font-family:'Calibri','sans-serif'"></span> </p>
</div>
</div>
</div>
</div>
<p><span
style="font-family:'Calibri','sans-serif'"></span> </p>
</div>
</div>
</div>
</div>
</div>
<br>
<hr>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting
Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org"
target="_blank">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com"
target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel
Communication Server<br>
<a moz-do-not-send="true"
href="http://www.cudatel.com"
target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org"
target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
</div>
</div>
</div>
<br>
_________________________________________________________________________
Professional
FreeSWITCH Consulting Services:
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org"
target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com"
target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel
Communication Server
<a moz-do-not-send="true"
href="http://www.cudatel.com"
target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org"
target="_blank">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true"
href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:consulting@freeswitch.org"
target="_blank">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com"
target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication
Server<br>
<a moz-do-not-send="true"
href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>