Koozali.org: home of the SME Server

[SOLVED] UK sounds not working on SAIL 2.5

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
[SOLVED] UK sounds not working on SAIL 2.5
« on: June 14, 2010, 10:23:56 AM »
Hello Selintra,
Installed asterisk from rpms on sme 7.5 fully updated + sail 2.5.   Most things are working, but UK sounds are not working.  They were some warning during installation, see below. Are you aware of any issues with latest rpms:

Asterisk Installed packages:
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
 asterisk-addons14       i386       1:1.4.11-26.el4  atrpms            462 k
 asterisk14              i386       1:1.4.31-91.el4  atrpms            3.4 M
 dahdi-linux             i386       2.3.0-68.el4     atrpms            2.4 M
 dahdi-linux-kmdl-2.6.9-89.0.25.EL  i686       2.3.0-68.el4     atrpms            616 k
 dahdi-tools             i386       1:2.3.0-66.el4   atrpms            232 k
 libpri                  i386       1:1.4.10.2-25.el4  atrpms            5.1 k
Installing for dependencies:
 alsa-lib                i386       1.0.6-5.RHEL4    base              302 k
 asterisk-core-sounds-en-gsm  noarch     1.4.19-61        atrpms            1.8 M
 asterisk-moh-opsound-wav  noarch     2.03-56          atrpms             15 M
 libgcrypt               i386       1.2.0-3          base              153 k
 libgpg-error            i386       1.0-1            base               45 k
 libgsm1                 i386       1.0.13-2.el4     atrpms             22 k
 libiksemel3             i386       1.4-2_2.el4      atrpms             27 k
 libogg                  i386       2:1.1.2-1        base               16 k
 libpri1                 i386       1:1.4.10.2-25.el4  atrpms             66 k
 libradiusclient-ng2     i386       0.5.6-0.el4      atrpms             26 k
 libtonezone2            i386       1:2.3.0-66.el4   atrpms             13 k
 libvorbis               i386       1:1.1.0-3.el4_8.3  updates           187 k
 speex                   i386       1.2-0.11.rc1.el4  atrpms             93 k
 unixODBC                i386       2.2.11-1.RHEL4.1  base              829 k

Sark installed packages:
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
perl-File-ReadBackwards.noarch 0:1.04-1.2.el4.rf
sail                    noarch     2.5.1-10         sail-2.5.1-10.noarch.rpm  5.0 M
Installing for dependencies:
 nmap                    i386       2:3.70-1         base              486 k
 perl-Bit-Vector         i386       6.3-3            base              130 k
 perl-Date-Calc          i386       5.3-9            base              209 k
 sox                     i386       12.17.5-3        base              253 k
 tftp-server             i386       0.39-3.el4       base               26 k
 xinetd                  i386       2:2.3.13-4.5.el4  base              128 k

Sark additional sounds:
yum localinstall sme-ast-en-uk-gpl-sounds-1.0.0-3.noarch.rpm
WARNING in /etc/e-smith/db/selintra/migrate//20-selmerge: Use of uninitialized value in concatenation (.) or string at /etc/e-smith/db/selintra/migrate//20-selmerge line 94.
WARNING: Template processing succeeded for /: 1 fragment generated warnings at /usr/lib/perl5/site_perl/esmith/DB.pm line 459

They appears to have installed, but I still have the female US voice, and some of the sounds are missing

I also  edited /etc/asterisk/asterisk.conf as follows:
[options]
;languageprefix = yes ; Use the new sound prefix path syntax

No changes.
I can do some testing.
Best
chris
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: [SOLVED] UK sounds not working on SAIL 2.5
« Reply #1 on: June 15, 2010, 11:44:48 AM »
Apologies Chris,

I didn't think anyone but us used the UK sound pack.    The rpm had to change due to the Digium change to the Asterisk directory tree.  You can find the new rpm here

http://sarkpbx.com/sail/languagepack/Asterisk-1.4.28+/sme-ast-en-uk-gpl-sounds-1.2.0-4.noarch.rpm

Remove the old one and install this one.

Best

Jeff

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: [SOLVED] UK sounds not working on SAIL 2.5
« Reply #2 on: June 15, 2010, 01:21:58 PM »
Thanks Jeff, I could not do without "James".  Will install later tomorrow and let you know how it goes.
They certainly have changed things around on latest packages, this is how it looks now:

[root@sail25 ~]# asterisk -rvvv
Asterisk 1.4.31, Copyright (C) 1999 - 2010 Digium, Inc. and others.

[root@sail25 files]# cd /var/lib/asterisk/sounds
[root@sail25 sounds]# ls
dictate  digits  en  ha  letters  phonetic  silence  wx

The sound files are in /en, and the old UK sounds 1.0.0-3 I installed before can be seen still in tar.gz in the middle of hundred of US sound files:
asterisk-friend.gsm                                         
Asterisk-UKEnglish-AdditionalSounds-HashVer-v1.2-gsm.tar.gz 
Asterisk-UKEnglish-AdditionalSounds-v1.2-gsm.tar.gz         
Asterisk-UKEnglish-BaseSounds-HashVer-v1.2-gsm.tar.gz       
Asterisk-UKEnglish-BaseSounds-v1.2-gsm.tar.gz               
at-any-time.gsm   

I will uninstall - reinstall and let you know of any issues.
Many thanks
Kind regards
chris
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: [SOLVED] UK sounds not working on SAIL 2.5
« Reply #3 on: June 16, 2010, 01:11:32 AM »
Hello Jeff
[root@sail25 ~]# rpm -e sme-ast-en-uk-gpl-sounds-1.0.0-3

Then:
[root@sail25 ~]# cd /var/lib/asterisk/sounds
-bash: cd: /var/lib/asterisk/sounds: No such file or directory
[root@sail25 ~]# cd /var/lib/asterisk/     
[root@sail25 asterisk]# ls
astdb

Note: sounds dir has been removed. Before doing this, it looks like this:
[root@sail25 files]# cd /var/lib/asterisk/sounds
[root@sail25 sounds]# ls
dictate  digits  en  ha  letters  phonetic  silence  wx

#Install new rpm:
[root@sail25 files]# yum -y install Asterisk-1.4.28+/sme-ast-en-uk-gpl-sounds-1.2.0-4.noarch.rpm
Female voice, working ok but if standard greeting selected, offer of "if you know the extension number ..." is not available.
                   
cd /var/lib/asterisk/sounds still does not exist...

[root@sail25 ~]# rpm -qa | grep sounds                         
asterisk-core-sounds-en-gsm-1.4.19-61
sme-ast-en-uk-gpl-sounds-1.2.0-4

Not sure where to go from there....

- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: [SOLVED] UK sounds not working on SAIL 2.5
« Reply #4 on: June 16, 2010, 08:44:41 AM »
Test3d this again on fresh install of 2.5.
Same result as previous post, and some more info:
Best
chris

-- Executing [xxx@mainmenu:1] AGI("SIP/PENYTEL-0000000c", "selintra|Inbound|xxx") in new stack
    -- Launched AGI Script /usr/share/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Set) Options: (CDR(userfield)=xxx)
    -- AGI Script Executing Application: (Background) Options: (silence/1)
    -- <SIP/PENYTEL-0000000c> Playing 'silence/1' (language 'en')
    -- AGI Script selintra completed, returning 0
    -- Executing [s@defaultOpenGreet:1] BackGround("SIP/PENYTEL-0000000c", "if-u-know-ext-dial") in new stack
[Jun 16 16:35:52] WARNING[7161]: file.c:664 ast_openstream_full: File if-u-know-ext-dial does not exist in any format
[Jun 16 16:35:52] WARNING[7161]: file.c:991 ast_streamfile: Unable to open if-u-know-ext-dial (format 0x4 (ulaw)): No such file or directory
[Jun 16 16:35:52] WARNING[7161]: pbx.c:5752 pbx_builtin_background: ast_streamfile failed on SIP/PENYTEL-0000000c for if-u-know-ext-dial
    -- Executing [s@defaultOpenGreet:2] BackGround("SIP/PENYTEL-0000000c", "otherwise") in new stack
[Jun 16 16:35:52] WARNING[7161]: file.c:664 ast_openstream_full: File otherwise does not exist in any format
[Jun 16 16:35:52] WARNING[7161]: file.c:991 ast_streamfile: Unable to open otherwise (format 0x4 (ulaw)): No such file or directory
[Jun 16 16:35:52] WARNING[7161]: pbx.c:5752 pbx_builtin_background: ast_streamfile failed on SIP/PENYTEL-0000000c for otherwise
    -- Executing [s@defaultOpenGreet:3] BackGround("SIP/PENYTEL-0000000c", "pls-hold-while-try") in new stack
[Jun 16 16:35:52] WARNING[7161]: file.c:664 ast_openstream_full: File pls-hold-while-try does not exist in any format
[Jun 16 16:35:52] WARNING[7161]: file.c:991 ast_streamfile: Unable to open pls-hold-while-try (format 0x4 (ulaw)): No such file or directory
[Jun 16 16:35:52] WARNING[7161]: pbx.c:5752 pbx_builtin_background: ast_streamfile failed on SIP/PENYTEL-0000000c for pls-hold-while-try
    -- Executing [s@defaultOpenGreet:4] BackGround("SIP/PENYTEL-0000000c", "silence/3") in new stack
    -- <SIP/PENYTEL-0000000c> Playing 'silence/3' (language 'en')
    -- Executing [s@defaultOpenGreet:5] Goto("SIP/PENYTEL-0000000c", "defaultOpenGreet|t|1") in new stack
    -- Goto (defaultOpenGreet,t,1)
    -- Executing [t@defaultOpenGreet:1] Goto("SIP/PENYTEL-0000000c", "extensions|5001|1") in new stack
    -- Goto (extensions,5001,1)
    -- Executing [5001@extensions:1] AGI("SIP/PENYTEL-0000000c", "selintra|InCall|") in new stack
    -- Launched AGI Script /usr/share/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Dial) Options: (SIP/5001|15|kt)
    -- Called 5001
    -- SIP/5001-0000000d is ringing
    -- Nobody picked up in 15000 ms
    -- AGI Script Executing Application: (Playback) Options: (silence/1)
    -- <SIP/PENYTEL-0000000c> Playing 'silence/1' (language 'en')
    -- AGI Script Executing Application: (Voicemail) Options: (5001|u)
    -- <SIP/PENYTEL-0000000c> Playing 'vm-theperson' (language 'en')
    -- <SIP/PENYTEL-0000000c> Playing 'digits/5' (language 'en')
    -- <SIP/PENYTEL-0000000c> Playing 'digits/0' (language 'en')
    -- <SIP/PENYTEL-0000000c> Playing 'digits/0' (language 'en')
    -- <SIP/PENYTEL-0000000c> Playing 'digits/1' (language 'en')
    -- <SIP/PENYTEL-0000000c> Playing 'vm-isunavail' (language 'en')
    -- <SIP/PENYTEL-0000000c> Playing 'vm-intro' (language 'en')
    -- <SIP/PENYTEL-0000000c> Playing 'beep' (language 'en')
    -- Recording the message
    -- x=0, open writing:  /var/spool/asterisk/voicemail/default/5001/tmp/LVhTrv format: wav49, 0x9c640e0
    -- Recording automatically stopped after a silence of 6 seconds
    -- <SIP/PENYTEL-0000000c> Playing 'auth-thankyou' (language 'en')
    -- Recording was 1 seconds long but needs to be at least 2 - abandoning
    -- AGI Script selintra completed, returning 0
  == Auto fallthrough, channel 'SIP/PENYTEL-0000000c' status is 'NOANSWER'
    -- Executing [h@extensions:1] Hangup("SIP/PENYTEL-0000000c", "") in new stack
  == Spawn extension (extensions, h, 1) exited non-zero on 'SIP/PENYTEL-0000000c'
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: [SOLVED] UK sounds not working on SAIL 2.5
« Reply #5 on: June 16, 2010, 09:26:15 AM »
Hello Chris

/var/lib/asterisk/sounds doesn't exist in asterisk >= 1.4.29.  They moved everything to /usr/share. 

and....  what I didn't mention - :oops: ...

you must set the language files in the .conf files you wish to use them for.  Our UK English directory is called en-gb.   So, to make asterisk use it,  add the following line in the sip header (in headers); -

Code: [Select]
language=en-gb
You should also do this in the iax.conf header and dahdi headers (if you have regular phone lines attached).

Kind Regards and sorry for the confusion.

Jeff

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: [SOLVED] UK sounds not working on SAIL 2.5
« Reply #6 on: June 16, 2010, 10:28:27 AM »
Gooday Jeff,
James is back, rejoice!
All sorted.
Many  thanks for help with this one
Kind regards
chris
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.