[Freeswitch-users] lua trouble
Michael Collins
msc at freeswitch.org
Mon Jun 18 20:08:05 MSD 2012
If you're just trying to do "say" (using the existing pre-recorded prompts)
or "speak" (for TTS) then just use a phrase macro. Look in conf/lang/en for
examples of different types of phrase macros. See chapter 6 of the original
FS book for a gentle tutorial on using phrase macros. (It mentions them in
the context of using XML IVRs but phrase macros can be used anywhere in
FreeSWITCH where a sound file would normally be specified.)
-MC
On Mon, Jun 18, 2012 at 9:03 AM, Alex <alex at thewinelake.com> wrote:
> Maybe there's a simpler way to do a "speak" that's interruptable by DTMF
> and then finding out what the DTMF was?
>
> I think in mod_dptools.c in the play_and_get_digits_function there's some
> code that does:
>
> if (min_digits <= 1) {
> min_digits = 1;
> }
>
> My C is rusty and this may be irrelevant though!
>
> -Gabe
>
> On Mon, Jun 18, 2012 at 11:09 AM, Michael Collins <msc at freeswitch.org>wrote:
>
>> But but but the wiki says! The wiki just CAN'T be wrong! ;) Actually,
>> according to switch_ivr_play_say.c it looks like you can have a min_digits
>> of "0". Still, I'd make the min digits "1" unless there's a compelling
>> reason to want zero digits.
>> -MC
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>
> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2177 / Virus Database: 2433/5076 - Release Date: 06/17/12
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> 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/20120618/c706c1ce/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list