Skip to main content

Only default MOH is applied on the whole system!

Posted by kyriakos on Mon, 11/10/2008

This is something that has been going on long time now but i had no time working on it.
It looks like on the whole system only the MOH assigned as default is applied. Different MOH that i assign to queues or conference calls are not applied and the default MOH is heard instead.
This has come to be a big problem now, because we have our radio ads playing on the queues and this is also our MOH for the office too! People calling to our offices are complaining about the radio ads that they have to listen to which is of course normal, since that is intented only for people calling in to the call center for inquiries.

Can anyone point me to where i should start troubleshooting?

Thanks,
Kyriakos Mavromichalis
Otenet telecom


Submitted by kyriakos on Mon, 11/10/2008 Permalink

Im posting a trace of the flow when calling from extension 314 to a feature extension sending me to the test queue. Even though i have defined a different MOH for this queue, all i get is the default MOH which is 20081010AD.

-- Executing [611@from-inside:1] Macro("SIP/314-b5a159e0", "tl-set-variables2|from-inside-redir|") in new stack

-- Executing [s@macro-tl-set-variables2:1] Set("SIP/314-b5a159e0", "__tenant=") in new stack

-- Executing [s@macro-tl-set-variables2:2] Set("SIP/314-b5a159e0", "CDR(userfield)=") in new stack

-- Executing [s@macro-tl-set-variables2:3] Set("SIP/314-b5a159e0", "__MOH=20081010AD") in new stack

-- Executing [s@macro-tl-set-variables2:4] GotoIf("SIP/314-b5a159e0", "1 ?setmoh") in new stack

-- Goto (macro-tl-set-variables2,s,6)

-- Executing [s@macro-tl-set-variables2:6] SetMusicOnHold("SIP/314-b5a159e0", "20081010AD") in new stack

-- Executing [s@macro-tl-set-variables2:7] Goto("SIP/314-b5a159e0", "from-inside-redir|611|1") in new stack

-- Goto (from-inside-redir,611,1)

== Channel 'SIP/314-b5a159e0' jumping out of macro 'tl-set-variables2'

-- Executing [611@from-inside-redir:1] Macro("SIP/314-b5a159e0", "tl-queue|TestQueueSales||test|") in new stack

-- Executing [s@macro-tl-queue:1] Answer("SIP/314-b5a159e0", "") in new stack

-- Executing [s@macro-tl-queue:2] Set("SIP/314-b5a159e0", "__RINGGROUP_TIMEOUT=60") in new stack

-- Executing [s@macro-tl-queue:3] Set("SIP/314-b5a159e0", "__MONITOR_FILENAME=queue-TestQueueSales-2008-11-10-11:20:47-314") in new stack

-- Executing [s@macro-tl-queue:4] Set("SIP/314-b5a159e0", "CALLERID(name)=testKyriakos Mavromichalis") in new stack

-- Executing [s@macro-tl-queue:5] Set("SIP/314-b5a159e0", "QUEUE_MOH=") in new stack

-- Executing [s@macro-tl-queue:6] GotoIf("SIP/314-b5a159e0", "1?noqueuemoh") in new stack

-- Goto (macro-tl-queue,s,8)

-- Executing [s@macro-tl-queue:8] GotoIf("SIP/314-b5a159e0", "1?nomoh") in new stack

-- Goto (macro-tl-queue,s,10)

-- Executing [s@macro-tl-queue:10] GotoIf("SIP/314-b5a159e0", "1?NoOptions") in new stack

-- Goto (macro-tl-queue,s,12)

-- Executing [s@macro-tl-queue:12] Queue("SIP/314-b5a159e0", "TestQueueSales|itT") in new stack

-- Started music on hold, class '20081010AD', on SIP/314-b5a159e0

-- Timeout on SIP/5060-b5a057e0

== CDR updated on SIP/5060-b5a057e0

Submitted by eeman on Tue, 11/11/2008 Permalink

show me your entry for a queue in queues.conf that is playing 20081010AD instead of the music class you want.

Submitted by eeman on Tue, 11/11/2008 Permalink

this part of your details...

-- Executing [s@macro-tl-queue:5] Set("SIP/314-b5a159e0", "QUEUE_MOH=") in new stack

-- Executing [s@macro-tl-queue:6] GotoIf("SIP/314-b5a159e0", "1?noqueuemoh") in new stack

-- Goto (macro-tl-queue,s,8)

-- Executing [s@macro-tl-queue:8] GotoIf("SIP/314-b5a159e0", "1?nomoh") in new stack

is this part of the script...

exten => s,n,Set(QUEUE_MOH=${DB(TL/${ARG1}/MOH)})

; default music associated with the queue

exten => s,n,GotoIf($["${QUEUE_MOH}" = ""]?noqueuemoh)

exten => s,n,SetMusicOnHold(${QUEUE_MOH})

; override

exten => s,n(noqueuemoh),GotoIf($["${ARG4}" = ""]?nomoh)

exten => s,n,SetMusicOnHold(${ARG4})

you apparently have not saved your changes in a while. There are 2 ways to get this value:

1. when you save your queue settings now, an astdb value gets written for this queue.

2. if the value is not set, then it will use ARG4 of the tl-queue script that you created as a feature extension, actually titled: Music on Hold

go back and edit/save both of these screens and see if that corrects your problem. you are currently only passing 2 arguements (1 and 3).

"tl-queue|TestQueueSales||test|"