Koozali.org: home of the SME Server

Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: Drifting on July 19, 2012, 11:33:25 AM

Title: Language?
Post by: Drifting on July 19, 2012, 11:33:25 AM
After a recent yum update, and the removal of most of asterisk due to dependencies. I bit the bullet and followed the install for 3.2. Had the expected problems with kernel and dahdi which I managed to resolve.

However now I have lost my UK English voices. I have checked with the sail website, and 3.2 should set them accordingly from the globals? (Well I assume it should) I even went so far as to check the /etc/asterisk/sark_customer_iax_header.conf  /etc/asterisk/sark_customer_sip_header.conf which still had the "language=en-gb"

Also for good measure added the symlink ln -s /var/lib/asterisk/sounds/en /var/lib/asterisk/en-gb

Confirmed that the /var/lib/asterisk/en-gb actually exists, and had the files.

Committed and restarted, still lovely American lady?

Sysinfo
Serial #:
Release #: 3.2.0-14
Web Server: Apache
Browser: Firefox
Network
hostname: voipsbs
domain: voip
LAN IP: 10.0.0.4
Netmask: 255.255.255.0
Hardware
System Media: disk
Disk Usage: 48%
RAM Size: 514884
RAM Free: 6356
Status
PBX State: RUNNING
SysTime: 10:19

Anyone an idea what I may have missed?

Regards Paul.
Title: Re: Language?
Post by: SARK devs on July 29, 2012, 12:17:50 PM
HI

the sail rpms don't contain the UK english sound files, just the US ones (Alison).  You can obtain the uk english language rpms from our download site here

http://sailpbx.com/sail/languagepack/

The isos do contain UK english so you might want to install an iso instead.

Kind Regards

S

 

Title: Re: Language?
Post by: Drifting on July 30, 2012, 12:36:01 PM
Thanks for the reply.

This was an ISO install, but a beta. I upgraded the server as I needed a kernel update for something else. Not sure if you remember my earlier post about it offering to remove all of sail and asterisk etc?

As suggested I reinstalled all the packages, however the UK voice modules were not removed from the machine. And as stated they appeared to be in the location suggested on the sail Wiki. So a bit at a loss to know what went on? Tried installing from you two files you suggested, but the GSM one stated that it could not upgrade the existing (Flashed quickly before my eyes and missed exactly what it said) so can only assume that it was already that version.

At a loss to know why the language is wrong, any other suggestions? Otherwise I can see me having to back it all up and use a new ISO install.  Which reminds me, is that using the latest SME kernel? As I need to use that for some specific hardware.

Regards
Title: Re: Language?
Post by: SARK devs on July 30, 2012, 11:34:21 PM
Hi Paul

The latest 3.1.1 and 3.2Beta iso is based upon 8B7 so it will have kernel-2.6.18-274.17.1.el5.i686.rpm.  Earlier isos were based upon 8B6 which had kernel-2.6.18-194.17.1.el5.i686.rpm

you can determine the version of your voice files by doing

rpm -qa | grep 'sme-ast-en-uk' - here's mine

Code: [Select]
[root@isdntest php]# rpm -qa | grep 'sme-ast-en-uk'
sme-ast-en-uk-gpl-gsm-sounds-3.1.0-1

Kind Regards

S

Title: Re: Language?
Post by: Drifting on July 31, 2012, 10:31:55 AM
Thanks Jeff

Mine are
sme-ast-en-uk-gpl-gsm-sounds-3.1.0-2
2.6.18-308.11.1.el5

So would you suggest a backup of the config and revert to an earlier? Not something I would like to do as the other card in this machine requires a later kernel.

Regards
Title: Re: Language?
Post by: SARK devs on July 31, 2012, 12:17:14 PM
No I wouldn't suggest you go to all that trouble.  It should just work (does everywhere else) so I guess it is not serious.

What do you see in /var/lib/asterisk/sounds

Title: Re: Language?
Post by: Drifting on August 03, 2012, 10:33:02 AM
Hi Jeff

Two folders "en" and another "en-gb" both of which have quite a few contents, so can only assume the language files are installed ok. As I say this was somewhat of an odd one wanting to remove everything as posted earlier.

reminder :-

Dependencies Resolved

================================================================================
 Package                             Arch   Version            Repository  Size
================================================================================
Installing:
 kernel                              i686   2.6.18-308.8.2.el5 updates     19 M
Updating:
 expat                               i386   1.95.8-11.el5_8    updates     78 k
 logrotate                           i386   3.7.4-14           smeupdates  42 k
 man                                 i386   1.6d-3.el5         smeupdates 262 k
Removing:
 kernel                              i686   2.6.18-308.1.1.el5 installed   49 M
Removing for dependencies:
 asterisk14                          i386   1.4.36-1_centos5   installed   0.0
 asterisk14-dahdi                    i386   1.4.36-1_centos5   installed  2.0 M
 dahdi-linux                         i386   2.4.1-70.el5       installed  3.2 M
 dahdi-linux-kmdl-2.6.18-308.1.1.el5 i686   2.4.1-70.el5       installed  1.8 M
 dahdi-tools                         i386   2.4.0-1_centos5    installed  715 k
 sail                                noarch 3.1.1-9            installed  8.3 M
 smesailenv                          noarch 1.0.0-30           installed   40 k

I did not however remove any of the previous settings, but did the usual commit etc which bought it all back to life. It did all work before perfectly.

Regards
Title: Re: Language?
Post by: Drifting on August 13, 2012, 06:41:01 PM
Ok, well still got the nice American lady, no idea why so, as all the settings etc have not really changed, and I have since re checked them all.

So it looks like I shall have to bite the bullet and do a clean install. So my question is, do I do a backup and restore of the settings? or just start fully again.

Regards
Title: Re: Language?
Post by: SARK devs on August 14, 2012, 11:24:55 PM
If it was my system I'd dig a little further in an attempt to understand why it isn't doing what you want it to do.   It would be a bit of a blow if you rebuilt it and it still didn't do what you want.  Language choice in Asterisk has no bugs that I'm aware of so I have to think that you have a setup error somewhere in there.  Go back to first principles, read up on how it is supposed to work and check your language files again.  Then watch the asterisk CLI to see what it is actually playing when you invoke a sound file.  Asterisk always tries to fail-back to Alison if it can't find the language files you've given it.  If you are going to rebuild anyway then why not play around with it first?  Try moving the Alison file versions out of the /var/sounds directory and see what happens.  If nothing else you'll get a good understanding of how asterisk searches these sound directories. 

If you feel you must rebuild and it is primarily an asterisk system you want then use one of our ISO's.  They pretty much just work out of the box so they may save you a bit of time. 

Best

S

   
Title: Re: Language?
Post by: Drifting on August 16, 2012, 02:01:19 PM
Yes I take your point.

So with that in mind, I went to the console and tried to a known extension that was off.:-

[Aug 16 12:55:01] WARNING[2388]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- AGI Script Executing Application: (Voicemail) Options: (2102|u)
    -- <SIP/2101-0000000f> Playing 'vm-theperson' (language 'en-gb')
    -- Remote UNIX connection disconnected
    -- <SIP/2101-0000000f> Playing 'digits/2' (language 'en-gb')
    -- <SIP/2101-0000000f> Playing 'digits/1' (language 'en-gb')
    -- <SIP/2101-0000000f> Playing 'digits/0' (language 'en-gb')
    -- <SIP/2101-0000000f> Playing 'digits/2' (language 'en-gb')
    -- <SIP/2101-0000000f> Playing 'vm-isunavail' (language 'en-gb')
    -- <SIP/2101-0000000f> Playing 'vm-intro' (language 'en-gb')
    -- <SIP/2101-0000000f> Playing 'beep' (language 'en-gb')

It appears to me that it thinks it is playing the UK files? Will now try as suggested and remove the Alison (bless her)

I am running 3.2 and wondered, do you still have to set the UK in the conf files? or is it all taken care of by the Sark console general? Just thought I would ask as mine are set in the conf files. (Sark ones that is)

Regards
Title: Re: Language?
Post by: SARK devs on August 19, 2012, 10:07:31 PM
Hi Paul

Yes it is attempting to locate the files in en-gb; that doesn't mean it is finding them tho'.   Tell me, are all the phrases Alison, or just some of them?

J