Follow me with Dialgroup

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.

Just a heads up, You don’t want to keep adding endpoints to the dialgroup, it’s a one time per endpoint operation.

Do you have a console log of a call when it falls through?

You have no timeout on your dila.

The GotoIf jumps backwards on both true and false branches, so the dialplan can never reach the second Dial. (You can use named priorities to avoid having to count.)

t is not connection timed out, but dialing timed out before a complete number was entered (requires overlap dialing).

Thank you David, you were right and I got it fixed.

John, I was wondering if you would elaborate on your statement about not adding endpoints? What is the right way to do it when I want to ring all the phones in the office?

You only need to build the dialgroup a single time, Don’t keep adding to the group every time it is used, the members are persistent.

To manage the dialgroup I’d recommend an internal non-public reachable extension to add and remove members as needed.

1 Like

You don’t need to build it at all if it is fixed,; just code teh expanded list directly into the Dial parameters.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.