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?
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.
Please
advise.
John
Boteler
Bote
Communications
in
rainy Fort Lauderdale, FL
From:
Darcy
Sent: Monday, 06 February, 2012
22:02
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.
<extension
name="vmain">
<condition field="destination_number"
expression="^\*98$">
<action application="answer"/>
<action application="set"
data="vm_announce_cid=ivr/ivr-this_is_a_call_from.wav"/>
<action application="sleep" data="1000"/>
<action application="voicemail" data="check default ${domain_name}
${sip_from_user}"/>
</condition>
</extension>
Darcy
…
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...
…
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,
…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.