[Freeswitch-users] How to specify language for phrase macro inside session:playAndGetDigits(-)

king2kin xing2kin at yahoo.com
Mon Sep 5 08:11:55 MSD 2011


Thanks! but this method for playAndGetDigits(-) seems not as convenient as app 'say' where we may directly specify current language (e.g. 'fr') other than default one (e.g. 'en') at any time.

--- On Sun, 9/4/11, Luis Jimenez <ljjimenez at gmail.com> wrote:


From: Luis Jimenez <ljjimenez at gmail.com>
Subject: Re: [Freeswitch-users] How to specify language for phrase macro inside session:playAndGetDigits(-)
To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
Date: Sunday, September 4, 2011, 6:40 PM


You can set the variable default_language before or during your script.

http://wiki.freeswitch.org/wiki/Variable_default_language




On Sat, Sep 3, 2011 at 12:52 AM, king2kin <xing2kin at yahoo.com> wrote:

Hi all,

{
session:playAndGetDigits(1, 1, 1, 3000, "#", "phrase:xk_confirm_userid:" .. uid, invalid, "[0,1,9]")
}
always uses default language (e.g. 'en') to pick up phrase marco definition,
but now I would like to specify another language instead of FS default language to play back this phrase macro inside session:playAndGetDigits(-).

Could anyone please tell me how I can specify non-default language for playing back my phrase macro inside session:playAndGetDigits(-)?

Thanks

x.k.



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


-----Inline Attachment Follows-----



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/20110904/04c21ad9/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list