[Freeswitch-users] voicemail_say_phone_number
John
freeswitch at earthspike.net
Tue Feb 7 02:22:58 MSK 2012
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 at live.ru <mailto:nasida at 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120206/1ce73e91/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list