<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>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.</DIV>
<DIV> </DIV>
<DIV><extension name="vmain"></DIV>
<DIV> <condition
field="destination_number" expression="^\*98$"></DIV>
<DIV>
<action application="answer"/></DIV>
<DIV>
<action application="set"
data="vm_announce_cid=ivr/ivr-this_is_a_call_from.wav"/>
</DIV>
<DIV>
<action application="sleep" data="1000"/></DIV>
<DIV>
<action application="voicemail" data="check default ${domain_name}
${sip_from_user}"/></DIV>
<DIV> </condition></DIV>
<DIV> </extension></DIV>
<DIV> </DIV>
<DIV>Darcy</DIV>
<DIV> </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> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=msc@freeswitch.org
href="mailto:msc@freeswitch.org">Michael Collins</A> </DIV>
<DIV><B>Sent:</B> Monday, February 06, 2012 8:03 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-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">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
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV text="#000000" bgcolor="#FFFFFF">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
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV>
<DIV dir=ltr>
<DIV>Hello list,</DIV>
<DIV> </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> </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>
<P>
<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></BODY></HTML>