Turn off MoH when caller listens to announcement

Caller is in the queue listening to moh. The announcement comes on every 1 minute. The music keeps playing even while the announcement is playing.

How do we shut off the music while the caller is listening to their place in line and the announcement?

Shouldn’t be that way, and it is possibly a bug.

Can you please reply with the Queue module version, as well as your Asterisk version?

queue module 14.0.2.22
Current Asterisk Version: 13.22.0

I tried reproducing this on FreePBX 14 same version of Asterisk and Queue module, using the default MOH.

Here’s my config in the Queue.

And at every minute mark, it stopped playing the MOH and started playing the IVR audio.

You can see it in the Asterisk logs.

[2018-11-14 21:34:35] VERBOSE[52822][C-00000000] res_musiconhold.c: Stopped music on hold on SIP/Trunk-00000000
[2018-11-14 21:34:35] VERBOSE[52822][C-00000000] app_queue.c: Playing periodic announcement
[2018-11-14 21:34:35] VERBOSE[52822][C-00000000] file.c: <SIP/Trunk-00000000> Playing 'custom/MyIVRAudio.slin' (language 'en')
[2018-11-14 21:34:56] VERBOSE[52822][C-00000000] res_musiconhold.c: Started music on hold, class 'default', on channel 'SIP/Trunk-00000000'
[2018-11-14 21:35:35] VERBOSE[52822][C-00000000] res_musiconhold.c: Stopped music on hold on SIP/Trunk-00000000
[2018-11-14 21:35:35] VERBOSE[52822][C-00000000] app_queue.c: Playing periodic announcement
[2018-11-14 21:35:35] VERBOSE[52822][C-00000000] file.c: <SIP/Trunk-00000000> Playing 'custom/MyIVRAudio.slin' (language 'en')
[2018-11-14 21:35:55] VERBOSE[52822][C-00000000] res_musiconhold.c: Started music on hold, class 'default', on channel 'SIP/Trunk-00000000

Can you post a call log?

Also, whats your MOH module version?

MOH module 13.0.22.4

Not sure how to properly copy/paste the log. How do I copy it like yours? See below.

[2018-11-14 14:06:36] VERBOSE[25493][C-00070ab7] res_musiconhold.c: Started music on hold, class ‘default’, on channel ‘PJSIP/Twiilio_Trunk_Oregon-0000c96c’
[2018-11-14 14:06:36] VERBOSE[25861][C-00070abf] pbx.c: Executing [1542233172[email protected]_chanspy:2] ChanSpy("Local/1542233172[email protected];1", “PJSIP/Twiilio_Trunk_Oregon-0000c96c,wqv(4)”) in new stack
[2018-11-14 14:06:36] VERBOSE[25859][C-00070abe] app_chanspy.c: Spying on channel PJSIP/Twiilio_Trunk_Oregon-0000c94e
[2018-11-14 14:06:36] NOTICE[25859][C-00070abe] app_chanspy.c: Attaching Local/1542232809[email protected];1 to PJSIP/Twiilio_Trunk_Oregon-0000c94e
[2018-11-14 14:06:36] NOTICE[25859][C-00070abe] app_chanspy.c: Attaching Local/1542232809
[email protected];1 to PJSIP/Twiilio_Trunk_Oregon-0000c94e
[2018-11-14 14:06:36] VERBOSE[25861][C-00070abf] app_chanspy.c: Spying on channel PJSIP/Twiilio_Trunk_Oregon-0000c96c
[2018-11-14 14:06:36] NOTICE[25861][C-00070abf] app_chanspy.c: Attaching Local/1542233172[email protected];1 to PJSIP/Twiilio_Trunk_Oregon-0000c96c
[2018-11-14 14:06:36] NOTICE[25861][C-00070abf] app_chanspy.c: Attaching Local/1542233172
[email protected];1 to PJSIP/Twiilio_Trunk_Oregon-0000c96c
[2018-11-14 14:06:36] VERBOSE[25863][C-00070abd] pbx.c: Executing [1542232809[email protected]:3] GotoIf("Local/1542232809[email protected];2", “0?pos:holdtime”) in new stack
[2018-11-14 14:06:36] VERBOSE[25863][C-00070abd] pbx_builtins.c: Goto (queuecallback-playposition,15422328091613115,8)
[2018-11-14 14:06:36] VERBOSE[25863][C-00070abd] pbx.c: Executing [1542232809
[email protected]:8] GotoIf(“Local/1542232809[email protected];2", “0?playhold:periodic”) in new stack
[2018-11-14 14:06:36] VERBOSE[25863][C-00070abd] pbx_builtins.c: Goto (queuecallback-playposition,1542232809
1613115,13)
[2018-11-14 14:06:36] VERBOSE[25863][C-00070abd] pbx.c: Executing [1542232809[email protected]:13] GotoIf("Local/1542232809[email protected];2”, “1?periodicannounce:hangup”) in new stack
[2018-11-14 14:06:36] VERBOSE[25863][C-00070abd] pbx_builtins.c: Goto (queuecallback-playposition,15422328091613115,14)
[2018-11-14 14:06:36] VERBOSE[25863][C-00070abd] pbx.c: Executing [1542232809
[email protected]:14] Playback(“Local/1542232809[email protected];2", “queue-periodic-announce”) in new stack
[2018-11-14 14:06:36] VERBOSE[25863][C-00070abd] file.c: <Local/1542232809
[email protected];2> Playing ‘queue-periodic-announce.slin16’ (language ‘en’)
[2018-11-14 14:06:36] VERBOSE[25862][C-00070abc] pbx.c: Executing [1542233172[email protected]:3] GotoIf("Local/1542233172[email protected];2”, “1?pos:holdtime”) in new stack
[2018-11-14 14:06:36] VERBOSE[25862][C-00070abc] pbx_builtins.c: Goto (queuecallback-playposition,15422331721613521,4)
[2018-11-14 14:06:36] VERBOSE[25862][C-00070abc] pbx.c: Executing [1542233172
[email protected]:4] Playback(“Local/1542233172[email protected];2", “queue-thereare”) in new stack
[2018-11-14 14:06:36] VERBOSE[25862][C-00070abc] file.c: <Local/1542233172
[email protected];2> Playing ‘queue-thereare.slin16’ (language ‘en’)
[2018-11-14 14:06:38] VERBOSE[25862][C-00070abc] pbx.c: Executing [1542233172[email protected]:5] SayDigits("Local/1542233172[email protected];2”, “4”) in new stack
[2018-11-14 14:06:38] VERBOSE[25862][C-00070abc] file.c: <Local/1542233172[email protected];2> Playing ‘digits/4.slin16’ (language ‘en’)
[2018-11-14 14:06:39] VERBOSE[25862][C-00070abc] pbx.c: Executing [1542233172
[email protected]:6] Playback(“Local/1542233172[email protected];2", “queue-callswaiting”) in new stack
[2018-11-14 14:06:39] VERBOSE[25862][C-00070abc] file.c: <Local/1542233172
[email protected];2> Playing ‘queue-callswaiting.slin16’ (language ‘en’)
[2018-11-14 14:06:41] VERBOSE[25862][C-00070abc] pbx.c: Executing [1542233172[email protected]:7] Playback("Local/1542233172[email protected];2”, “queue-thankyou”) in new stack
[2018-11-14 14:06:41] VERBOSE[25862][C-00070abc] file.c: <Local/1542233172[email protected];2> Playing ‘queue-thankyou.slin16’ (language ‘en’)
[2018-11-14 14:06:43] VERBOSE[25862][C-00070abc] pbx.c: Executing [1542233172
[email protected]:8] GotoIf(“Local/15422331721613[email protected];2", “1?playhold:periodic”) in new stack
[2018-11-14 14:06:43] VERBOSE[25862][C-00070abc] pbx_builtins.c: Goto (queuecallback-playposition,1542233172
1613521,9)
[2018-11-14 14:06:43] VERBOSE[25862][C-00070abc] pbx.c: Executing [1542233172[email protected]:9] Playback("Local/1542233172[email protected];2”, “queue-holdtime”) in new stack
[2018-11-14 14:06:43] VERBOSE[25862][C-00070abc] file.c: <Local/1542233172*[email protected];2> Playing ‘queue-holdtime.slin16’ (language ‘en’)

Its also starting the music as it announces their place in the queue when they first enter.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.