# MOH stops

**URL:** <https://community.asterisk.org/t/moh-stops/12784>\
**Category:** Asterisk General\
**Created:** [March 1, 2007, 10:12am UTC](https://community.asterisk.org/t/moh-stops/12784 "2007-03-01T10:12:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![henkoegema](https://avatars.discourse-cdn.com/v4/letter/h/7ea924/32.png) [@henkoegema](https://community.asterisk.org/u/henkoegema)\
**Post date:** [March 1, 2007, 10:12am UTC](https://community.asterisk.org/t/moh-stops/12784/1 "2007-03-01T10:12:06Z")

</div>

How can I get my MOH(Music On Hold) working?

When I put an extension on hold I get:

Called 1200  
– SIP/1200-081a4b88 is ringing

- SIP/1200-081a4b88 answered SIP/1203-08182e10
- Started music on hold, class ‘default’, on channel ‘SIP/1200-081a4b88’  
– [color=red]Stopped music on hold[/color] on SIP/1200-081a4b88

So the MOH starts, but stops directly afterwords 😒

(First I didn’t have any mp3 files in /var/lib/asterisk/mohmp3.  
Then I got:  
Found no files in /var/lib/asterisk/mohmp3  
Unable to spawn mp3player.

then I put a mp3 file in /var/lib/asterisk/mohmp3 and I got the above message )

---

<div class="post-metadata">

**Author:** ![henkoegema](https://avatars.discourse-cdn.com/v4/letter/h/7ea924/32.png) [@henkoegema](https://community.asterisk.org/u/henkoegema)\
**Post date:** [March 1, 2007, 3:13pm UTC](https://community.asterisk.org/t/moh-stops/12784/2 "2007-03-01T15:13:03Z")

</div>

[quote=“henkoegema”]How can I get my MOH(Music On Hold) working?

When I put an extension on hold I get:

Called 1200  
– SIP/1200-081a4b88 is ringing

- SIP/1200-081a4b88 answered SIP/1203-08182e10
- Started music on hold, class ‘default’, on channel ‘SIP/1200-081a4b88’  
– [color=red]Stopped music on hold[/color] on SIP/1200-081a4b88

So the MOH starts, but stops directly afterwords 😒

(First I didn’t have any mp3 files in /var/lib/asterisk/mohmp3.  
Then I got:  
Found no files in /var/lib/asterisk/mohmp3  
Unable to spawn mp3player.

then I put a mp3 file in /var/lib/asterisk/mohmp3 and I got the above message )[/quote]

Some additional info:  
During compiling \*  
make clean  
make mpg123

I got error:

make[3]: \*\*\* No rule to make target `\ ', needed by`mpg123’. Stop.  
make[3]: Leaving directory `/usr/src/asterisk-1.2.15/mpg123-0.59r' make[2]: *** [mpg123-make] Error 2 make[2]: Leaving directory`/usr/src/asterisk-1.2.15/mpg123-0.59r’  
make[1]: \*\*\* [linux] Error 2  
make[1]: Leaving directory `/usr/src/asterisk-1.2.15/mpg123-0.59r’  
make: \*\*\* [mpg123] Error 2  
asterisk:/usr/src/asterisk-1.2.15 #

---

<div class="post-metadata">

**Author:** ![henkoegema](https://avatars.discourse-cdn.com/v4/letter/h/7ea924/32.png) [@henkoegema](https://community.asterisk.org/u/henkoegema)\
**Post date:** [March 3, 2007, 9:58pm UTC](https://community.asterisk.org/t/moh-stops/12784/3 "2007-03-03T21:58:38Z")

</div>

[quote=“henkoegema”]How can I get my MOH(Music On Hold) working?

When I put an extension on hold I get:

Called 1200  
– SIP/1200-081a4b88 is ringing

- SIP/1200-081a4b88 answered SIP/1203-08182e10
- Started music on hold, class ‘default’, on channel ‘SIP/1200-081a4b88’  
– [color=red]Stopped music on hold[/color] on SIP/1200-081a4b88

So the MOH starts, but stops directly afterwords 😒

(First I didn’t have any mp3 files in /var/lib/asterisk/mohmp3.  
Then I got:  
Found no files in /var/lib/asterisk/mohmp3  
Unable to spawn mp3player.

then I put a mp3 file in /var/lib/asterisk/mohmp3 and I got the above message )[/quote]

What is the best way to debug this problem, so that I can try to find [color=blue]WHY it stops[/color] ??

---

<div class="post-metadata">

**Author:** ![henkoegema](https://avatars.discourse-cdn.com/v4/letter/h/7ea924/32.png) [@henkoegema](https://community.asterisk.org/u/henkoegema)\
**Post date:** [March 7, 2007, 9:29pm UTC](https://community.asterisk.org/t/moh-stops/12784/4 "2007-03-07T21:29:33Z")

</div>

Have not been able to solve the problem yet. ☹

Even a  
CLI\> sip debug peer 1200  
wasn’t of much help.

This is what I get when I put 1200 intermittend OH HOLD.(with debugging switched off again)

Executing Dial(“Zap/1-1”, “SIP/1200|40|rtT”) in new stack  
– Called 1200  
– SIP/1200-081c45c8 is ringing  
– SIP/1200-081c45c8 answered Zap/1-1  
– Started music on hold, class ‘default’, on channel ‘Zap/1-1’  
– Stopped music on hold on Zap/1-1  
– Started music on hold, class ‘default’, on channel ‘Zap/1-1’  
– Stopped music on hold on Zap/1-1  
– Started music on hold, class ‘default’, on channel ‘Zap/1-1’  
– Stopped music on hold on Zap/1-1

After started moh I get immediately stopped moh.

But I have not found out WHY it stops??

---

<div class="post-metadata">

**Author:** ![baconbuttie](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/baconbuttie/32/916_2.png) [@baconbuttie](https://community.asterisk.org/u/baconbuttie)\
**Post date:** [March 8, 2007, 4:51am UTC](https://community.asterisk.org/t/moh-stops/12784/5 "2007-03-08T04:51:04Z")

</div>

you’re lacking info. what MoH are you using ? the Asterisk-source Freeplay files, or your own ? what format are the files in if your own ? any difference in behaviour using native MoH instead of mp3player ? does mpg123 exist on your system ?

---

<div class="post-metadata">

**Author:** ![henkoegema](https://avatars.discourse-cdn.com/v4/letter/h/7ea924/32.png) [@henkoegema](https://community.asterisk.org/u/henkoegema)\
**Post date:** [March 11, 2007, 4:28pm UTC](https://community.asterisk.org/t/moh-stops/12784/6 "2007-03-11T16:28:31Z")

</div>

> [@baconbuttie](#):
>
> you’re lacking info. what MoH are you using ? the Asterisk-source Freeplay files, or your own ? what format are the files in if your own ? any difference in behaviour using native MoH instead of mp3player ? does mpg123 exist on your system ?

You solved my problem !

It was indeed mpg123 which didn’t exist in my system.  
After installing mpg123, MOH started working.

Thanks very much 😃 .
