[HELP]Strange timeout problem

I’m trying to set up my dialplan so that when I dial 1 (for sales) it first calls a hardware sip phone, then after 10 seconds it will start ringing a software sip phone on a laptop and a cellphone through voipjet.
When I dial 1, it rings for a while, then it times out and says good bye. The cellphone rings a couple times but not long enough to answer it.

simplified extensions.conf:


exten => 301,1,dial(${voipjet}/${petecell})
exten => 204,1,dial(sip/pete,20)

exten => s,1,answer()
exten => s,2,background(asterisk-recording)

exten => 1,1,set(CALLERID(name)=Sales)
exten => 1,2,dial(SIP/miked&local/10301@delay&local/10204@delay)

exten => t,1,playback(goodbye)
exten => t,2,hangup()

exten => _XX.,1,wait(${EXTEN:0:2})
exten => _XX.,2,dial(Local/${EXTEN:2}@internal)