I hope someone has done this before or can point me in the right direction.
We have a extension that is a “hotline” for our department. First it rings all of our desk phones. If no one answers, it moves onto the cell phones. The intention was to have all of the cell phones ringing at the same time to reduce the callers wait time. To make sure we have a person on the cell phone, the dial command executes a Macro. The Macro asks for a key press to verify connect the call. The problem is the first cell phone that either picks up or goes to voicemail causes the other cell phones to stop ringing.
The dial command I currently use looks like this
Dial(“DAHDI/G1/#####&DAHDI/G1/####,30,rtM(call-forward-accept)”)
The Macro looks like this…
[macro-call-forward-accept]
exten = s,1,Wait(1)
exten = s,n,Read(ACCEPTCALL,1-yes-2-no,1,1,6) ;
exten = s,n,GotoIf($["${ACCEPTCALL}" = “”] ?TryAgain)
exten = s,n,GotoIf($[${ACCEPTCALL} = 2] ?No)
exten = s,n,GotoIf($[${ACCEPTCALL} = 1] ?Yes)
exten = s,n(TryAgain),noop
exten = s,n,Read(ACCEPTCALL,1-yes-2-no,1,1,10) ; (repeatoptions)
exten = s,n,GotoIf($["${ACCEPTCALL}" = “”] ?No)
exten = s,n,GotoIf($[${ACCEPTCALL} = 2] ?No)
exten = s,n,GotoIf($[${ACCEPTCALL} = 1] ?Yes)
exten = s,n(Yes),Playback(auth-thankyou)
exten = s,n,Set(MACRO_RESULT=“Yes”)
exten = s,n,MacroExit()
exten = s,n(No),Set(MACRO_RESULT=“CONTINUE”)
exten = s,n,MacroExit()
What I am looking to do is have the Dial keep going until someone makes it through the Macro pressing 1 to accept the call or until our dial timeout moves us along in the dialplan. Hopefully there is an easy option that someone can suggest?
Thanks!