I am trying to set up an incoming DID to ring all phones and if not answered in 10 seconds to forward to my cell. The following works when only one extension is used:
exten => _5051,1,Answer
exten => _5051,n,Dial(SIP/10,10)
exten => _5051,n,GotoIf($[“${DIALSTATUS}” = “NOANSWER”]?:4:5)
exten => _5051,n,Dial(SIP/4805922027@peer.cfly.co)
exten => _5051,n,Hangup()
exten => _5051,n,NoOp(${EXTEN}::${PRIORITY})
exten => _5051,n,VoiceMail(u${EXTEN}@default)
exten => _5051,n,Hangup()
exten => t,1,Playback(connection-timed-out)
exten => t,2,Playback(goodbye)
exten => t,3,Hangup()
But some reason this one never forwards to my cell:
exten => _5050,1,Answer
exten => _5050,n,Set(DIALGROUP(mygroup,add)=SIP/10)
exten => _5050,n,Set(DIALGROUP(mygroup,add)=SIP/11)
exten => _5050,n,Set(DIALGROUP(mygroup,add)=SIP/12)
exten => _5050,n,Dial(${DIALGROUP(mygroup)})
exten => _5050,n,GotoIf($[“${DIALSTATUS}” = “NOANSWER”]?:4:5)
exten => _5050,n,Dial(SIP/4805922027@peer.cfly.co)
exten => _5050,n,Hangup()
exten => _5050,n,NoOp(${EXTEN}::${PRIORITY})
exten => _5050,n,VoiceMail(u${EXTEN}@default)
exten => _5050,n,Hangup()
exten => t,1,Playback(connection-timed-out)
exten => t,2,Playback(goodbye)
exten => t,3,Hangup()
I was hoping I could also tag those calls as being forwarded by appending an extra couple numbers to the caller id like this:
exten => _5050,n,Set(CALLERID(all)="ReminderDental" <${CALLERIDNUM}00>)
Not sure if you guys have a better way, but I would love some feedback.