[Freeswitch-users] How to play more than one voice file in play_and_get_digits function

velusamy velu velu.technical at gmail.com
Wed Sep 23 23:38:14 PDT 2009


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090924/f7fe1d2d/attachment-0002.html 


More information about the FreeSWITCH-users mailing list