Bartek Kania wrote:
> I am doing exactly this but by using the dialplan instead.
> The automatic language detection shouldn't be coded into opbx since it
> is pretty simple to achieve. Possibly an app_guesslang could be made
> tho. 
> My approach is this:
> * Check the callerid to see if it's from a supported country, if so
>    set LANGUAGE.
> * If not, check which trunk the call came in on and set LANGUAGE
> * A menu option allows the caller to change it.

Some of this is already easily achievable - for example, you can set the 
language of CAPI channels on a per-controller basis. And of course, you 
can set the language of individual SIP/IAX peers.

Maybe the use of GeoIP might be worth looking at, for Internet-facing 
PBXes, to guess the locale of the caller.

> We should define a generic voice prompt API that takes care of that
> for all apps and does the language dependent stuff. An app should just
> have to call a opbx_read_number(language, speaker, number) or
> something and be done with it.

I agree.
_______________________________________________
Openpbx-dev mailing list
[email protected]
http://lists.openpbx.org/mailman/listinfo/openpbx-dev

Reply via email to