Skip to main content

MOH during Park Calls

Posted by herron on Thu, 08/05/2010

Asterisk -v = 1.4.26.3

When I put a call on park, the caller no longer hears the MOH. The caller thinks he has been hung up on.

Is this a verison of Asterisk where the MOH park feature is broken or am I missing something?


Submitted by eeman on Thu, 08/05/2010 Permalink

the parking context that it needs is 'default'. You need to make sure you have a 'default' defined in /etc/musiconhold.conf and you need to make sure you have some music files in that directory.

Submitted by herron on Fri, 08/06/2010 Permalink

I have in /etc/musiconhold.conf
-- [default-Mycom]
mode=files
directory=/var/lib/asterisk/moh/myComp/default

there's files in /var/lib/asterisk/moh/myComp/default

Default is selected under music on hold in the GUI

It plays during the regular hold but when transfered to park, it still stops.

Any other ideas?

Thanks,
--E

Submitted by eeman on Thu, 08/05/2010 Permalink

did I say a thing about default-somevalue? I said 'default' as in.... you guessed it ... 'default' no dashes... no nothing after the word default. the MOH app for valet parking only plays default.

Submitted by eeman on Fri, 08/06/2010 Permalink

bingo... so pick something really generic.. its only purpose is so people dont think theyve been disconnected. app_valetparking.c is no longer being maintained. It was a 3rd party app written by someone who left the asterisk community. Its sole purpose was to prevent one tenant from unparking another tenants calls. Until 1.6.2.x parking as defined in features.conf was one lot for every registered channel in asterisk.

Submitted by eeman on Fri, 08/06/2010 Permalink

so create one called

[default]
mode=files
directory=/var/lib/asterisk/moh/default

stick some music (nothing else but the moh files) in that directory.. best to use the generic ones that come with asterisk.

Submitted by eeman on Fri, 08/06/2010 Permalink

are those CHANGES and LICENSE files in that dir? stupid digium named them with .wav and .g729 extensions so asterisk tries to play them. That advice goes for all your MOH directories btw.

Submitted by herron on Fri, 08/06/2010 Permalink

nope they arent there.

i dont see any of human errors in the setup.

i even chown asterisk:asterisk default/ and the file.

....?

Submitted by eeman on Fri, 08/06/2010 Permalink

youve verified that ValetParking is running in the CLI? and that its actually working.. correct?

Submitted by herron on Fri, 08/06/2010 Permalink

- Goto (macro-bgnv-valetpark-multi,s,5)
[Aug 6 10:16:13] -- Executing [s@macro-bgnv-valetpark-multi:5] ValetParkCall("SIP/113-MyComp-b5a66de0", "auto|MyComp|120|113|1|from-inside-MyComp") in new stack
[Aug 6 10:16:13] -- Started music on hold, class 'default-MyComp', on SIP/113-MyComp-b5a66de0
[Aug 6 10:16:13] -- Stopped music on hold on SIP/113-MyComp-b5a66de0
[Aug 6 10:16:14] -- Playing 'vm-extension' (language 'en')
[Aug 6 10:16:14] -- Stopped music on hold on SIP/115-MyComp-b5aaf1b8
[Aug 6 10:16:14] == Spawn extension (macro-bgnv-valetunpark-multi, s, 1) exited non-zero on 'SIP/113-MyComp-b76f98a8' in macro 'bgnv-valetunpark-multi'
[Aug 6 10:16:14] == Spawn extension (from-inside-redir-MyComp, 701, 1) exited non-zero on 'SIP/113-MyComp-b76f98a8'
[Aug 6 10:16:14] -- Executing [h@from-inside-redir-MyComp:1] Hangup("SIP/113-MyComp-b76f98a8", "") in new stack
[Aug 6 10:16:14] == Spawn extension (from-inside-redir-MyComp, h, 1) exited non-zero on 'SIP/113-MyComp-b76f98a8'
[Aug 6 10:16:15] -- Playing 'digits/1' (language 'en')
[Aug 6 10:16:15] == Valet Parked SIP/115-MyComp-b5aaf1b8 on slot 1
[Aug 6 10:16:15] == Spawn extension (from-inside-MyComp, 113, 1) exited non-zero on 'ValetParked/SIP/113-MyComp-b5a66de0' in macro 'bgnv-valetpark-multi'
[Aug 6 10:16:15] == Spawn extension (from-inside-MyComp, 113, 1) exited non-zero on 'ValetParked/SIP/113-MyComp-b5a66de0'

Submitted by eeman on Fri, 08/06/2010 Permalink

was it 115 that was the parked member?

[Aug 6 10:16:14] -- Stopped music on hold on SIP/115-MyComp-b5aaf1b8

Submitted by eeman on Fri, 08/06/2010 Permalink

what is your company name?
btw I forgot to ask if you did a restart of asterisk after adding the new class into musiconhold.conf

Submitted by herron on Fri, 08/06/2010 Permalink

restart - no

reload - yes

i cant restart asterisk during the day

is that what is causing this not to play?

In reply to by herron

Submitted by eeman on Fri, 08/06/2010 Permalink

musiconhold historically has had trouble reloading everythign on a module reload. Sometimes changing music files in a class starts working on a reload... sometimes it does not. This is based on the assumtion that theres nothing wrong with your valetparking. You're running my parking script (bgnv-valetpark-multi) so either someone got it off the forums, or someone had me install it, at which time i would have compiled app_valetparking.c. You're also running my self-declared most stable version of the 1.4 branch (1.4.26.3) which would add to my digital fingerprint.

Submitted by herron on Fri, 08/06/2010 Permalink

you most likely compiled it with Larry.

i will have to wait until the next restart of asterisk to see if this works or not, and then continue to troubleshoot from there.

i will also continue to reload every so often to see if it kicks in.

i will let you know when i restart.

thanks,
--eric