I have been trying for hours now to do what I feel should be relatively straight forward and simple.
I want to have a BLF on all phones that monitor a feature code status. The feature code is to enable/disable a looping multicast broadcast of a recording.
More simply put, I want a button on all phones to play a pre recorded message over and over when a button is pushed. When that same button is pushed on any other phone, I want to cancel the message from broadcasting.
Does anyone have any thoughts as to why I can not get it to work!?
This is the code I have come up with thus far with descriptions;
exten => *89,1,Verbose(1, “Enabling multicast loop playback”)
same => n,Set(MULTICAST_IP=234.2.1.1) ; Change to desired multicast address
same => n,Set(MULTICAST_PORT=2000) ; Change to desired multicast port
same => n,Set(MULTICAST_TTL=5) ; Change to desired multicast TTL
same => n,Set(MULTICAST_CODEC=ulaw) ; Change to desired codec
same => n,Set(MULTICAST_PAYLOAD_SIZE=20) ; Change to desired payload size
same => n,Set(MULTICAST_LOOP=true) ; Enable multicast loop
same => n,Set(__PLAYBACK_STATUS=ON)
same => n,Playback(Alert-Propane)
same => n,MulticastSend(${MULTICAST_IP},${MULTICAST_PORT},${MULTICAST_TTL},${MULTICAST_CODEC},${MULTICAST_PAYLOAD_SIZE})
same => n,GotoIf($[${__PLAYBACK_STATUS} = “ON”]?LOOP)
exten => *89,LOOP,1,Verbose(1, “Looping multicast playback”)
same => n,MulticastSend(${MULTICAST_IP},${MULTICAST_PORT},${MULTICAST_TTL},${MULTICAST_CODEC},${MULTICAST_PAYLOAD_SIZE})
same => n,GotoIf($[${__PLAYBACK_STATUS} = “ON”]?LOOP)
exten => *89,disable,1,Verbose(1, “Disabling multicast loop playback”)
same => n,Set(__PLAYBACK_STATUS=OFF)
same => n,Set(MULTICAST_LOOP=false) ; Disable multicast loop
same => n,Hangup()