Everything is fine until I use a time condition

Everything is fine when I set my incoming call router to send the calls to a ring group or a specific extension. But when I set it to send the calls to a time condition, which then sends them to another time condition, which then sends them to either a ring group or an extension, my calls never make it through. My PBX receives the call, and it sends the call to extension 10 (which is a virtual extension that goes to my after-hours answering service), but then it just hangs up instead of bridging the calls. Here is a log of a test call made under those conditions.

Connected to Asterisk 1.8.20.0 currently running on localhost (pid = 3512)
Verbosity is at least 4
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [[email protected]:1] Set("SIP/callcentric-00000139", "__FROM_DID=17772358247") in new stack
    -- Executing [[email protected]:2] Gosub("SIP/callcentric-00000139", "app-blacklist-check,s,1") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/callcentric-00000139", "0?blacklisted") in new stack
    -- Executing [[email protected]:2] Set("SIP/callcentric-00000139", "CALLED_BLACKLIST=1") in new stack
    -- Executing [[email protected]:3] Return("SIP/callcentric-00000139", "") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/callcentric-00000139", "1 ?Set(CALLERID(name)=17023500640)") in new stack
    -- Executing [[email protected]:4] Set("SIP/callcentric-00000139", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [[email protected]:5] Set("SIP/callcentric-00000139", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [[email protected]:6] Goto("SIP/callcentric-00000139", "timeconditions,2,1") in new stack
    -- Goto (timeconditions,2,1)
    -- Executing [[email protected]:1] GotoIfTime("SIP/callcentric-00000139", "12:00-01:00,mon-sun,1-31,jan-dec?from-did-direct,10,1") in new stack
    -- Goto (from-did-direct,10,1)
    -- Executing [[email protected]:1] Macro("SIP/callcentric-00000139", "exten-vm,novm,10") in new stack
    -- Executing [[email protected]:1] Macro("SIP/callcentric-00000139", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("SIP/callcentric-00000139", "AMPUSER=17023500640") in new stack
    -- Executing [[email protected]:2] GotoIf("SIP/callcentric-00000139", "0?report") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/callcentric-00000139", "1?Set(REALCALLERIDNUM=17023500640)") in new stack
    -- Executing [[email protected]:4] Set("SIP/callcentric-00000139", "AMPUSER=") in new stack
    -- Executing [[email protected]:5] Set("SIP/callcentric-00000139", "AMPUSERCIDNAME=") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/callcentric-00000139", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [[email protected]:10] GotoIf("SIP/callcentric-00000139", "0?continue") in new stack
    -- Executing [[email protected]:11] Set("SIP/callcentric-00000139", "__TTL=64") in new stack
    -- Executing [[email protected]:12] GotoIf("SIP/callcentric-00000139", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [[email protected]:19] Set("SIP/callcentric-00000139", "CALLERID(number)=17023500640") in new stack
    -- Executing [[email protected]:20] Set("SIP/callcentric-00000139", "CALLERID(name)=17023500640") in new stack
    -- Executing [[email protected]:21] NoOp("SIP/callcentric-00000139", "Using CallerID "17023500640" <17023500640>") in new stack
    -- Executing [[email protected]:2] Set("SIP/callcentric-00000139", "RingGroupMethod=none") in new stack
    -- Executing [[email protected]:3] Set("SIP/callcentric-00000139", "VMBOX=novm") in new stack
    -- Executing [[email protected]:4] Set("SIP/callcentric-00000139", "__EXTTOCALL=10") in new stack
    -- Executing [[email protected]:5] Set("SIP/callcentric-00000139", "CFUEXT=") in new stack
    -- Executing [[email protected]:6] Set("SIP/callcentric-00000139", "CFBEXT=") in new stack
    -- Executing [[email protected]:7] Set("SIP/callcentric-00000139", "RT=""") in new stack
    -- Executing [[email protected]:8] Macro("SIP/callcentric-00000139", "record-enable,10,IN") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/callcentric-00000139", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [[email protected]:4] ExecIf("SIP/callcentric-00000139", "0?MacroExit()") in new stack
    -- Executing [[email protected]:5] GotoIf("SIP/callcentric-00000139", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [[email protected]:15] GotoIf("SIP/callcentric-00000139", "1?IN") in new stack
    -- Goto (macro-record-enable,s,20)
    -- Executing [[email protected]:20] ExecIf("SIP/callcentric-00000139", "1?MacroExit()") in new stack
    -- Executing [[email protected]:9] Macro("SIP/callcentric-00000139", "dial-one,"",tr,10") in new stack
    -- Executing [[email protected]:1] Set("SIP/callcentric-00000139", "DEXTEN=10") in new stack
    -- Executing [[email protected]:2] Set("SIP/callcentric-00000139", "DIALSTATUS_CW=") in new stack
    -- Executing [[email protected]:3] GosubIf("SIP/callcentric-00000139", "0?screen,1") in new stack
    -- Executing [[email protected]:4] GosubIf("SIP/callcentric-00000139", "0?cf,1") in new stack
    -- Executing [[email protected]:5] GotoIf("SIP/callcentric-00000139", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,8)
    -- Executing [[email protected]:8] GotoIf("SIP/callcentric-00000139", "0?nodial") in new stack
    -- Executing [[email protected]:9] GotoIf("SIP/callcentric-00000139", "0?continue") in new stack
    -- Executing [[email protected]:10] Set("SIP/callcentric-00000139", "EXTHASCW=") in new stack
    -- Executing [[email protected]:11] GotoIf("SIP/callcentric-00000139", "1?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,12)
    -- Executing [[email protected]:12] GotoIf("SIP/callcentric-00000139", "0?docfu:skip3") in new stack
    -- Goto (macro-dial-one,s,16)
    -- Executing [[email protected]:16] GotoIf("SIP/callcentric-00000139", "1?next2:continue") in new stack
    -- Goto (macro-dial-one,s,17)
    -- Executing [[email protected]:17] GotoIf("SIP/callcentric-00000139", "1?continue") in new stack
    -- Goto (macro-dial-one,s,25)
    -- Executing [[email protected]:25] GotoIf("SIP/callcentric-00000139", "0?nodial") in new stack
    -- Executing [[email protected]:26] GosubIf("SIP/callcentric-00000139", "1?dstring,1:dlocal,1") in new stack
    -- Executing [[email protected]:1] Set("SIP/callcentric-00000139", "DSTRING=") in new stack
    -- Executing [[email protected]:2] Set("SIP/callcentric-00000139", "DEVICES=10") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/callcentric-00000139", "0?Return()") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/callcentric-00000139", "0?Set(DEVICES=0)") in new stack
    -- Executing [[email protected]:5] Set("SIP/callcentric-00000139", "LOOPCNT=1") in new stack
    -- Executing [[email protected]:6] Set("SIP/callcentric-00000139", "ITER=1") in new stack
    -- Executing [[email protected]:7] Set("SIP/callcentric-00000139", "THISDIAL=SIP/callcentric/18002875415") in new stack
    -- Executing [[email protected]:8] GosubIf("SIP/callcentric-00000139", "1?zap2dahdi,1") in new stack
    -- Executing [[email protected]:1] ExecIf("SIP/callcentric-00000139", "0?Return()") in new stack
    -- Executing [[email protected]:2] Set("SIP/callcentric-00000139", "NEWDIAL=") in new stack
    -- Executing [[email protected]:3] Set("SIP/callcentric-00000139", "LOOPCNT2=1") in new stack
    -- Executing [[email protected]:4] Set("SIP/callcentric-00000139", "ITER2=1") in new stack
    -- Executing [[email protected]:5] Set("SIP/callcentric-00000139", "THISPART2=SIP/callcentric/18002875415") in new stack
    -- Executing [[email protected]:6] ExecIf("SIP/callcentric-00000139", "0?Set(THISPART2=DAHDI/callcentric/18002875415)") in new stack
    -- Executing [[email protected]:7] Set("SIP/callcentric-00000139", "NEWDIAL=SIP/callcentric/18002875415&") in new stack
    -- Executing [[email protected]:8] Set("SIP/callcentric-00000139", "ITER2=2") in new stack
    -- Executing [[email protected]:9] GotoIf("SIP/callcentric-00000139", "0?begin2") in new stack
    -- Executing [[email protected]:10] Set("SIP/callcentric-00000139", "THISDIAL=SIP/callcentric/18002875415") in new stack
    -- Executing [[email protected]:11] Return("SIP/callcentric-00000139", "") in new stack
    -- Executing [[email protected]:9] Set("SIP/callcentric-00000139", "DSTRING=SIP/callcentric/18002875415&") in new stack
    -- Executing [[email protected]:10] Set("SIP/callcentric-00000139", "ITER=2") in new stack
    -- Executing [[email protected]:11] GotoIf("SIP/callcentric-00000139", "0?begin") in new stack
    -- Executing [[email protected]:12] Set("SIP/callcentric-00000139", "DSTRING=SIP/callcentric/18002875415") in new stack
    -- Executing [[email protected]:13] Return("SIP/callcentric-00000139", "") in new stack
    -- Executing [[email protected]:27] GotoIf("SIP/callcentric-00000139", "0?nodial") in new stack
    -- Executing [[email protected]:28] GotoIf("SIP/callcentric-00000139", "0?skiptrace") in new stack
    -- Executing [[email protected]:29] GosubIf("SIP/callcentric-00000139", "1?ctset,1:ctclear,1") in new stack
    -- Executing [[email protected]:1] Set("SIP/callcentric-00000139", "DB(CALLTRACE/10)=17023500640") in new stack
    -- Executing [[email protected]:2] Return("SIP/callcentric-00000139", "") in new stack
    -- Executing [[email protected]:30] Set("SIP/callcentric-00000139", "D_OPTIONS=tr") in new stack
    -- Executing [[email protected]:31] ExecIf("SIP/callcentric-00000139", "0?SIPAddHeader(Alert-Info: )") in new stack
    -- Executing [[email protected]:32] ExecIf("SIP/callcentric-00000139", "0?SIPAddHeader()") in new stack
    -- Executing [[email protected]:33] ExecIf("SIP/callcentric-00000139", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [[email protected]:34] GosubIf("SIP/callcentric-00000139", "0?qwait,1") in new stack
    -- Executing [[email protected]:35] Set("SIP/callcentric-00000139", "__CWIGNORE=") in new stack
    -- Executing [[email protected]:36] Set("SIP/callcentric-00000139", "__KEEPCID=TRUE") in new stack
    -- Executing [[email protected]:37] Dial("SIP/callcentric-00000139", "SIP/callcentric/18002875415,"",tr") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/callcentric/18002875415
    -- SIP/callcentric-0000013a is making progress passing it to SIP/callcentric-00000139
    -- SIP/callcentric-0000013a is making progress passing it to SIP/callcentric-00000139
    -- SIP/callcentric-0000013a is making progress passing it to SIP/callcentric-00000139
    -- SIP/callcentric-0000013a answered SIP/callcentric-00000139
    -- Executing [[email protected]:1] Macro("SIP/callcentric-00000139", "hangupcall,") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/callcentric-00000139", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [[email protected]:9] NoOp("SIP/callcentric-00000139", "End of MIXMON check") in new stack
    -- Executing [[email protected]:10] GotoIf("SIP/callcentric-00000139", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [[email protected]:28] NoOp("SIP/callcentric-00000139", "End of MEETME check") in new stack
    -- Executing [[email protected]:29] GotoIf("SIP/callcentric-00000139", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [[email protected]:34] NoOp("SIP/callcentric-00000139", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [[email protected]:35] GotoIf("SIP/callcentric-00000139", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [[email protected]:41] NoOp("SIP/callcentric-00000139", "MONITOR_FILENAME=") in new stack
    -- Executing [[email protected]:42] GotoIf("SIP/callcentric-00000139", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [[email protected]:45] GotoIf("SIP/callcentric-00000139", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [[email protected]:48] GotoIf("SIP/callcentric-00000139", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [[email protected]:50] AGI("SIP/callcentric-00000139", "hangup.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <SIP/callcentric-00000139>AGI Script hangup.agi completed, returning 0
    -- Executing [[email protected]:51] Hangup("SIP/callcentric-00000139", "") in new stack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/callcentric-00000139' in macro 'hangupcall'
  == Spawn extension (macro-dial-one, h, 1) exited non-zero on 'SIP/callcentric-00000139'
  == Spawn extension (macro-dial-one, s, 37) exited non-zero on 'SIP/callcentric-00000139' in macro 'dial-one'
  == Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/callcentric-00000139' in macro 'exten-vm'
  == Spawn extension (from-did-direct, 10, 1) exited non-zero on 'SIP/callcentric-00000139'

Update: the time condition is not the problem. I changed the destination of the time condition from extension 10 to an IVR. The IVR works. If the user presses one, it sends the call to extension 7 (an internal handset). If they press 2, it sends the call to extension 10 (an external phone number), and the same problem occurs. So I have determined that the problem lies somewhere in the process of essentially forwarding the call. What could cause this?