voicemail_say_phone_number
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.
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
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 <mailto: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.
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
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 From: Michael Collins Sent: Monday, February 06, 2012 8:03 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] voicemail_say_phone_number 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
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.
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 Sent: Monday, February 06, 2012 11:14 PM To: 'FreeSWITCH Users Help' 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@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. -------------------------------------------------------------------------------- _________________________________________________________________________ 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
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@primrose.ws To: freeswitch-users@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 Sent: Monday, February 06, 2012 11:14 PM To: 'FreeSWITCH Users Help' 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@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. _________________________________________________________________________ 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
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@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@primrose.ws To: freeswitch-users@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@botecomm.com> *Sent:* Monday, February 06, 2012 11:14 PM *To:* 'FreeSWITCH Users Help' <freeswitch-users@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@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.
------------------------------ _________________________________________________________________________ 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
_________________________________________________________________________ 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
Okay, try latest git. I changed mod_voicemail to use the macro and I set vm_announce_cid to be true/false instead of using a file name. Try it with various caller ID number values and let us know how it goes. -MC On Tue, Feb 7, 2012 at 8:11 AM, Michael Collins <msc@freeswitch.org> wrote:
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@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@primrose.ws To: freeswitch-users@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@botecomm.com> *Sent:* Monday, February 06, 2012 11:14 PM *To:* 'FreeSWITCH Users Help' <freeswitch-users@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@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.
------------------------------ _________________________________________________________________________ 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-usersUNSUBSCRIBE: 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
Hello all, Any body knows how to adjust the rtmp? When i try to place a call and give 1000@serverip, I can see the call in fs_cli. However, it says freeswitch@internal> 2012-02-07 19:01:32.972040 [DEBUG] rtmp.c:869 [chunk_stream=3 type=0x14 ts=12247591 stream_id=0x0] len=58 2012-02-07 19:01:32.972040 [DEBUG] rtmp.c:170 [amfnumber=3] Got INVOKE for makeCall 2012-02-07 19:01:32.972040 [WARNING] rtmp_sig.c:296 Unauthorized call to sip:1000@serverip.com, client is not logged in. How can i make the client log in? I have the following in the autoconfig/rtmp.conf.xml. <configuration name="rtmp.conf" description="RTMP Endpoint"> <profiles> <profile name="default"> <settings> <param name="bind-address" value="0.0.0.0:1935" /> <param name="context" value="sipinterface_1" /> <param name="dialplan" value="XML" /> <!-- If this is set to true, no unauthenticated inbound calls will be allowed --> <param name="auth-calls" value="false" /> <!-- How much time should the clients buffer the media stream (miliseconds) --> <param name="buffer-len" value="50" /> <!-- Sets the maximum size of outbound RTMP chunks --> <param name="chunksize" value="512" /> </settings> </profile> </profiles> </configuration> any help is appreciated thank you regards, Sherif Omran
Hello, you have to permit anonymous calls on the external profile. Bye, Ricardo Saavedra
Hello all,
Any body knows how to adjust the rtmp?
When i try to place a call and give 1000@serverip, I can see the call in fs_cli. However, it says
freeswitch@internal> 2012-02-07 19:01:32.972040 [DEBUG] rtmp.c:869 [chunk_stream=3 type=0x14 ts=12247591 stream_id=0x0] len=58 2012-02-07 19:01:32.972040 [DEBUG] rtmp.c:170 [amfnumber=3] Got INVOKE for makeCall 2012-02-07 19:01:32.972040 [WARNING] rtmp_sig.c:296 Unauthorized call to sip:1000@serverip.com, client is not logged in.
How can i make the client log in? I have the following in the autoconfig/rtmp.conf.xml.
<configuration name="rtmp.conf" description="RTMP Endpoint"> <profiles> <profile name="default"> <settings> <param name="bind-address" value="0.0.0.0:1935" /> <param name="context" value="sipinterface_1" /> <param name="dialplan" value="XML" /> <!-- If this is set to true, no unauthenticated inbound calls will be allowed --> <param name="auth-calls" value="false" /> <!-- How much time should the clients buffer the media stream (miliseconds) --> <param name="buffer-len" value="50" /> <!-- Sets the maximum size of outbound RTMP chunks --> <param name="chunksize" value="512" /> </settings> </profile> </profiles> </configuration>
any help is appreciated
thank you
regards, Sherif Omran
_________________________________________________________________________ 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
What do you mean by external profile? I have bluebox installed and have 3 profiles (1 authenticated, 1 not authenticated, 1 for nat behind devices and authenticated): sofia status sipinterface_3 profile port 5080 RUNNING (0) sipinterface_1 profile 5060 RUNNING (0) sipinterface_2 profile 5070 RUNNING (0) Probably you mean sipinterface_3 but it uses port 5080. how should i act? thank you --- On Tue, 2/7/12, rsaavedra@ecogizmos.com <rsaavedra@ecogizmos.com> wrote: From: rsaavedra@ecogizmos.com <rsaavedra@ecogizmos.com> Subject: Re: [Freeswitch-users] rtmp help To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, February 7, 2012, 10:18 PM Hello, you have to permit anonymous calls on the external profile. Bye, Ricardo Saavedra
Hello all,
Any body knows how to adjust the rtmp?
When i try to place a call and give 1000@serverip, I can see the call in fs_cli. However, it says
freeswitch@internal> 2012-02-07 19:01:32.972040 [DEBUG] rtmp.c:869 [chunk_stream=3 type=0x14 ts=12247591 stream_id=0x0] len=58 2012-02-07 19:01:32.972040 [DEBUG] rtmp.c:170 [amfnumber=3] Got INVOKE for makeCall 2012-02-07 19:01:32.972040 [WARNING] rtmp_sig.c:296 Unauthorized call to sip:1000@serverip.com, client is not logged in.
How can i make the client log in? I have the following in the autoconfig/rtmp.conf.xml.
<configuration name="rtmp.conf" description="RTMP Endpoint"> <profiles> <profile name="default"> <settings> <param name="bind-address" value="0.0.0.0:1935" /> <param name="context" value="sipinterface_1" /> <param name="dialplan" value="XML" /> <!-- If this is set to true, no unauthenticated inbound calls will be allowed --> <param name="auth-calls" value="false" /> <!-- How much time should the clients buffer the media stream (miliseconds) --> <param name="buffer-len" value="50" /> <!-- Sets the maximum size of outbound RTMP chunks --> <param name="chunksize" value="512" /> </settings> </profile> </profiles> </configuration>
any help is appreciated
thank you
regards, Sherif Omran
_________________________________________________________________________ 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
Ok, now i get the following [NO_ROUTE_DESTINATION] could you please help? thank you --- On Tue, 2/7/12, rsaavedra@ecogizmos.com <rsaavedra@ecogizmos.com> wrote: From: rsaavedra@ecogizmos.com <rsaavedra@ecogizmos.com> Subject: Re: [Freeswitch-users] rtmp help To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, February 7, 2012, 10:18 PM Hello, you have to permit anonymous calls on the external profile. Bye, Ricardo Saavedra
Hello all,
Any body knows how to adjust the rtmp?
When i try to place a call and give 1000@serverip, I can see the call in fs_cli. However, it says
freeswitch@internal> 2012-02-07 19:01:32.972040 [DEBUG] rtmp.c:869 [chunk_stream=3 type=0x14 ts=12247591 stream_id=0x0] len=58 2012-02-07 19:01:32.972040 [DEBUG] rtmp.c:170 [amfnumber=3] Got INVOKE for makeCall 2012-02-07 19:01:32.972040 [WARNING] rtmp_sig.c:296 Unauthorized call to sip:1000@serverip.com, client is not logged in.
How can i make the client log in? I have the following in the autoconfig/rtmp.conf.xml.
<configuration name="rtmp.conf" description="RTMP Endpoint"> <profiles> <profile name="default"> <settings> <param name="bind-address" value="0.0.0.0:1935" /> <param name="context" value="sipinterface_1" /> <param name="dialplan" value="XML" /> <!-- If this is set to true, no unauthenticated inbound calls will be allowed --> <param name="auth-calls" value="false" /> <!-- How much time should the clients buffer the media stream (miliseconds) --> <param name="buffer-len" value="50" /> <!-- Sets the maximum size of outbound RTMP chunks --> <param name="chunksize" value="512" /> </settings> </profile> </profiles> </configuration>
any help is appreciated
thank you
regards, Sherif Omran
_________________________________________________________________________ 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
This could be a dialplan issue. You will need to supply a console debug log. Use pastebin.freeswitch.org -MC On Tue, Feb 7, 2012 at 1:47 PM, Sherif Omran <sherifomran2000@yahoo.com>wrote:
Ok, now i get the following
[NO_ROUTE_DESTINATION]
could you please help?
thank you
--- On *Tue, 2/7/12, rsaavedra@ecogizmos.com <rsaavedra@ecogizmos.com>*wrote:
From: rsaavedra@ecogizmos.com <rsaavedra@ecogizmos.com> Subject: Re: [Freeswitch-users] rtmp help To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, February 7, 2012, 10:18 PM
Hello, you have to permit anonymous calls on the external profile.
Bye,
Ricardo Saavedra
Hello all,
Any body knows how to adjust the rtmp?
When i try to place a call and give 1000@serverip, I can see the call in fs_cli. However, it says
freeswitch@internal> 2012-02-07 19:01:32.972040 [DEBUG] rtmp.c:869 [chunk_stream=3 type=0x14 ts=12247591 stream_id=0x0] len=58 2012-02-07 19:01:32.972040 [DEBUG] rtmp.c:170 [amfnumber=3] Got INVOKE for makeCall 2012-02-07 19:01:32.972040 [WARNING] rtmp_sig.c:296 Unauthorized call to sip:1000@serverip.com <http://mc/compose?to=1000@serverip.com>, client is not logged in.
How can i make the client log in? I have the following in the autoconfig/rtmp.conf.xml.
<configuration name="rtmp.conf" description="RTMP Endpoint"> <profiles> <profile name="default"> <settings> <param name="bind-address" value="0.0.0.0:1935" /> <param name="context" value="sipinterface_1" /> <param name="dialplan" value="XML" /> <!-- If this is set to true, no unauthenticated inbound calls will be allowed --> <param name="auth-calls" value="false" /> <!-- How much time should the clients buffer the media stream (miliseconds) --> <param name="buffer-len" value="50" /> <!-- Sets the maximum size of outbound RTMP chunks --> <param name="chunksize" value="512" /> </settings> </profile> </profiles> </configuration>
any help is appreciated
thank you
regards, Sherif Omran
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<http://mc/compose?to=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://mc/compose?to=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://mc/compose?to=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://mc/compose?to=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
Michael, I have tried voicemail with latest git. Looks good, macro works now, thank you. But I see many WARNING messages in fs_cli when i try to check or leave voicemail. Not sure why. It appear when I don't use vm_announce_cid as well. '2012-02-11 00:49:20.169712 [WARNING] switch_xml.c:2329 Invalid UTF-8 character to ampersand, skip it' Thanks. Date: Tue, 7 Feb 2012 10:28:22 -0800 From: msc@freeswitch.org To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] voicemail_say_phone_number Okay, try latest git. I changed mod_voicemail to use the macro and I set vm_announce_cid to be true/false instead of using a file name. Try it with various caller ID number values and let us know how it goes. -MC On Tue, Feb 7, 2012 at 8:11 AM, Michael Collins <msc@freeswitch.org> wrote: 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@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@primrose.ws To: freeswitch-users@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 Sent: Monday, February 06, 2012 11:14 PM To: 'FreeSWITCH Users Help' 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@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. _________________________________________________________________________ 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 _________________________________________________________________________ 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
The German xml file has poorly formatted umlaut characters. Try deleting the files in conf/lang/de/ and you should be fine. -MC On Fri, Feb 10, 2012 at 2:06 PM, Yuriy Nasida <nasida@live.ru> wrote:
Michael,
I have tried voicemail with latest git. Looks good, macro works now, thank you. But I see many WARNING messages in fs_cli when i try to check or leave voicemail. Not sure why. It appear when I don't use vm_announce_cid as well.
'2012-02-11 00:49:20.169712 [WARNING] switch_xml.c:2329 Invalid UTF-8 character to ampersand, skip it'
Thanks.
------------------------------ Date: Tue, 7 Feb 2012 10:28:22 -0800 From: msc@freeswitch.org To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] voicemail_say_phone_number
Okay, try latest git. I changed mod_voicemail to use the macro and I set vm_announce_cid to be true/false instead of using a file name. Try it with various caller ID number values and let us know how it goes.
-MC
On Tue, Feb 7, 2012 at 8:11 AM, Michael Collins <msc@freeswitch.org>wrote:
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@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@primrose.ws To: freeswitch-users@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@botecomm.com> *Sent:* Monday, February 06, 2012 11:14 PM *To:* 'FreeSWITCH Users Help' <freeswitch-users@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@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.
------------------------------ _________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
It helped. Thanks. Date: Fri, 10 Feb 2012 15:17:38 -0800 From: msc@freeswitch.org To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] voicemail_say_phone_number The German xml file has poorly formatted umlaut characters. Try deleting the files in conf/lang/de/ and you should be fine. -MC On Fri, Feb 10, 2012 at 2:06 PM, Yuriy Nasida <nasida@live.ru> wrote: Michael, I have tried voicemail with latest git. Looks good, macro works now, thank you. But I see many WARNING messages in fs_cli when i try to check or leave voicemail. Not sure why. It appear when I don't use vm_announce_cid as well. '2012-02-11 00:49:20.169712 [WARNING] switch_xml.c:2329 Invalid UTF-8 character to ampersand, skip it' Thanks. Date: Tue, 7 Feb 2012 10:28:22 -0800 From: msc@freeswitch.org To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] voicemail_say_phone_number Okay, try latest git. I changed mod_voicemail to use the macro and I set vm_announce_cid to be true/false instead of using a file name. Try it with various caller ID number values and let us know how it goes. -MC On Tue, Feb 7, 2012 at 8:11 AM, Michael Collins <msc@freeswitch.org> wrote: 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@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@primrose.ws To: freeswitch-users@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 Sent: Monday, February 06, 2012 11:14 PM To: 'FreeSWITCH Users Help' 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@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. _________________________________________________________________________ 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 _________________________________________________________________________ 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 _________________________________________________________________________ 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
was this completed? Here are a few suggestions. 1) the voicemail_say_phone_number macro needs a sound file for anonymous 2) ivr/ivr-this_is_a_call_from.wav should probably replaced with voicemail/vm-from.wav 3) we should move the playing of this macro a little further down (after playing the message number) after the "play_file:" label if there is anything I can help testing or creating a patch, please let me know. Thanks On 2/7/2012 1:28 PM, Michael Collins wrote:
Okay, try latest git. I changed mod_voicemail to use the macro and I set vm_announce_cid to be true/false instead of using a file name. Try it with various caller ID number values and let us know how it goes.
-MC
On Tue, Feb 7, 2012 at 8:11 AM, Michael Collins <msc@freeswitch.org <mailto:msc@freeswitch.org>> wrote:
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@live.ru <mailto:nasida@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@primrose.ws <mailto:darcy@primrose.ws> To: freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@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 <mailto:bote_radio@botecomm.com> *Sent:* Monday, February 06, 2012 11:14 PM *To:* 'FreeSWITCH Users Help' <mailto:freeswitch-users@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@earthspike.net <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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
participants (8)
-
Abaci
-
Bote Man
-
Darcy
-
John
-
Michael Collins
-
rsaavedra@ecogizmos.com
-
Sherif Omran
-
Yuriy Nasida