Multilanguage?

Hey!

My first post is a question about multiple system messages for using the freepbx for receiving calls from multiple countries.

Our company need english, swedish, norwegian, german, french and spanish system messages :slight_smile:

I tried a few hacks, and the best I could come up with, is defining one queue for each DID, and set the language of this queue.

But: this needs to be configured in extensions_custom.conf - and has to be included from extensions_additional.conf.

[ext-queues]
include => ext-queues-custom
#include extensions_customs.conf


exten => 1,2,Set(LANGUAGE()=no)
exten => 2,2,Set(LANGUAGE()=se)
exten => 3,2,Set(LANGUAGE()=en)
exten => 4,2,Set(LANGUAGE()=fr)
exten => 5,2,Set(LANGUAGE()=de)
exten => 6,2,Set(LANGUAGE()=es)
exten => 9,2,Set(LANGUAGE()=no)

Every time I make a change in freebpx webgui, it writes new extensions_additional.conf - and my manual hack is gone

How do I solve this?

I would love to see a language setting in the webinterface, or should I use some other smart way to configure this?

It could be done by trunk, DID or queue as I see it.

Any suggestions are more than welcome!!

Yes, the sounds and directories are functional - and I do get this working when I set languages per queue.

Did anyone try to set the language per trunk or DID?

For example using the
Set(LANGUAGE()=xx)

In the trunks incoming settings?

[quote=“terje”]Yes, the sounds and directories are functional - and I do get this working when I set languages per queue.

Did anyone try to set the language per trunk or DID?

For example using the
Set(LANGUAGE()=xx)

In the trunks incoming settings?[/quote]

Check here for a patch to update the IVR to support languages.
This patch will allow you to make your selections. Apply patch to /var/www/html/admin/modules/ivr and then run the install.php script.
Then goto FreePBX and modify your language-selection IVR.
IVR name: language-selection
press selection
1->set-norwegian
2->set-swedish
3->direction
4->set-french
5->set-german
6->set-spanish

Now you create the 5 other IVRs (1,2,4,5,6) and set the language to what you need them to be and set the timeout to 1
Make sure you set for select to ‘t’ and send it to the IVR: Direction.
since * is default in english, the IVR Direction language is left blank.
When the languages are selected it will switch the language and goto direction to do it in the proper language.

This eliminates the need to hack the code any further. The language gets set for most prompts (except the MoH since there is no immediate fix for the MoH multilanguage support.)

Hope this helps.

Then the other thing to check is if you have the language directory
properly set.

I believe that the structure under sounds is a different directory per
language with the same name as the language ID, except for english which
is the default and messages are stored in the root sound directory

…/sounds/ Messages in english

…/sounds/se/
…/sounds/no/ Messages in other languages
…/sounds/sp/

Also, check that the extension under sip.conf has also the language you
desire set
I believe this can also be configured as an option on the web
configuration interface.
I also think that trunks must be configure with a language in the proper
configuration file, otherwise, it will default to english.

If you receive different calls using the same trunk, create different
trunks associated with different DIDs from the same origin for different
languages.

That is the best I can do. I have not that much experience with languages.

Regards,

Jorge

terje wrote:

[quote] j.alayon at ses.com.ar wrote:

[quote] Your own configuration sholud be done in context [ext-queues-custom]
within the extensions_customs.conf file that it is created for that purpose.

extensions.conf: must not be edited, as it is the master file that
configures how FreePBX works. You can hack there, but upgrades will
probably fail
extensions_additional.conf: is the configuration file that is
rewritten by the configuration interface with information from the database
extensions_customs.conf: is the configuration file for you to add your
own changes. You can add changes to those context that has an include
like the one you see below [ext-queues]

Regards,

Jorge

[/quote]

Hey, and thanks for the answer.

I did not specify enough I see in my first post.

My working config is like this:

extensions_additional.conf:
[ext-queues]
include => ext-queues-custom
#include extensions_customs.conf
=> this i added manually to load customs.conf at correct point, and it also is loaded from extensions.conf

extensions_custom.conf:
exten => 1,2,Set(LANGUAGE()=no)
exten => 2,2,Set(LANGUAGE()=se)
exten => 3,2,Set(LANGUAGE()=en)

I did try using the built-in feature

include => ext-queues-custom

and added
[ext-queues-custom]

but then it does not load the languages…

Best regards
-terje


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

[/quote]

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

[quote=“j.alayon at ses.com.ar”]Your own configuration sholud be done in context [ext-queues-custom]
within the extensions_customs.conf file that it is created for that purpose.

extensions.conf: must not be edited, as it is the master file that
configures how FreePBX works. You can hack there, but upgrades will
probably fail
extensions_additional.conf: is the configuration file that is
rewritten by the configuration interface with information from the database
extensions_customs.conf: is the configuration file for you to add your
own changes. You can add changes to those context that has an include
like the one you see below [ext-queues]

Regards,

Jorge

[/quote]

Hey, and thanks for the answer.

I did not specify enough I see in my first post.

My working config is like this:

extensions_additional.conf:
[ext-queues]
include => ext-queues-custom
#include extensions_customs.conf
=> this i added manually to load customs.conf at correct point, and it also is loaded from extensions.conf

extensions_custom.conf:
exten => 1,2,Set(LANGUAGE()=no)
exten => 2,2,Set(LANGUAGE()=se)
exten => 3,2,Set(LANGUAGE()=en)

I did try using the built-in feature

include => ext-queues-custom

and added
[ext-queues-custom]

in extensions_custom.conf

but then it does not load the languages…

Best regards
-terje

Your own configuration sholud be done in context [ext-queues-custom]
within the extensions_customs.conf file that it is created for that purpose.

extensions.conf: must not be edited, as it is the master file that
configures how FreePBX works. You can hack there, but upgrades will
probably fail
extensions_additional.conf: is the configuration file that is
rewritten by the configuration interface with information from the database
extensions_customs.conf: is the configuration file for you to add your
own changes. You can add changes to those context that has an include
like the one you see below [ext-queues]

Regards,

Jorge

terje wrote:

[quote] This is an edited version of a previous post

Hey!

My first post is a question about multiple system messages for using the freepbx for receiving calls from multiple countries.

Our company need english, swedish, norwegian, german, french and spanish system messages :slight_smile:

I tried a few hacks, and the best I could come up with, is defining one queue for each DID, and set the language of this queue.

But: this needs to be configured in extensions_custom.conf - and has to be included from extensions_additional.conf.

[ext-queues]
include => ext-queues-custom
#include extensions_customs.conf


exten => 1,2,Set(LANGUAGE()=no)
exten => 2,2,Set(LANGUAGE()=se)
exten => 3,2,Set(LANGUAGE()=en)
exten => 4,2,Set(LANGUAGE()=fr)
exten => 5,2,Set(LANGUAGE()=de)
exten => 6,2,Set(LANGUAGE()=es)
exten => 9,2,Set(LANGUAGE()=no)

Every time I make a change in freebpx webgui, it writes new extensions_additional.conf - and my manual hack is gone

How do I solve this?

I would love to see a language setting in the webinterface, or should I use some other smart way to configure this?

It could be done by trunk, DID or queue as I see it.

Any suggestions are more than welcome!!


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

[/quote]

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)