Streaming MOH worked and then stopped
Hi Folks...I followed all the instructions here and it was working great. Then weeks later I decided to upgrade PIAF et al and then when I tried it again all I get is the "default". THe logs show the correct stream being selected but the class of default always seems to play. Anyone have any ideas?
I'm posting some logs here--
-- Added extension '*293' priority 1 to app-recordings
-- Added extension '*293' priority 2 to app-recordings
-- Added extension '*293' priority 3 to app-recordings
-- Registered IAX2 to '64.2.142.116', who sees us as 24.115.160.130:4569 with no messages waiting
-- Executing [69@from-internal:1] Answer("SIP/600-09b6f338", "") in new stack
-- Executing [69@from-internal:2] MusicOnHold("SIP/600-09b6f338", "Olam-Radio") in new stack
-- Started music on hold, class 'default', on SIP/600-09b6f338
-- Stopped music on hold on SIP/600-09b6f338
== Spawn extension (from-internal, 69, 2) exited non-zero on 'SIP/600-09b6f338'
-- Executing [h@from-internal:1] Macro("SIP/600-09b6f338", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/600-09b6f338", "vw") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/600-09b6f338", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/600-09b6f338", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/600-09b6f338", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/600-09b6f338", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/600-09b6f338", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/600-09b6f338' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/600-09b6f338'
-- Executing [68742@from-internal:1] NoOp("SIP/600-09b6f338", "Running miscapp 2: Telephone Music") in new stack
-- Executing [68742@from-internal:2] Goto("SIP/600-09b6f338", "music|s|1") in new stack
-- Goto (music,s,1)
-- Executing [s@music:1] Answer("SIP/600-09b6f338", "") in new stack
-- Executing [s@music:2] Flite("SIP/600-09b6f338", ""After the beep press the number of the broadcast channel you wish to listen to or press 9 for a list of channels."") in new stack
== Parsing '/etc/asterisk/flite.conf': Found
-- <SIP/600-09b6f338> Playing '/tmp/flite_buf_80bxKK' (language 'en')
-- Executing [s@music:3] WaitExten("SIP/600-09b6f338", "|") in new stack
== CDR updated on SIP/600-09b6f338
-- Executing [3@music:1] MusicOnHold("SIP/600-09b6f338", "Shmais-Radio") in new stack
-- Started music on hold, class 'default', on SIP/600-09b6f338
-- Stopped music on hold on SIP/600-09b6f338
== Spawn extension (music, 3, 1) exited non-zero on 'SIP/600-09b6f338'
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is 'Rabbi Lipsker' number is '600'
dialparties.agi: Methodology of ring is 'ringallv2'
-- dialparties.agi: Added extension 610 to extension map
-- dialparties.agi: Extension 610 cf is disabled
-- dialparties.agi: Extension 610 do not disturb is disabled
-- dialparties.agi: dbset CALLTRACE/610 to 600
-- dialparties.agi: Filtered ARG3: 610
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("SIP/600-b7d01ec0", "SIP/610|22|m(JewishBroadcast)tM(auto-blkvm)") in new stack
-- Called 610
-- Started music on hold, class 'default', on SIP/600-b7d01ec0
-- SIP/610-08faa700 is ringing
-- Stopped music on hold on SIP/600-b7d01ec0
== Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/600-b7d01ec0' in macro 'dial'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/600-b7d01ec0'
-- Executing [h@macro-dial:1] Macro("SIP/600-b7d01ec0", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/600-b7d01ec0", "vw") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/600-b7d01ec0", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/600-b7d01ec0", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/600-b7d01ec0", "0?skipblkvm") in new stack
-- Executing [s@macro-hangupcall:7] NoOp("SIP/600-b7d01ec0", "Cleaning Up Block VM Flag: BLKVM/610/SIP/600-b7d01ec0") in new stack
-- Executing [s@macro-hangupcall:8] DBdel("SIP/600-b7d01ec0", "BLKVM/610/SIP/600-b7d01ec0") in new stack
-- DBdel: family=BLKVM, key=610/SIP/600-b7d01ec0
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/600-b7d01ec0", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/600-b7d01ec0", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/600-b7d01ec0' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/600-b7d01ec0'
------------------------------
Here is extensions_override_ppbx.conf:
;placeholder for future expansion PIAF Dev Team
[music]
; dial 68742 (music) from extension gets to pick streamed MOH
;Background(custom/telephonemusic)
exten => s,1,Answer
exten => s,2,Flite("After the beep press the number of the broadcast channel you wish to listen to or press 9 for a list of channels.")
exten => s,3,WaitExten(,)
exten => s,4,NoOp()
; dial users
exten => 1,1,MusicOnHold(JewishBroadcast)
exten => 2,1,MusicOnHold(Olam-Radio)
exten => 3,1,MusicOnHold(Shmais-Radio)
exten => 8,1,MusicOnHold(default)
exten => 9,1,Flite("Press 1 for Jewish Broadcast dot com. 2 for O L A M Radio. 3 for Shmais Radio. 8 for PBX default. Press 9 to hear this list again.")
exten => 9,2,WaitExten()
exten => 9,3,Goto(music,4)
exten => t,n,Hangup
;exten => s,2,Flite("After the beep press the number of the broadcast channel you wish to listen to or press 9 for a list of channels.")
;exten => s,3,Read(MusicCode),beep,1)
;exten => s,4,GoTo(QueueMusic,s,${MusicCode})
;exten => s,5,Hangup
----------------------------------------
Here is extensions_custom.conf:
; Extensions in AMP have access to the 'from-internal' context.
; The context 'from-internal-custom' is included in 'from-internal' by default
[from-internal-custom]
; dial 947 for weather by zipcode courtesy of nerdvittles.com
exten => 947,1,Answer
exten => 947,2,Wait(1)
;exten => 947,3,DigitTimeout(7)
;exten => 947,4,ResponseTimeout(10)
exten => 947,3,Set(TIMEOUT(digit)=7)
exten => 947,4,Set(TIMEOUT(response)=10)
exten => 947,5,Flite("At the beep enter the five digit zip code for the weather report you wish to retrieve.")
exten => 947,6,Read(ZIPCODE,beep,5)
exten => 947,7,Flite("Please hold a moment while we contact the National Weather Service for your report.")
exten => 947,8,AGI(nv-weather-zip.php|${ZIPCODE})
exten => 947,9,NoOp(Wave file: ${TMPWAVE})
exten => 947,10,Playback(${TMPWAVE})
exten => 947,11,Hangup
; demo dial 1234
exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234
exten => 1234,2,Hangup()
exten => h,1,Hangup()
; dial 69 from extension gets streamed MOH
exten => 69,1,Answer
;exten => 69,2,MusicOnHold(JewishBroadcast)
exten => 69,2,MusicOnHold(Olam-Radio)
exten => 69,3,Hangup
include => custom-recordme
; custom-count2four,s,1 can be used as a custom target for
; a Digital Receptionist menu or a Ring Group
[custom-count2four]
exten => s,1,SayDigits(1234)
exten => s,2,Hangup
[QueueMusic]
exten => s,1,MusicOnHold(JewishBroadcast)
exten => s,2,MusicOnHold(Olam-Radio)
exten => s,3,MusicOnHold(Shmais-Radio)
exten => s,4,Flite("Press 1 for Jewish Broadcast dot com. 2 for Olam Radio. 3 for Shmais Radio. Press 9 to hear this list again.")
exten => s,5,goto(from-internal-custom,68742,2)
exten => s,6,Hangup
; extensions can also dial 5678
; custom-recordme,5678,1 can be used as a custom target for
; a Digital Receptionist menu or a Ring Group
[custom-recordme]
exten => 5678,1,Wait(2)
exten => 5678,2,Record(/tmp/asterisk-recording:gsm)
exten => 5678,3,Wait(2)
exten => 5678,4,Playback(/tmp/asterisk-recording)
exten => 5678,5,Wait(2)
exten => 5678,6,Hangup
[traffic]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Playback(pls-wait-connect-call&digits/2&traffic&information)
exten => s,n,Dial(SIP/TollFreeGateway/18666987232)
exten => s,n,Hangup()
exten => s,t,Congestion()
#include extensions_a2billing.conf
#include custom_weatherzip.conf
[mm-announce]
exten => s,1,Set(CALLERID(name)=MMGETOUT)
exten => s,n,Answer
exten => s,n,Playback(conf-will-end-in)
exten => s,n,Playback(digits/5)
exten => s,n,Playback(minutes)
exten => s,n,Hangup
[mm-end]
;Used by cbEnd script to play end of conference warning
exten => _mmplay.,1,Answer
exten => _mmplay.,2,MeetMe(|dq)
exten => _mmplay.,3,Hangup
[custom-meetme3]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,CBMysql()
exten => s,n,Hangup
-----------------------------
Looking forward to hearing from y'all
thanks leon