[asterisk-users] MOH problems (asterisk 1.4.38)

2011-01-04 Thread Earl Terwilliger
Hi list,

I just installed Asterisk 1.4.38 (on an updated Centos 5.5 machine) and am 
getting this error :

WARNING[6472]: res_musiconhold.c:856 moh_scan_files: getcwd() failed: No such 
file or directory

with the default musiconhold.conf file. When I change musiconhold.conf to this:

[default]
mode=mp3
directory=/var/lib/asterisk/mohmp3

(and have converted all the wav files to mp3 and put them in 
/var/lib/asterisk/nohmp3)

'moh reload'  works fine and so does 'moh show classes'
but 'moh show files'  does not show any files (even though the .mp3 files are 
in 
that directory)  and of course MOH still does not work

I am not sure how to 'debug' from this point. Any help would be greatly 
appreciated! 

thanks
earl


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] MOH problems (asterisk 1.4.38)

2011-01-04 Thread bakko

Hi

CLI module unload res_musiconhold.so

CLI module load res_musiconhold.so

or 


service asterisk restart

Regards

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] MOH problems (asterisk 1.4.38)

2011-01-04 Thread Tom Rymes

On 01/04/2011 12:31 PM, Earl Terwilliger wrote:

Hi list,

I just installed Asterisk 1.4.38 (on an updated Centos 5.5 machine) and am
getting this error :

WARNING[6472]: res_musiconhold.c:856 moh_scan_files: getcwd() failed: No such
file or directory


[snip]

Have you installed mpg123 or some other program to handle the mp3 files? 
I am fairly certain that Asterisk cannot handle mp3 natively (most 
likely for licensing reasons).


Tom


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] MOH problems (asterisk 1.4.38)

2011-01-04 Thread Earl Terwilliger
On Tuesday, January 04, 2011 04:37:21 pm Tom Rymes wrote:
 On 01/04/2011 12:31 PM, Earl Terwilliger wrote:
  Hi list,
  
  I just installed Asterisk 1.4.38 (on an updated Centos 5.5 machine) and
  am getting this error :
  
  WARNING[6472]: res_musiconhold.c:856 moh_scan_files: getcwd() failed: No
  such file or directory
 
 [snip]
 
 Have you installed mpg123 or some other program to handle the mp3 files?
 I am fairly certain that Asterisk cannot handle mp3 natively (most
 likely for licensing reasons).
 
 Tom
 
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Hi Tom

that was my next step if i could not find a way to just play the wav files.
I re-booted the server and that seems to have fixed whatever problem was 
causing this. stopping and starting asterisk had no affect.

earl

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] MOH problems (asterisk 1.4.38)

2011-01-04 Thread Earl Terwilliger
On Tuesday, January 04, 2011 04:29:49 pm bakko wrote:
 Hi
 
 CLI module unload res_musiconhold.so
 
 CLI module load res_musiconhold.so
 
 or
 
 service asterisk restart
 
 Regards
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

Hi

I tried re-starting asterisk (stoping and starting) many times. No success.
I finally decided to re-boot the server and that seems to have fixed it.

thanks
earl

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] MOH problems (asterisk 1.4.38)

2011-01-04 Thread Thomas Rymes
On Jan 4, 2011, at 8:49 PM, Earl Terwilliger wrote:

 On Tuesday, January 04, 2011 04:37:21 pm Tom Rymes wrote:
 On 01/04/2011 12:31 PM, Earl Terwilliger wrote:
 Hi list,
 
 I just installed Asterisk 1.4.38 (on an updated Centos 5.5 machine) and
 am getting this error :
 
 WARNING[6472]: res_musiconhold.c:856 moh_scan_files: getcwd() failed: No
 such file or directory
 
 [snip]
 
 Have you installed mpg123 or some other program to handle the mp3 files?
 I am fairly certain that Asterisk cannot handle mp3 natively (most
 likely for licensing reasons).
 
 Tom
 
 Hi Tom
 
 that was my next step if i could not find a way to just play the wav files.
 I re-booted the server and that seems to have fixed whatever problem was 
 causing this. stopping and starting asterisk had no affect.
 
 earl

Ah. I got the impression that you were trying to play MP3 files. I would not 
recommend that you use MP3 instead of WAV, though.

Tom
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] MOH Problems.

2007-06-11 Thread Klaverstyn, David C
All,

 

I am using Asterisk 1.4.4 and it is not playing any MOH.

 

I think the underlying problem is the following error:

[Jun 11 20:25:37] WARNING[3207]: res_musiconhold.c:424 spawn_mp3: Found
no files in '/var/lib/asterisk/moh/asterisk'

[Jun 11 20:25:37] WARNING[3207]: res_musiconhold.c:506 monmp3thread:
Unable to spawn mp3player

 

 

Now it does not matter what I change in the directy= to in the heading
[default] in the file musiconhold.conf.

 

[default]

mode=files

directory=/var/lib/asterisk/moh/klavo

 

I still get the error:

res_musiconhold.c:424 spawn_mp3: Found no files in
'/var/lib/asterisk/moh/asterisk'

 

which does not make sense to me.  I don't have any other MOH defined

 

As soon as MOH is initiated is immediately stop with no error.

 

-- Executing [EMAIL PROTECTED]:2] MusicOnHold(SIP/202-0895d428, default)
in new stack

-- Started music on hold, class 'default', on channel
'SIP/202-0895d428'

-- Stopped music on hold on SIP/202-0895d428

 

 

It's like the musiconhold.conf file is not read.  I have rebooted and
reloaded with no chance to the above.

 

 

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] MOH Problems.

2007-06-11 Thread Thomas Stein
On Monday 11 June 2007, Klaverstyn, David C wrote:
 I think the underlying problem is the following error:

You are right. You have to put some mp3 files 
to /var/lib/asterisk/moh/asterisk according to your configuration.

regards
t.
-- 
knowledgeTools®  ... managing complexity.
--
knowledgeTools International GmbH 
Wallstraße 15 / 15 a 
10179 Berlin 

Fon: +49 30 726 169 20
Fax: +49 30 726 169 249 

[EMAIL PROTECTED] 
www.knowledgetools.de 

Sitz  Berlin, AG Berlin-Charlottenburg, HRB 86378 
Geschäftsführer: Oliver Seyboldt, Reinhard Kunz
--

This eMail communication (and any attachment/s) may contain confidential or 
privileged information and is intended only for the individual(s) or entity 
named above and to others who have been specifically authorized to receive 
it. If you are not the intended recipient, please do not read, copy, use or 
disclose the contents of this communication to others. Please notify the 
sender that you have received this e-mail in error by reply e-mail, and 
delete the e-mail subsequently. Thank you.
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] moh problems

2003-12-18 Thread Hector Q.-datafull
Hi,
I'm trying to setup Moh default config.
When I dial the ext. I get this:
WARNING[1200884528]: File res_musiconhold.c, Line 303 (moh0_exec): Unable to start 
music on hold
(class 'default') on channel SIP/user1-f2d3

What could it be?
Tx.,

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] MOH problems

2003-10-23 Thread Philipp von Klitzing
Hi!

 I am trying to music on hold but I am having all sorts of problems with it.
 I am running RH9 and the latest version of Asterisk as of yesterday.
 Here is what I did to test it:

 1. I manually deleted the mpg123 softlink to mpg321.
 2. I downloaded mpg123-0.59r-1.n0i.src.rpm, compiled and installed the
 the archive and loaded ztdummy.o module.

Same problem here! It is RH 7.2 with 2.4.20-20-7, but apart from that I 
also removed the link mpg123 -- mpg321, installed mpg123 and even 
created a new link in /usr/bin to /usr/local/bin/mpg123 for this. ztdummy 
is also up (Demo, Calling  MeetMe work fine).

Still: When I call my Asterisk box (which has a fixed IP and is located 
within a university network) using X-Lite I get choppy sound to say the 
least. In fact I can hear only the first half second of what I am 
supposed to hear followed by permanent silence. Note that this * box has 
no telephony hardware at all.

Any clues or suggestions what else to try? There is no hardware in 
between that could be responsible for silence suppression, but maybe 
there is a paramter in Asterisk that I can tune? I tried to use the 
loud MOH class instead, but it didn't make any difference. :-(

Cheers, Philipp


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] MOH problems

2003-10-23 Thread rnc Info Lists

...
 Still: When I call my Asterisk box (which has a fixed IP and is located
 within a university network) using X-Lite I get choppy sound to say the
 least. In fact I can hear only the first half second of what I am
 supposed to hear followed by permanent silence. Note that this * box has
 no telephony hardware at all.

 Any clues or suggestions what else to try? There is no hardware in
 between that could be responsible for silence suppression, but maybe
 there is a paramter in Asterisk that I can tune? I tried to use the
 loud MOH class instead, but it didn't make any difference. :-(

 Cheers, Philipp

When you look in the process list do you see mpg123 processes running. I
think there should be 2 for each class you have in the conf file.  (at
least thats what it seems like on my system.

I also copied the mpg123 executable to /usr/bin  instead of a link. Not
sure if that makes a difference.  In theory I would think it would not.


With a Grandstream phone and examples from the last days on this list the
MOH function when dialed via an extension works absolutly excellent. I've
run it for over 2 hours with perfect audio.

Gruß aus Friedrichshafen,
Robert

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] MOH problems

2003-10-22 Thread Clif Jones
I am trying to music on hold but I am having all sorts of problems with it.
I am running RH9 and the latest version of Asterisk as of yesterday.
Here is what I did to test it:
1. I manually deleted the mpg123 softlink to mpg321.
2. I downloaded mpg123-0.59r-1.n0i.src.rpm, compiled and installed the
   the archive and loaded ztdummy.o module.
3. I threw a couple extra files in the mohmp3 directory along with the 
sample-hold.mp3
   file.
4. I created a test number that did an: Answer and then a MusicOnHold
5. I dialed the number with an ATA-186 and a Pingtel phone.

The first file to play was the sample-hold but every few seconds it 
would drop out anywhere
from seconds to indefinately.  The other MP3 files played the same way. 
Anybody seen this problem?

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users