John,<br><br>This actually makes sense, so I'm adding a new prompt to my 'to be ordered' list. We can make a new phrase macro that handles all the 000/anon handling. Anyway, when the new prompts arrive in a week or two I will test out a new phrase macro and then have you try it for your installation. <br>
<br>BTW, if you are feeling ambitious you can modify your say number phrase macro to include a little pause and an existing sound file. I was thinking you could use ivr-this_is_a_call_from.wav. Try this macro in place of the existing one:<br>
<br><font style="font-family:courier new,monospace" size="1"> <macro name="voicemail_say_phone_number"><br> <input pattern="^000|^$|^[Aa]non|^[Pp]rivate" break_on_match="true"><br>
<match><br> <!-- add 'anonymous caller' sound here --><br> </match><br> </input><br> <input pattern="^(.*)$"><br> <match><br> <action function="play-file" data="ivr/ivr-this_is_a_call_from.wav"/><br>
<action function="execute" data="sleep(100)"/><br> <action function="say" data="$1" method="pronounced" type="name_spelled"/><br> <action function="execute" data="sleep(500)"/><br>
</match><br> </input><br> </macro><br></font><br>Keep in mind that I just made that up and didn't test it, so please do some diagnostics if it doesn't work the first time.<br><br>Thanks,<br>
MC<br><br><br><br><div class="gmail_quote">On Mon, Feb 6, 2012 at 3:22 PM, John <span dir="ltr"><<a href="mailto:freeswitch@earthspike.net">freeswitch@earthspike.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
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>
<br>
I'm just opining here, but I think it needs a 'Call from {caller-id}
at {date/time} {message}' rather than just '{caller-id}{date/time}
{message}'. It also ought to trap for '00000000' and say 'unknown
caller' or such like; not sure if it does that or not. But for me
it's not important enough to spend the time working out the patch to
do all that. As I said, I'm just opining... :)<br>
<br>
John<br>
<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>
<tt> <!-- voicemail main extension --><br>
<extension name="vmain"><br>
<condition field="destination_number"
expression="^vmain$|^4000$|^\*98$"><br>
<action application="answer"/><br>
<action application="sleep" data="1000"/><br>
+ <action application="set" data="vm_announce_cid=true"
/><br>
<action application="voicemail" data="check default
${domain_name}"/><br>
</condition><br>
</extension><br>
</tt><div class="im"><br>
<br>
On 06/02/12 22:00, Michael Collins wrote:
<blockquote type="cite">Yuriy,<br>
<br>
I looked on mod_voicemail.c and it does not appear that this macro
is used anywhere. However, I stumbled across what I believe is the
answer to your question: the vm_announce_cid channel variable. And
guess what? It's *not* on the wiki, so you are totally forgiven
for not reading the documentation. :)<br>
<br>
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<br>
<br>
<div class="gmail_quote">2012/2/6 Yuriy Nasida <span dir="ltr"><<a href="mailto:nasida@live.ru" target="_blank">nasida@live.ru</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="ltr">
<div>Hello list,</div>
<div><br>
</div>
<div>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 ?</div>
<div><br>
</div>
<div>Please advise.</div>
<div>Thanks.</div>
</div>
</div>
<br>
</blockquote>
</div>
</blockquote>
<br>
</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>