Open Source Training Seminar FreePBX Paid Support

Ticket #1189 (closed Bugs: fixed)

Opened 2 years ago

Last modified 1 year ago

System Recordings

Reported by: lazytt Assigned to: RobThomas
Priority: minor Milestone: 2.2
Component: System Recordings Version: 2.2beta1
Keywords: system recordings Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

Hi! when i try to "string" recording in the system recording module i get an error if one of the files is a custom/XXXXX. the screen gets a bit messed up (the gui)and i get the following error :

Unable to locate /var/lib/asterisk/sounds/ with a a valid suffix

other times it just replases the sutom file with a random system file.

also, when i try to install the s/r module, although i have files in /custom/ i get this error:

Unable to add custom/XXXX1.wav - Can not read file!

Unable to add custom/XXXX2.wav - Can not read file!


recordings installed successfully

Change History

10/29/06 02:30:55 changed by vgster

Is custom owned by asterisk and has 777 permissions?

11/01/06 05:13:36 changed by lazytt

yes.

u can email if you have more questions

11/01/06 22:59:09 changed by RobThomas

I really can't duplicate this. Just added a whole pile of various files together, and it worked fine. Can you do this, from the linux shell:

ls -l /var/lib/asterisk/sounds/custom

And paste the results here, enclosed in ... to format it properly. Thanks!

11/01/06 23:00:05 changed by RobThomas

(That's meant to be three {'s and three }'s - eg, { { { ... } } } without the spaces)

11/02/06 02:53:25 changed by lazytt

Here you go:

[root@asterisk1 ~]# ls -l /var/lib/asterisk/sounds/custom
total 1756
-rw-rw-r--  1 asterisk asterisk  87564 Oct 18 17:08 forMsgpress1.wav
-rw-rw-r--  1 asterisk asterisk 494924 Oct 18 17:08 MainDay.wav
-rw-rw----  1 asterisk asterisk 249804 Nov  1 15:14 NightClosed.wav
-rw-rw-r--  1 asterisk asterisk 169804 Oct 18 17:09 StoreAddress.wav
-rw-rw----  1 asterisk asterisk  72844 Oct 22 12:32 toAcceptPress1.wav
-rw-rw-r--  1 asterisk asterisk 688204 Oct 18 17:09 TSNumbers.wav

FYI, i had at one point tried to downgrade form 2.2b1 to 2.1.3. Then i went back to 2.2b1 Would that have anything to do with it?

11/04/06 19:59:51 changed by RobThomas

OK. Well the error:

Unable to add custom/XXXX1.wav - Can not read file!

says that for some reason the astsnd path isn't being found. It should have /var/lib/asterisk/sounds/ before the 'custom/XXXX1.wav'.

Why, I don't know. 8) - I can only suggest grabbing the latest freepbx, and do an ./install_amp --force-version=2.1.3 and see if that fixes it. If not, I'll have to log into your system and find out what's going on 8-\

--Rob

11/06/06 09:01:46 changed by lazytt

i wont be able to downgrade till the weekend, but 2.2b2 didnt solve the problems.

:-(

11/07/06 05:43:45 changed by RobThomas

OK, need some info on your system. PHP version, Distro, etc?

--Rob

11/07/06 06:05:11 changed by lazytt

PHP 4.3.11 (cgi) (built: Jul 10 2006 15:19:32) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Trixbox 1.1.1

Freepbx 2.2b2

11/07/06 21:11:28 changed by RobThomas

  • status changed from new to closed.
  • resolution set to fixed.

Wierd. However, try the new 3.2.2 recordings module, as that has fixed it on a PHP5 based machine. (Closing, Reopen if it's still broken and I'll have to log into your machine and figure out what's going on, as I can't duplicate it here)

--Rob

11/08/06 04:07:48 changed by lazytt

  • status changed from closed to reopened.
  • resolution deleted.

Still no luck!!!!!

Perhaps email me at the address listed on my account here. Thanks!

11/08/06 15:43:39 changed by RobThomas

Hurm. How about you email me - xrobau@gmail.com, that's gtalk-able which is probably preferred.

--Rob

11/08/06 17:52:16 changed by RobThomas

  • owner set to RobThomas.
  • status changed from reopened to new.
  • summary changed from System Rocordings to System Recordings.

11/08/06 17:52:25 changed by RobThomas

  • status changed from new to assigned.

11/10/06 07:43:27 changed by robr

see ticket 1303 for the probably resolution to this issue.

11/11/06 08:19:54 changed by lazytt

please see this ticket for problem before recommending a solution! i have recordings in the /custom folder with names already. nothing is actual being prossesed in the tmp folder

11/12/06 06:36:03 changed by lazytt

just had a peek at the sql end of SR and saw this:

"id","displayname","filename","description"
"9","toAcceptPress1","custom/toAcceptPress1","No long description available"
"13","NightClosed","custom/NightClosed","No long description available"
"5","MainDay","custom/MainDay","No long description available"
"6","forMsgpress1","custom/forMsgpress1","No long description available"
"7","TSNumbers","custom/TSNumbers","No long description available"
"8","StoreAddress","custom/StoreAddress","No long description available"
"11","__invalid","install done",""
"15","allBusyForMsgPress1","custom/allBusyForMsgPress1","No long description available"

I presume that line 11 should NOT say "__invalid". Is this helpful?

11/15/06 07:29:04 changed by lazytt

another thing i noticed, and i don't know if its related or not:

A. I tired to create new recordings and use them instead of the old one (a custom 'please hold' file for que's). Although both the web gui and the sql tables show the file to be used as the new one, the system plays the old file.

B.the recordings are played without any connection to the time i select in the que's options. that mean even if the recording is set to play after 1.5 minutes it will play after about 30 seconds.

11/21/06 09:05:08 changed by lazytt

Holy *&%$$

go figure. 2.2b3 solved all my problems!!!!

Great job Rob!!! Thanks!

11/21/06 21:41:18 changed by p_lindheimer

  • status changed from assigned to closed.
  • resolution set to fixed.

so I take it it's fixed then (closing the bug) - btw, I thought groogs was the last one to mess with moh? so may be thanks to groogs...

11/22/06 02:39:49 changed by lazytt

nothing to do with moh, but thanks to whoever and everyone!!!

01/08/07 11:46:44 changed by

  • milestone deleted.

Milestone 2.2 deleted

01/08/07 13:19:58 changed by vgster

  • milestone set to 2.2.

01/10/07 17:46:58 changed by ADS

  • status changed from closed to reopened.
  • resolution deleted.

I am getting this problem now and have tried several recommended solutions and searched all over to find a resolution. This ticket is the closest thing I could find to a fix. I have upgraded my installation to 2.2.0, and have even recently tried downgrading back to 2.2.3rc with no success, and upgraded back to 2.2.0 and upgraded all the modules.

I currently have two problems that I think are related as they both deal with the system recording module. First problem is the above as if I try to make a recording using *77, I can play the recording back with *99, but when I go to save the message I get "unable to add /var/lib/asterisk/sounds/custom/testing.wav - Can not read file!" I have also noticed that I get this message if I input an extension as if I were going to be verifing a recording from my phone, but instead upload the file from my computer.

Second issue is that if I do successfully upload a file from my computer, and set it as an annoucement for an IVR or anything else the recording never plays and the only thing that is experianced is dead air. When checking the CLI everything works fine but after geting to Executing BackGround?("SIP/bwas1-vir.atl0.cbeyond.net-09f38fb0", "custom/testing") in new stack it never executes the "Playing (custom/testing) (language "en")" command. Checking the logs it states:

Jan 10 18:09:51 VERBOSE[6398] logger.c: -- Executing BackGround?("SIP/bwas1-vir.atl0.cbeyond.net-09f38fb0", "custom/afterhours") in new stack Jan 10 18:09:51'''WARNING[6398] format_wav.c: Unexpected freqency 22050 Jan 10 18:09:51 WARNING[6398] file.c: Unable to open file on /var/lib/asterisk/sounds/custom/afterhours.wav Jan 10 18:09:51 WARNING[6398] file.c: Unable to open custom/afterhours (format ulaw): No such file or directory Jan 10 18:09:51 WARNING[6398] pbx.c: ast_streamfile failed on SIP/bwas1-vir.atl0.cbeyond.net-09f38fb0 for custom/afterhours

I understand if this just won't play because it's not formatted correctly since I had to record it from the sound recorder on my pc, but if not please advise.

01/10/07 18:48:31 changed by RobThomas

  • engine set to Asterisk <1.2.
  • status changed from reopened to closed.
  • resolution set to invalid.
  • engine_version changed.
  • svn_rev changed.

The easy way to ensure the sound files is in the correct format is to use your phone to record the announcement. Otherwise you need to convert it (using sox, or various windows applications). See http://www.voip-info.org/wiki/view/Asterisk+sound+files

01/10/07 18:48:54 changed by RobThomas

Note that normally it's better just to ask these things on IRC (tools/online support/connect to IRC)

01/10/07 18:51:01 changed by naftali5

to quote the help text on upload "The .wav file must be 16 bit PCM Encoded at a sample rate of 8000Hz

so yes, it likely has to do with the frequency. But sound recorder does give you options if you choose save as... you can click change, and choose PCM for format, and 8.00 kHz, 16 Bit, Mono for the attributes. that may help.

01/10/07 23:00:18 changed by ADS

ok, thank you and that answers the second issue but why after upgrading to 2.2.0 would it not be letting me record with my phone?

05/03/07 21:59:54 changed by duncan

  • status changed from closed to reopened.
  • resolution deleted.

I am having a problem along these lines I am using Debian stable 2.6.18 with Asterisk 1.2 SVN revision 61670 Freepbx 2.2 svn revision 3949

I create announcements by extension and can hear them with *99 but they don't play and the asterisk/full log shows May 4 22:57:42 VERBOSE[8350] logger.c: -- Executing Goto("SIP/203.184.16.35-081d0118", "ivr-2|s|1") in new stack May 4 22:57:42 VERBOSE[8350] logger.c: -- Goto (ivr-2,s,1) May 4 22:57:42 VERBOSE[8350] logger.c: -- Executing Set("SIP/203.184.16.35-081d0118", "LOOPCOUNT=0") in new stack May 4 22:57:42 VERBOSE[8350] logger.c: -- Executing Set("SIP/203.184.16.35-081d0118", "DIR-CONTEXT=default") in new stack May 4 22:57:42 VERBOSE[8350] logger.c: -- Executing Set("SIP/203.184.16.35-081d0118", "_IVR_CONTEXT_ivr-2=") in new stack May 4 22:57:42 VERBOSE[8350] logger.c: -- Executing Set("SIP/203.184.16.35-081d0118", "_IVR_CONTEXT=ivr-2") in new stack May 4 22:57:42 DEBUG[8350] pbx.c: Function result is 'NO ANSWER' May 4 22:57:42 DEBUG[8350] pbx.c: Expression result is '0' May 4 22:57:42 VERBOSE[8350] logger.c: -- Executing GotoIf?("SIP/203.184.16.35-081d0118", "0?begin") in new stack May 4 22:57:42 DEBUG[8350] pbx.c: Not taking any branch May 4 22:57:42 VERBOSE[8350] logger.c: -- Executing Answer("SIP/203.184.16.35-081d0118", "") in new stack May 4 22:57:42 VERBOSE[8350] logger.c: -- Executing Wait("SIP/203.184.16.35-081d0118", "1") in new stack May 4 22:57:42 DEBUG[8239] chan_sip.c: Stopping retransmission on '388789-3387265062-93302@mscak1' of Response 1: Match Found May 4 22:57:43 VERBOSE[8350] logger.c: -- Executing Set("SIP/203.184.16.35-081d0118", "TIMEOUT(digit)=3") in new stack May 4 22:57:43 VERBOSE[8350] logger.c: -- Digit timeout set to 3 May 4 22:57:43 VERBOSE[8350] logger.c: -- Executing Set("SIP/203.184.16.35-081d0118", "TIMEOUT(response)=10") in new stack May 4 22:57:43 VERBOSE[8350] logger.c: -- Response timeout set to 10 May 4 22:57:43 VERBOSE[8350] logger.c: -- Executing BackGround?("SIP/203.184.16.35-081d0118", "custom/CitylinkTestAnnouncement") in new stack May 4 22:57:43 WARNING[8350] file.c: File custom/CitylinkTestAnnouncement does not exist in any format May 4 22:57:43 WARNING[8350] file.c: Unable to open custom/CitylinkTestAnnouncement (format alaw): No such file or directory May 4 22:57:43 WARNING[8350] pbx.c: ast_streamfile failed on SIP/203.184.16.35-081d0118 for custom/CitylinkTestAnnouncement

The sounds/custom dir is root@goran:/usr/src# ls -l /var/lib/asterisk/sounds/custom/ total 1088 -rw-rw---- 1 asterisk asterisk 409164 2007-05-04 14:23 CitylinkTestAnnouncement? -rw-rw---- 1 asterisk asterisk 409164 2007-05-02 16:43 CitylinkTestAnnouncement?.wav -rw-rw---- 1 asterisk asterisk 282124 2007-05-04 12:20 CitylinkTest?.wav

ps ax shows asterisk running as asterisk

8222 pts/0 S 0:00 /bin/sh /usr/sbin/safe_asterisk -p -U asterisk 8226 pts/0 Sl 0:02 /usr/sbin/asterisk -p -U asterisk -vvvg -c

root@goran:/usr/src# cat /etc/amportal.conf AMPDBUSER=asteriskuser AMPDBPASS=**** AMPDBHOST=localhost AMPMGRUSER=admin AMPMGRPASS=**** AMPWEBROOT=/var/www FOPWEBROOT=/var/www/panel AMPWEBADDRESS=192.168.10.8 FOPPASSWORD=***** AMPEXTENSIONS=extensions AMPBIN=/var/lib/asterisk/bin AMPSBIN=/usr/sbin AMPDBENGINE=mysql AMPDBNAME=asterisk AMPENGINE=asterisk ASTETCDIR=/etc/asterisk ASTMODDIR=/usr/lib/asterisk/modules ASTVARLIBDIR=/var/lib/asterisk ASTAGIDIR=/usr/share/asterisk/agi-bin ASTSPOOLDIR=/var/spool/asterisk ASTRUNDIR=/var/run/asterisk ASTLOGDIR=/var/log/asterisk

I am not sure how to determine where the path has gone astray but would like to find out where to look. The dead air bit is not the best look, a very cool solution otherwise though and I am keen to understand and record permissions better as everytime I use ubuntu 6.10 (my preferred platform) I am always needing to tweak them but right now I can't see what is wrong

05/04/07 00:39:29 changed by ads

My issue was that the format of the recording was incorrect. I ended up using dbpoweramp to convert the recordings to the correct format. Off top I don't remember what they are supposed to be though.

05/08/07 13:36:30 changed by duncan

I have got round it by specifically editing extensions_additional.conf and changing the path from a relative to an absolute path (in the Background command).

This suggests the path to the sound recordings is either not set or set incorrectly but I don't know where to find it to check.

Cheers duncan

05/24/07 16:21:46 changed by lazytt

  • status changed from reopened to closed.
  • resolution set to fixed.

I take that your problem is solved then. If you have any suggestions to improve recordings module on a Debian based system, please open a separate feature request or even better - a patch.

05/24/07 17:28:18 changed by duncan

  • status changed from closed to reopened.
  • resolution deleted.

I wouldn't call it solved. I have to manually edit the text files for all announcements to set explicit paths. I can't work out where the path is getting picked up from or why. If I could I would happily provide a patch.

I figure /etc/amportal.conf has the paths ASTVARLIBDIR=/var/lib/asterisk

There is probably an assumption somewhere that sounds are in sounds and custom sounds are in sounds/customm but as per the log below its not being found. If I edit all references to change them from custom/filename to /var/lib/asterisk/sounds/custom/filename in extensions_additional.conf then it works but this gets undone whenever anyone changes the announcements. using vi I use :%s/custom\//\/var\/lib\/asterisk\/sounds\/custom\//g

May 25 12:17:41 VERBOSE[31773] logger.c: -- Executing BackGround?("SIP/2020-0 81e34e8", "custom/CL_test2") in new stack May 25 12:17:41 WARNING[31773] file.c: File custom/CL_test2 does not exist in an y format May 25 12:17:41 WARNING[31773] file.c: Unable to open custom/CL_test2 (format al aw): No such file or directory May 25 12:17:41 WARNING[31773] pbx.c: ast_streamfile failed on SIP/2020-081e34e8 for custom/CL_test2 May 25 12:17:49 VERBOSE[31773] logger.c: -- Executing BackGround?("SIP/2020-0 81e34e8", "custom/CL_test2") in new stack May 25 12:17:49 WARNING[31773] file.c: File custom/CL_test2 does not exist in an y format May 25 12:17:49 WARNING[31773] file.c: Unable to open custom/CL_test2 (format al aw): No such file or directory May 25 12:17:49 WARNING[31773] pbx.c: ast_streamfile failed on SIP/2020-081e34e8 for custom/CL_test2

05/24/07 19:06:36 changed by lazytt

Here is the CLI in codeblock:

May 25 12:17:41 VERBOSE[31773] logger.c: -- Executing BackGround?("SIP/2020-0 81e34e8", "custom/CL_test2") in new stack 
May 25 12:17:41 WARNING[31773] file.c: File custom/CL_test2 does not exist in an y format 
May 25 12:17:41 WARNING[31773] file.c: Unable to open custom/CL_test2 (format al aw): No such file or directory 
May 25 12:17:41 WARNING[31773] pbx.c: ast_streamfile failed on SIP/2020-081e34e8 for custom/CL_test2 
May 25 12:17:49 VERBOSE[31773] logger.c: -- Executing BackGround?("SIP/2020-0 81e34e8", "custom/CL_test2") in new stack 
May 25 12:17:49 WARNING[31773] file.c: File custom/CL_test2 does not exist in an y format 
May 25 12:17:49 WARNING[31773] file.c: Unable to open custom/CL_test2 (format al aw): No such file or directory 
May 25 12:17:49 WARNING[31773] pbx.c: ast_streamfile failed on SIP/2020-081e34e8 for custom/CL_test2

05/24/07 19:28:45 changed by lazytt

  • status changed from reopened to closed.
  • resolution set to fixed.

I still don't think that your issue belongs in this ticket. Instead, lets continue the discussion in 1954. ALso, please remember to use code block when posting formating sensitive text. Closing as fixed, as the original issue was indeed fixed.

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads