[Asterisk-Users] Does * machine need a sound board for MOH?
Rich Adamson
radamson at routers.com
Sat Sep 13 19:20:50 MST 2003
John,
As noted in the original post:
16243 pts/1 S 0:00 /usr/bin/mpg123 -q -s --mono -r 8000 -b 2048 For-You.
So, yes it appears to be running, and the "For-You" is an mp3 that I've listened
to from the linux console (just to verify).
The musiconhold.conf file looks like:
;
; Music on hold class definitions
;
[classes]
; default => quietmp3:/var/lib/asterisk/mohmp3
default => mp3:/var/lib/asterisk/mohmp3
; loud => mp3:/var/lib/asterisk/mohmp3
;random => quietmp3:/var/lib/asterisk/mohmp3,-z
Each of my test extensions are configured like:
exten => 3002,1,Dial(SIP/3002,20)
; exten => 3002,2,SetMusicOnHold,default
exten => 3002,2,Voicemail(u3002)
exten => 3002,102,Voicemail(b3002)
exten => 3002,103,Hangup
Do I really need to include that SetMusicOnHold line? It does not seem
to have any impact whether its there or not, but then since I don't have
any music generated, I'm not sure.
Rich
------------------------
> Rich, what are you running for mpg123 ? is it the
> real mpg123 or is it the fake mpg321 ??
>
> also whats in your musiconhold.conf ??
>
> is mpg123 running ??
>
> ps -ax | grep mpg
>
>
>
> On Sat, Sep 13, 2003 at 05:46:15PM -0600, Rich Adamson wrote:
> > Thanks John, but the question is not regarding the server. MOH is 'not'
> > working with the C7960's. If you wouldn't mind, read through the remainder
> > of the stuff below. Everything seems to suggest it should be working, but
> > the question was oriented around the error message "sound device: Resource
> > temporarily unavailable" (which obviously pertains to the server, and I
> > don't care about the server). Would the server's sound device issue be
> > impacting the inability of the C7960's to hear MOH?
> >
> > Rich
> > -------------------------------
> >
> > > Nope, you only need a sound board if you want to hear
> > > things on the * server
> > -------------------------------
> > > On Sat, Sep 13, 2003 at 05:05:32PM -0600, Rich Adamson wrote:
> > > >
> > > > Does anyone know whether the linux machine running * have to have a
> > > > sound card on it in order for musiconhold to work for sip phones?
> > > >
> > > > I've tried about everything (including tons of google searching) to get
> > > > it to work, and nothing.
> > > >
> > > > When a call is placed on hold between two C7960's, the CLI indicates:
> > > > -- Executing Dial("SIP/3002-c418", "SIP/3000|20") in new stack
> > > > -- Called 3000
> > > > -- SIP/3000-56a0 is ringing
> > > > -- SIP/3000-56a0 answered SIP/3002-c418
> > > > -- Attempting native bridge of SIP/3002-c418 and SIP/3000-56a0
> > > > -- Started music on hold, class 'default', on SIP/3002-c418
> > > > -- Stopped music on hold on SIP/3002-c418
> > > > == Spawn extension (from-sip, 3000, 1) exited non-zero on 'SIP/3002-c418'
> > > >
> > > > If I do a "ps ax" to see what's running, I see:
> > > > 16243 pts/1 S 0:00 /usr/bin/mpg123 -q -s --mono -r 8000 -b 2048 For-You.
> > > >
> > > > If I go to the * console and listen to "For-You", it plays through the speakers
> > > > just fine.
> > > >
> > > > However, after starting * with -vvvvvc, I see:
> > > >
> > > > [chan_oss.so] => (OSS Console Channel Driver)
> > > > WARNING[1074504864]: File chan_oss.c, Line 974 (load_module): XXX I don't work r
> > > > ight with non-full duplex sound cards XXX
> > > > == Registered channel type 'Console' (OSS Console Channel Driver)
> > > > == Parsing '/etc/asterisk/oss.conf': Found
> > > > WARNING[1142127920]: File chan_oss.c, Line 232 (sound_thread): Read error on sou
> > > > nd device: Resource temporarily unavailable
> > > > <snip>
> > > > [app_mp3.so] => (Silly MP3 Application)
> > > > == Registered application 'MP3Player'
> > > > <snip>
> > > >
> > > >
> > > > I can't seem to find any other reason for MOH to not work. If someone has
> > > > MOH working, would it be possible for you to send me a "sip debug" listing
> > > > of what's going on so I can compare it to mine? (offlist to radamson at routers.com)
> > > >
> > > > If anyone can think of anything more I can try it would be greatly appreciated.
> > > >
> > > > This system does have two X100P cards, everything else is working fine, its
> > > > just the MOH that won't work.
> > > >
> > > > Thanks
> > > > Rich
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Asterisk-Users mailing list
> > > > Asterisk-Users at lists.digium.com
> > > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > > _______________________________________________
> > > Asterisk-Users mailing list
> > > Asterisk-Users at lists.digium.com
> > > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> > ---------------End of Original Message-----------------
> >
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
---------------End of Original Message-----------------
More information about the asterisk-users
mailing list