Hi,
There is a script at the ThirdLane Script Library, named "tl-ringgroup-all".
When i use that script at the inbound route, it works fine (all phones are ringing at the same time), but i hear only ringing and i want a music instead of ringing.
Here is the script:
exten => s,1,Set(i=1)
exten => s,n,Set(amp=)
exten => s,n,Set(WHOLE_STRING=)
exten => s,n,Goto(addone,1)
exten => addone,1,Set(NUMBER_TO_DIAL=${CUT(ARG4, ,${i})})
exten => addone,n,GotoIf($[${LEN(${NUMBER_TO_DIAL})} = 0]?dial,1)
exten => addone,n,GotoIf($[${REGEX("^[1-9]" ${NUMBER_TO_DIAL})} = 0]?device)
;; external number
exten => addone,n,Set(ONE_NUMBER=Local/${NUMBER_TO_DIAL}@outgoing${TL_DASH}${tenant})
exten => addone,n,Goto(append)
;; device
exten => addone,n(device),Set(ONE_NUMBER=${NUMBER_TO_DIAL}${TL_DASH}${tenant})
exten => addone,n(append),Set(WHOLE_STRING=${WHOLE_STRING}${amp}${ONE_NUMBER})
exten => addone,n,Set(amp=&)
exten => addone,n,Set(i=$[${i} + 1])
exten => addone,10,Goto(addone,1)
exten => dial,1,NoOp(WHOLE_STRING=${WHOLE_STRING})
exten => dial,n,Dial(${WHOLE_STRING},${ARG2},${ARG3})
exten => dial,n,Goto(dial-${DIALSTATUS},1)
exten => dial-CHANUNAVAIL,1,Goto(failed,1)
exten => dial-CONGESTION,1,Goto(failed,1)
exten => dial-BUSY,1,Goto(failed,1)
exten => dial-CANCEL,1,Goto(done,1)
exten => dial-NOANSWER,1,Goto(failed,1)
exten => dial-ANSWER,1,Goto(done,1)
exten => done,1,NoOp(done)
exten => done,2,Hangup
exten => failed,1,GotoIf($["${ARG5}" != ""]?${ARG5},s,1)
exten => failed,n,PlayTones(busy)
exten => failed,n,Busy(10)
exten => failed,n,Hangup
---
Group Name (ARG1): Text
Time out (ARG2): Text
Options (ARG3): Text
Phones to ring (ARG4): Text
Auto attendant (ARG5): Voice Menu
1. What i have to do that i can hear a music instead of ringing?
2. I don't need the "ARG5". Which lines can i delete?
Best regards,
Lukas
then you dont want a ring group. you want a queue. Until a device answers the call you're still in an unanswered state and therefore not supposed to pass media. Using a queue will answer the caller first and then send it to the queue application for music and distribution.