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.
<action application="set"
data="vm_announce_cid=ivr/ivr-this_is_a_call_from.wav"/>
<action application="voicemail" data="check default ${domain_name}
${sip_from_user}"/>
John,
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.
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:
<macro name="voicemail_say_phone_number">
<input
pattern="^000|^$|^[Aa]non|^[Pp]rivate"
break_on_match="true">
<match>
<!-- add 'anonymous caller' sound here
-->
</match>
</input>
<input pattern="^(.*)$">
<match>
<action
function="play-file"
data="ivr/ivr-this_is_a_call_from.wav"/>
<action function="execute"
data="sleep(100)"/>
<action
function="say" data="$1" method="pronounced"
type="name_spelled"/>
<action function="execute"
data="sleep(500)"/>
</match>
</input>
</macro>
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.
Thanks,
MC
On Mon, Feb 6, 2012 at 3:22 PM, John
<freeswitch@earthspike.net>
wrote:
Michael,
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...
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...
:)
John
PS. For those who want to know where to insert this,
put the line marked with + into your conf/dialplan/default.xml
file:
<!-- voicemail main extension
-->
<extension
name="vmain">
<condition
field="destination_number"
expression="^vmain$|^4000$|^\*98$">
<action
application="answer"/>
<action application="sleep"
data="1000"/>
+ <action
application="set" data="vm_announce_cid=true"
/>
<action
application="voicemail" data="check default
${domain_name}"/>
</condition>
</extension>
On 06/02/12 22:00, Michael Collins wrote:
Yuriy,
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. :)
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.
-MC
2012/2/6 Yuriy Nasida
<nasida@live.ru>
Hello list,
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 ?
Please advise.
Thanks.
_________________________________________________________________________
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
_________________________________________________________________________
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