VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
diego.viola at gmail.com Guest
|
Posted: Sat Apr 11, 2009 9:46 pm Post subject: [Freeswitch-users] Question about play_and_get_digits in mod |
|
|
Hi all,
I want to use play_and_get_digits from mod_dptools and have some questions about it.
I have used playAndGetDigits() in Lua but I see the syntax in mod_dptools is a bit different and I got a bit confused.
I see the syntax in the play_and_get_digits from the mod_dptools is something like this:
switch_play_and_get_digits(session, min_digits, max_digits, max_tries, timeout, valid_terminators,
prompt_audio_file, bad_input_audio_file, var_name, digit_buffer, sizeof(digit_buffer), digits_regex}
Can you please explain to me what the session parameter is? And will this allow me to use a phrase macro so I can call my IVR instead of calling a regular file?
This is how I use the playAndGetDigits in Lua:
digits = session:playAndGetDigits(2, 5, 3, 7000, "#", "phrase:rac_demo", "", "\\d+");
I call a phrase macro instead of playing a file, can I do the same with play_and_get_digits from mod_dptools? and please explain me what the session parameter in play_and_get_digits is.
Thanks,
Diego |
|
Back to top |
|
|
diego.viola at gmail.com Guest
|
Posted: Sat Apr 11, 2009 9:46 pm Post subject: [Freeswitch-users] Question about play_and_get_digits in mod |
|
|
If you give me some examples of how to use play_and_get_digits in mod_dptools I will document it here.
http://wiki.freeswitch.org/index.php?title=Misc._Dialplan_Tools_play_and_get_digits
Diego
On Sat, Apr 11, 2009 at 10:36 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote: | Hi all,
I want to use play_and_get_digits from mod_dptools and have some questions about it.
I have used playAndGetDigits() in Lua but I see the syntax in mod_dptools is a bit different and I got a bit confused.
I see the syntax in the play_and_get_digits from the mod_dptools is something like this:
switch_play_and_get_digits(session, min_digits, max_digits, max_tries, timeout, valid_terminators,
prompt_audio_file, bad_input_audio_file, var_name, digit_buffer, sizeof(digit_buffer), digits_regex}
Can you please explain to me what the session parameter is? And will this allow me to use a phrase macro so I can call my IVR instead of calling a regular file?
This is how I use the playAndGetDigits in Lua:
digits = session:playAndGetDigits(2, 5, 3, 7000, "#", "phrase:rac_demo", "", "\\d+");
I call a phrase macro instead of playing a file, can I do the same with play_and_get_digits from mod_dptools? and please explain me what the session parameter in play_and_get_digits is.
Thanks,
Diego
|
|
|
Back to top |
|
|
diego.viola at gmail.com Guest
|
Posted: Sat Apr 11, 2009 10:55 pm Post subject: [Freeswitch-users] Question about play_and_get_digits in mod |
|
|
Mike just answered.
23:45 < MikeJ> diegoviola: the syntax is documented
23:45 < MikeJ> SWITCH_ADD_APP(app_interface, "play_and_get_digits", "Play and get Digits", "Play and get Digits",
23:45 < MikeJ> IIII play_and_get_digits_function, "<min> <max> <tries> <timeout> <terminators> <file> <invalid_file> <var_name> <regexp>", SAF_NONE);
Thanks guys.
Diego
On Sat, Apr 11, 2009 at 10:38 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote: | If you give me some examples of how to use play_and_get_digits in mod_dptools I will document it here.
http://wiki.freeswitch.org/index.php?title=Misc._Dialplan_Tools_play_and_get_digits
Diego
On Sat, Apr 11, 2009 at 10:36 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote: | Hi all,
I want to use play_and_get_digits from mod_dptools and have some questions about it.
I have used playAndGetDigits() in Lua but I see the syntax in mod_dptools is a bit different and I got a bit confused.
I see the syntax in the play_and_get_digits from the mod_dptools is something like this:
switch_play_and_get_digits(session, min_digits, max_digits, max_tries, timeout, valid_terminators,
prompt_audio_file, bad_input_audio_file, var_name, digit_buffer, sizeof(digit_buffer), digits_regex}
Can you please explain to me what the session parameter is? And will this allow me to use a phrase macro so I can call my IVR instead of calling a regular file?
This is how I use the playAndGetDigits in Lua:
digits = session:playAndGetDigits(2, 5, 3, 7000, "#", "phrase:rac_demo", "", "\\d+");
I call a phrase macro instead of playing a file, can I do the same with play_and_get_digits from mod_dptools? and please explain me what the session parameter in play_and_get_digits is.
Thanks,
Diego
|
|
|
|
Back to top |
|
|
diego.viola at gmail.com Guest
|
Posted: Sun Apr 12, 2009 1:42 am Post subject: [Freeswitch-users] Question about play_and_get_digits in mod |
|
|
I just added this:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits
Diego
On Sat, Apr 11, 2009 at 11:47 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote: | Mike just answered.
23:45 < MikeJ> diegoviola: the syntax is documented
23:45 < MikeJ> SWITCH_ADD_APP(app_interface, "play_and_get_digits", "Play and get Digits", "Play and get Digits",
23:45 < MikeJ> IIII play_and_get_digits_function, "<min> <max> <tries> <timeout> <terminators> <file> <invalid_file> <var_name> <regexp>", SAF_NONE);
Thanks guys.
Diego
On Sat, Apr 11, 2009 at 10:38 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote: | If you give me some examples of how to use play_and_get_digits in mod_dptools I will document it here.
http://wiki.freeswitch.org/index.php?title=Misc._Dialplan_Tools_play_and_get_digits
Diego
On Sat, Apr 11, 2009 at 10:36 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote: | Hi all,
I want to use play_and_get_digits from mod_dptools and have some questions about it.
I have used playAndGetDigits() in Lua but I see the syntax in mod_dptools is a bit different and I got a bit confused.
I see the syntax in the play_and_get_digits from the mod_dptools is something like this:
switch_play_and_get_digits(session, min_digits, max_digits, max_tries, timeout, valid_terminators,
prompt_audio_file, bad_input_audio_file, var_name, digit_buffer, sizeof(digit_buffer), digits_regex}
Can you please explain to me what the session parameter is? And will this allow me to use a phrase macro so I can call my IVR instead of calling a regular file?
This is how I use the playAndGetDigits in Lua:
digits = session:playAndGetDigits(2, 5, 3, 7000, "#", "phrase:rac_demo", "", "\\d+");
I call a phrase macro instead of playing a file, can I do the same with play_and_get_digits from mod_dptools? and please explain me what the session parameter in play_and_get_digits is.
Thanks,
Diego
|
|
|
|
|
Back to top |
|
|
diego.viola at gmail.com Guest
|
Posted: Sun Apr 12, 2009 3:01 am Post subject: [Freeswitch-users] Question about play_and_get_digits in mod |
|
|
I wish I would have seen this before =D
03:36 < Math> diegoviola: show application [appname] will show you any syntax btw
Diego
On Sun, Apr 12, 2009 at 2:30 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote: | I just added this:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits
Diego
On Sat, Apr 11, 2009 at 11:47 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote: | Mike just answered.
23:45 < MikeJ> diegoviola: the syntax is documented
23:45 < MikeJ> SWITCH_ADD_APP(app_interface, "play_and_get_digits", "Play and get Digits", "Play and get Digits",
23:45 < MikeJ> IIII play_and_get_digits_function, "<min> <max> <tries> <timeout> <terminators> <file> <invalid_file> <var_name> <regexp>", SAF_NONE);
Thanks guys.
Diego
On Sat, Apr 11, 2009 at 10:38 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote: | If you give me some examples of how to use play_and_get_digits in mod_dptools I will document it here.
http://wiki.freeswitch.org/index.php?title=Misc._Dialplan_Tools_play_and_get_digits
Diego
On Sat, Apr 11, 2009 at 10:36 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote: | Hi all,
I want to use play_and_get_digits from mod_dptools and have some questions about it.
I have used playAndGetDigits() in Lua but I see the syntax in mod_dptools is a bit different and I got a bit confused.
I see the syntax in the play_and_get_digits from the mod_dptools is something like this:
switch_play_and_get_digits(session, min_digits, max_digits, max_tries, timeout, valid_terminators,
prompt_audio_file, bad_input_audio_file, var_name, digit_buffer, sizeof(digit_buffer), digits_regex}
Can you please explain to me what the session parameter is? And will this allow me to use a phrase macro so I can call my IVR instead of calling a regular file?
This is how I use the playAndGetDigits in Lua:
digits = session:playAndGetDigits(2, 5, 3, 7000, "#", "phrase:rac_demo", "", "\\d+");
I call a phrase macro instead of playing a file, can I do the same with play_and_get_digits from mod_dptools? and please explain me what the session parameter in play_and_get_digits is.
Thanks,
Diego
|
|
|
|
|
|
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
|