VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
velu.technical at gmai... Guest
|
Posted: Thu Sep 24, 2009 1:49 am Post subject: [Freeswitch-users] How to play more than one voice file in p |
|
|
Dear All,
I am in the process of doing IVR development on FreeSWITCH. I am having doubt in the play_and_get_digits application. I am using Perl language for handling IVR.
How can I play more than one sound file in play_get_digits application?
For an example,
$conn->execute("play_and_get_digit", 1 1 1000 # /usr/local/freeswitch/en/us/callie/sounds/ivr/please.wav , /usr/local/freeswitch/en/us/callie/sounds/ivr/press-1.wav /usr/loca/freeswitch/en/us/callie/sounds/ivr/invalid.wav res \\d+);
Is the above statement is right? Can I use more than one file in it?
OR
Can I use the play_get_digits as following?
$conn->execute("play_and_get_digit", 1 1 1000 # /usr/local/freeswitch/en/us/callie/sounds/ivr/please.av /usr/loca/freeswitch/en/us/callie/sounds/ivr/invalid.wav res \\d+);
$conn->execute("play_and_get_digit", 1 1 1000 # /usr/local/freeswitch/en/us/callie/sounds/ivr/press-1.wav /usr/loca/freeswitch/en/us/callie/sounds/ivr/invalid.wav res \\d+);
In the above statements how can I assure that the first application or second application is executed?
When the digit is get while playing the first application the second application should not be played. How Can I do that?
Is this my understanding wrong?
Correct me If I am wrong?
Please help me? |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Thu Sep 24, 2009 2:11 am Post subject: [Freeswitch-users] How to play more than one voice file in p |
|
|
Make sure that mod_file_string is built and loaded and then try the syntax that is described here:
http://wiki.freeswitch.org/wiki/Mod_file_string#Examples
Instead of a comma separated list you can use ! and be sure NOT to put a space after the ! because the function delimits the arguments with spaces. Try something like this:
$conn->execute("play_and_get_digits", 1 1 1000 # /usr/local/freeswitch/en/us/callie/sounds/ivr/please.wav!/usr/local/freeswitch/en/us/callie/sounds/ivr/press-1.wav /usr/loca/freeswitch/en/us/callie/sounds/ivr/invalid.wav res \\d+);
Let us know how it goes.
-MC
On Wed, Sep 23, 2009 at 11:38 PM, velusamy velu <velu.technical@gmail.com (velu.technical@gmail.com)> wrote:
Quote: | Dear All,
I am in the process of doing IVR development on FreeSWITCH. I am having doubt in the play_and_get_digits application. I am using Perl language for handling IVR.
How can I play more than one sound file in play_get_digits application?
For an example,
$conn->execute("play_and_get_digit", 1 1 1000 # /usr/local/freeswitch/en/us/callie/sounds/ivr/please.wav , /usr/local/freeswitch/en/us/callie/sounds/ivr/press-1.wav /usr/loca/freeswitch/en/us/callie/sounds/ivr/invalid.wav res \\d+);
Is the above statement is right? Can I use more than one file in it?
OR
Can I use the play_get_digits as following?
$conn->execute("play_and_get_digit", 1 1 1000 # /usr/local/freeswitch/en/us/callie/sounds/ivr/please.av /usr/loca/freeswitch/en/us/callie/sounds/ivr/invalid.wav res \\d+);
$conn->execute("play_and_get_digit", 1 1 1000 # /usr/local/freeswitch/en/us/callie/sounds/ivr/press-1.wav /usr/loca/freeswitch/en/us/callie/sounds/ivr/invalid.wav res \\d+);
In the above statements how can I assure that the first application or second application is executed?
When the digit is get while playing the first application the second application should not be played. How Can I do that?
Is this my understanding wrong?
Correct me If I am wrong?
Please help me?
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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
|
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Sep 24, 2009 8:23 am Post subject: [Freeswitch-users] How to play more than one voice file in p |
|
|
You can also use phrase macros. (and no its not just for TTS )
/b
On Sep 24, 2009, at 2:02 AM, Michael Collins wrote:
Quote: | Make sure that mod_file_string is built and loaded and then try the syntax that is described here:
http://wiki.freeswitch.org/wiki/Mod_file_string#Examples
Instead of a comma separated list you can use ! and be sure NOT to put a space after the ! because the function delimits the arguments with spaces. Try something like this:
$conn->execute("play_and_get_digits", 1 1 1000 # /usr/local/freeswitch/en/us/callie/sounds/ivr/please.wav!/usr/local/freeswitch/en/us/callie/sounds/ivr/press-1.wav /usr/loca/freeswitch/en/us/callie/sounds/ivr/invalid.wav res \\d+);
Let us know how it goes.
-MC
|
|
|
Back to top |
|
|
diego.viola at gmail.com Guest
|
Posted: Thu Sep 24, 2009 12:16 pm Post subject: [Freeswitch-users] How to play more than one voice file in p |
|
|
Use phrase macros as Brian said.
On Thu, Sep 24, 2009 at 1:09 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
|
|
Back to top |
|
|
velu.technical at gmai... Guest
|
Posted: Fri Sep 25, 2009 12:04 am Post subject: [Freeswitch-users] How to play more than one voice file in p |
|
|
Dear All,
mod_file_string is working for me. Is there any problem by using mod_file-string? If it so, how can use phrase macros in perl using ESL::IVR module?
Please provide your valuable idea...
On Thu, Sep 24, 2009 at 10:25 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Fri Sep 25, 2009 12:37 am Post subject: [Freeswitch-users] How to play more than one voice file in p |
|
|
Either work... file string is new... we use phrase macros in the
default IVR menu... its a nice way to make something internationalized.
/b
On Sep 24, 2009, at 11:56 PM, velusamy velu wrote:
Quote: | Dear All,
mod_file_string is working for me. Is there any problem by
using mod_file-string? If it so, how can use phrase macros in perl
using ESL::IVR module?
Please provide your valuable idea...
|
_______________________________________________
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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|