[Freeswitch-users] how to use session:playAndGetDigits with the "say" command in lua script?
Michael Collins
msc at freeswitch.org
Thu Jun 23 00:51:17 MSD 2011
Can you confirm: are you trying to use TTS or the say engine? These are two
completely different subjects. If you want to use TTS then you need the
"speak" app, not the "say" app:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_speak
-MC
On Wed, Jun 22, 2011 at 12:53 PM, Wes <wes-fs at 499x.com> wrote:
> I'm trying to convert an example from a dialplan:
>
>
> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits#Examples
>
> <extension name="play_and_get_digits with say">
> <condition field="destination_number" expression="^(6500)$">
> <action application="play_and_get_digits" data="1 1 1 3000 # say:'press
> one for technical support' silence_stream://250 res \d+" />
> </condition>
> </extension>
>
> into a lua statement like this:
>
> digits = session:playAndGetDigits(1, 1, 1, 3000, "#", "say:'press one for
> technicial support'
> ", "say:'invalid entry'", "\\d+")
>
> but I'm having trouble with the quoting. The log says:
>
> 2011-06-22 14:40:52.614654 [ERR] switch_ivr_play_say.c:1144 Invalid Args
>
> I can't find any lua examples that use both playAndGetDigits and "say"
>
> any suggestions?
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110622/cf915f64/attachment.html
More information about the FreeSWITCH-users
mailing list