Koozali.org: home of the SME Server

[Solved] Location of usergreeting files

Offline compsos

  • *
  • 472
  • +0/-0
[Solved] Location of usergreeting files
« on: July 01, 2010, 03:29:58 PM »
Hi Jeff

A little confused over the correct location of the greeting files. They use to be in
/var/lib/asterisk/sounds/usergreeting*
But now in
/usr/share/asterisk/sounds/usergreeting*
But in 2.5-10 they are not listing in the Greetings panel. Is it the confusion of their location causing the issue? Even have a system where the greetings are working but can not manage from the web page (ie) Empty selection and even the IVR page does not show the Greeting but it works.

How can we get the web page back on track?
« Last Edit: July 02, 2010, 12:48:18 PM by compsos »
Regards

Gordon............

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Location od usergreeting files
« Reply #1 on: July 01, 2010, 07:37:20 PM »
It isn't a sail problem.  Digium changed the directory structure in Asterisk 1.4.29.  They moved everything from /var/lib to /usr/share.

It is documented in the wiki here

http://sarkpbx.com/twiki/bin/view/Main/DocReleaseStatus

2.5.10 should pick up greetings in /usr/share/asterisk/sounds provided you are running Asterisk 1.4.29 or higher.

If it doesn't then its a bug.

Kind Regards

S

« Last Edit: July 01, 2010, 07:39:42 PM by SARK devs »

Offline compsos

  • *
  • 472
  • +0/-0
Re: Location of usergreeting files
« Reply #2 on: July 01, 2010, 11:09:10 PM »
OK It may be a bug

Software
asterisk14-1.4.31-91.el5
asterisk-core-sounds-en-gsm-1.4.19-61
asterisk-moh-opsound-wav-2.03-56
sail-2.5.1-10

dahdi-linux-2.3.0-68.el5
dahdi-tools-2.3.0-66.el5
dahdi-linux-kmdl-2.6.18-194.3.1.el5PAE-2.3.0-68.el5

Location of greetings
/usr/share/asterisk/sounds/

The greetings were created using an ext via *60* and are located where created. So asterisk knows how to created the file. It would appear the web page just does not display them.

"Theer are no greetings recorded on the system"

Is this a clue
"/bin/ls: /usr/shr/asterisk/sounds: No such file or directory, referer: https://server/server-manager/navigation"

Possible typo?

Line 163 of sarkgreeting

is
    my @Greeting = `/bin/ls /usr/shr/asterisk/sounds | /bin/grep usergreeting`;

Should be
    my @Greeting = `/bin/ls /usr/share/asterisk/sounds | /bin/grep usergreeting`;

Also the IVR panel does not show
Currently sarkivrmenu file is
    my @Greeting = `/bin/ls /var/lib/asterisk/sounds | /bin/grep usergreeting`;
Change to
    my @Greeting = `/bin/ls /usr/share/asterisk/sounds | /bin/grep usergreeting`;

It now works at loading greetings and building IVRs but the console shows no sign of picking up the message. It eventually timeout with

Code: [Select]
    -- AGI Script Executing Application: (Dial) Options: (Local/500||)
[Jul  2 07:19:50] NOTICE[4675]: chan_local.c:495 local_call: No such extension/context 500@default while calling Local channel
    -- Couldn't call 500
  == Everyone is busy/congested at this time (0:0/0/0)

Going back into the IVR menu after saving the settings, it has dropped all references in the main menu to submenus but retained links to ext numbers. Any ideas?
« Last Edit: July 02, 2010, 01:21:10 AM by compsos »
Regards

Gordon............

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Location of usergreeting files
« Reply #3 on: July 02, 2010, 11:18:24 AM »
Thanks Gordon

Excellent diagnosis

2.5.1-14 has just gone up on the website for you and should fix these issues.

Kind Regards

Jeff

Offline compsos

  • *
  • 472
  • +0/-0
[Solved] Re: Location of usergreeting files
« Reply #4 on: July 02, 2010, 12:47:42 PM »
Thanks Jeff
Confirmed on 2 systems and is working with multi level menus.
Regards

Gordon............

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: [Solved] Location of usergreeting files
« Reply #5 on: July 02, 2010, 05:27:29 PM »
sweet :)

Best

Jeff