Topic: MOH during Park Calls [Comments: 21]
herron

Thu, 08/05/2010 - 10:23 | MOH during Park Calls

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?

eeman

Fri, 08/06/2010 - 01:18 | the parking context that it

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.

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

herron

Fri, 08/06/2010 - 13:58 | I have a default in

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

eeman

Fri, 08/06/2010 - 02:27 | did I say a thing about

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.

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

herron

Fri, 08/06/2010 - 13:59 | so there is no way to have

so there is no way to have custom moh during park for each tenant?

all tenants will here the same thing?

I also edited my setup in my previous reply

eeman

Fri, 08/06/2010 - 13:59 | bingo... so pick something

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.

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

eeman

Fri, 08/06/2010 - 14:03 | so create one

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.

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

herron

Fri, 08/06/2010 - 14:04 | Thats what i did, still not

Thats what i did, still not working. however, i am checking my mistakes first. typo or something stupid. will let you know in a few

eeman

Fri, 08/06/2010 - 14:11 | are those CHANGES and LICENSE

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.

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

herron

Fri, 08/06/2010 - 14:15 | nope they arent there. i dont

nope they arent there.

i dont see any of human errors in the setup.

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

....?

eeman

Fri, 08/06/2010 - 14:18 | youve verified that

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

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

eeman

Fri, 08/06/2010 - 14:22 | what version of asterisk and

what version of asterisk and did you compile valetparking yourself?

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

herron

Fri, 08/06/2010 - 14:22 | - Goto

- 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'

herron

Fri, 08/06/2010 - 14:24 | asterisk -v = 1.4.26.3 and

asterisk -v = 1.4.26.3

and nope.

eeman

Fri, 08/06/2010 - 14:25 | where did you get the

where did you get the valetparking?

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

herron

Fri, 08/06/2010 - 14:27 | was already installed before

was already installed before i started managing it

eeman

Fri, 08/06/2010 - 14:27 | was it 115 that was the

was it 115 that was the parked member?

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

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

eeman

Fri, 08/06/2010 - 14:38 | what is your company name?

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

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

herron

Fri, 08/06/2010 - 14:29 | yes

yes

herron

Fri, 08/06/2010 - 14:40 | restart - no reload - yes i

restart - no

reload - yes

i cant restart asterisk during the day

is that what is causing this not to play?

eeman

Fri, 08/06/2010 - 14:49 | musiconhold historically has

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.

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

herron

Fri, 08/06/2010 - 14:53 | you most likely compiled it

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