Extension that forwards directly to outbound number

Right now I have the following:

exten => XXXXXXXXX, 1, Dial(SIP/6000,30,tr)
exten => XXXXXXXXX, 2, Dial(SIP/6001,30,tr)
exten => XXXXXXXXX, 101, VoiceMail,u6001

First the call rings to 6000 sip phone, after 30 seconds if nobody answers, it rings to 6001 sip phone.

I want to add a third option where it will ring to an outside landline. My system is setup with outbound calling (IP-based, via Gafachi). Just not sure of the Dial() syntax to make this happen.

thanks
john

is it SIP or fxo?
if it is SIP then it would be:
exten => XXXXXXXXX,3,Dial(SIP/name/number)

if it is fxo then you would do
exten => XXXXXXXX,3,Dial(zap/g1/number)

It is SIP, and I was able to get it to work, with one exception.

exten => XXXXXXXXXX, 1, Dial(SIP/6000,40,tr)
exten => XXXXXXXXXX, 2, Dial(SIP/6001,40,tr)
exten => XXXXXXXXXX, 2, Dial,SIP/2155551212@gafachi||o
exten => XXXXXXXXXX, 100, VoiceMail,u6000

The above works ok. Rings to sip phone 6000, if no answer after 40 seconds, rings to sip phone 6001. If no answer after 40 seconds, rings to outside 215 number.

Problem is I lose control at that point once the call goes to the outside number. What I want to do is ring that outside 215 number for say 20 seconds, then if no answer, ring another outside number for 20 seconds, and so on, and if no answer, eventually land at 100 Voicemail.

Thanks
john

It is SIP, and I was able to get it to work, with one exception.

exten => XXXXXXXXXX, 1, Dial(SIP/6000,40,tr)
exten => XXXXXXXXXX, 2, Dial(SIP/6001,40,tr)
exten => XXXXXXXXXX, 2, Dial,SIP/2155551212@gafachi||o
exten => XXXXXXXXXX, 100, VoiceMail,u6000

The above works ok. Rings to sip phone 6000, if no answer after 40 seconds, rings to sip phone 6001. If no answer after 40 seconds, rings to outside 215 number.

Problem is I lose control at that point once the call goes to the outside number. What I want to do is ring that outside 215 number for say 20 seconds, then if no answer, ring another outside number for 20 seconds, and so on, and if no answer, eventually land at 100 Voicemail.

Thanks
john

It is SIP, and I was able to get it to work, with one exception.

exten => XXXXXXXXXX, 1, Dial(SIP/6000,40,tr)
exten => XXXXXXXXXX, 2, Dial(SIP/6001,40,tr)
exten => XXXXXXXXXX, 3, Dial,SIP/2155551212@gafachi||o
exten => XXXXXXXXXX, 100, VoiceMail,u6000

The above works ok. Rings to sip phone 6000, if no answer after 40 seconds, rings to sip phone 6001. If no answer after 40 seconds, rings to outside 215 number.

Problem is I lose control at that point once the call goes to the outside number. What I want to do is ring that outside 215 number for say 20 seconds, then if no answer, ring another outside number for 20 seconds, and so on, and if no answer, eventually land at 100 Voicemail.

Thanks
john