[Freeswitch-users] voicemail_say_phone_number
Michael Collins
msc at freeswitch.org
Tue Feb 7 19:11:45 MSK 2012
Yeah, this was my bad. I started on this and got interrupted, then came
back like an hour later and totally forgot about the fact that of
mod_voicemail.c not using the macro. I think today I can do a quick test on
that and if it works I'll commit it to git master and then you all can test
it.
Thanks,
MC
On Tue, Feb 7, 2012 at 2:22 AM, Yuriy Nasida <nasida at live.ru> wrote:
> Thank you guys!
>
> It works. The example with
> 'vm_announce_cid=ivr/ivr-this_is_a_call_from.wav' is more correct.
> Otherwise FS tries to play message true.wav :)
> So, voicemail module doesn't use macro "voicemail_say_phone_number" and as
> far as I see the source code of mod_voicemail.c explains this behaviour.
> Yes, ability for playing of some wav file if I will have vm from
> annonymous would be very useful.
> Probably I can add it independently but I believe that your modifying
> will more correctly :)
> Darcy please let me know if you plan to add this feature in the near
> future.
>
> Anyway thanks again!
>
> ------------------------------
> From: darcy at primrose.ws
> To: freeswitch-users at lists.freeswitch.org
> Date: Mon, 6 Feb 2012 23:27:23 -0500
> Subject: Re: [Freeswitch-users] voicemail_say_phone_number
>
>
> If John’s works, use it, I could not make it work but the example I show
> below played the greeting before the clid, I have not added anything to
> play an annonymous greeting yet as I have not had time.
>
> in mod_voicemail.c you have the following code:
> if (!zstr(cbt->cid_number) && (vm_announce_cid =
> switch_channel_get_variable(channel, "vm_announce_cid"))) {
> switch_ivr_play_file(session, NULL, vm_announce_cid, NULL);
> switch_ivr_sleep(session, 500, SWITCH_TRUE, NULL);
> switch_ivr_say(session, cbt->cid_number, NULL, "name_spelled",
> "pronounced", NULL, NULL);
> }
> Which indicates you will play the file in variable “vm_announce_cid”.
>
> Darcy
> In Sunny Ottawa Canada
>
> *From:* Bote Man <bote_radio at botecomm.com>
> *Sent:* Monday, February 06, 2012 11:14 PM
> *To:* 'FreeSWITCH Users Help' <freeswitch-users at lists.freeswitch.org>
> *Subject:* Re: [Freeswitch-users] voicemail_say_phone_number
>
>
> 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 at 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 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.
>
>
>
>
>
> ------------------------------
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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 at freeswitch.org
> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel
> Communication Server Official FreeSWITCH Sites
> http://www.freeswitch.org http://wiki.freeswitch.org
> http://www.cluecon.com FreeSWITCH-users mailing list
> FreeSWITCH-users at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120207/bbd016d0/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list