You are on page 1of 2

18/07/2022, 21:02 Conference Call Always Playing Music on Hold?

: Asterisk

Conference Call Always Playing Music on Hold?


I am trying to create a "listen line" where people can call in and listen to my church's live stream
service. I thought I understood how to create a conference call, extensions, etc, but apparently
not. When I call with my Google Voice phone first, asterisk picks up and I go to the conference
room and music on hold plays, and then I can call with my cell phone and I also enter the
conference room. But as soon the second call enters, music on hold stops playing. If I call on my
cell phone first, I enter the conference room and music on hold plays, but when I try to call on
Google Voice, then I get the error message "The user you are trying to reach is unavailable," and
I assume Asterisk rejects the call (doesn't show anything in the CLI).

This is confbridge:

[general]

[default_bridge]

type=bridge

sound_join=no

sound_leave=no

[default_user]

type=user

startmuted=yes

music_on_hold_when_empty=yes

music_on_hold_class=ulawstream

quiet=yes

announce_user_count_all=no

extensions.conf:

[from-trunk]

exten => _X.,1,Set(CALLERID(num)=SIP-ID)

exten => _X.,2,Answer()


exten => _X.,3,Wait(1)

exten => _X.,4,ConfBridge(1,default_bridge,default_user)

exten => _X.,5,Hangup()

musiconhold.conf:

[ulawstream]

mode=custom

application=/usr/sbin/moh.sh

I realize that for confbridge.conf, that music_on_hold_when_empty is set to "yes." But if I put
"no" or erase the line, then no music on hold plays at all. Is it impossible to have a conference
call with music on hold playing with multiple attendees? Do I need another add-on installed to
do this?

And why can't I get more than one call when I call in with my cell phone first? I think my
extensions.conf isn't right...

17 Comments Tip 70% Upvoted

https://www.reddit.com/r/Asterisk/comments/g9d8ie/conference_call_always_playing_music_on_hold/ 1/2
18/07/2022, 21:02 Conference Call Always Playing Music on Hold? : Asterisk

Log in or sign up to leave a comment

Log In

Sign Up

Sort By: Best

driesken · 2 yr. ago

You shouldn't use a Conference for this. You can just use the MusicOnHold application
within extensions.conf.

For example:

exten => _X.,1,Verbose(1,Playing some music.)


same => n,Answer

same => n,MusicOnHold(ulawstream)


same => n,Hangup()

2 Reply Share Tip

threehappypenguins OP · 2 yr. ago

That's what I tried to do at first, but I couldn't get more than one caller. So I thought it
was a problem with my SIP provider not allowing multiple lines. How can I allow more
than one caller? Will erbose(1,Playing some music.) allow me to to do that? I don't know
what that means. Or what the purpose of same => is (my guess is so I don't have to
repeat extension =>)?

https://www.reddit.com/r/Asterisk/comments/g9d8ie/conference_call_always_playing_music_on_hold/ 2/2

You might also like