Zap channels some time work well but some time generate problems

my zap channel some time do well but some time generate problems it was doing well from last three months but now some time done well and some time generate problems with outgoing calls plz solve me the problem
thanks
it generate the folloing logs

Executing [[email protected]:1] GotoIf(“SIP/315-0914ba40”, “0?2:4”) in new stack

-- Goto (macro-record-enable,s,4)

-- Executing [[email protected]:4] AGI("SIP/315-0914ba40", "recordingcheck|20090121-100330|1232517807.192") in new stack

-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck

recordingcheck|20090121-100330|1232517807.192: Outbound recording enabled.

recordingcheck|20090121-100330|1232517807.192: CALLFILENAME=OUT315-20090121-100330-1232517807.192

-- AGI Script recordingcheck completed, returning 0

-- Executing [[email protected]:999] MixMonitor("SIP/315-0914ba40", "OUT315-20090121-100330-1232517807.192.wav") in new stack

-- Executing [[email protected]:5] Macro("SIP/315-0914ba40", "dialout-trunk|1|0508839493||") in new stack

-- Executing [[email protected]:1] Set("SIP/315-0914ba40", "DIAL_TRUNK=1") in new stack

-- Executing [[email protected]:2] ExecIf("SIP/315-0914ba40", "0|Authenticate|") in new stack

-- Executing [[email protected]:3] GotoIf("SIP/315-0914ba40", "0?disabletrunk|1") in new stack

-- Executing [[email protected]:4] Set("SIP/315-0914ba40", "DIAL_NUMBER=0508839493") in new stack

-- Executing [[email protected]:5] Set("SIP/315-0914ba40", "DIAL_TRUNK_OPTIONS=tr") in new stack

-- Executing [[email protected]:6] Set("SIP/315-0914ba40", "GROUP()=OUT_1") in new stack

-- Executing [[email protected]:7] GotoIf("SIP/315-0914ba40", "0?nomax") in new stack

-- Executing [[email protected]:8] GotoIf("SIP/315-0914ba40", "0?chanfull") in new stack

-- Executing [[email protected]:9] GotoIf("SIP/315-0914ba40", "0?skipoutcid") in new stack

-- Executing [[email protected]:10] Set("SIP/315-0914ba40", "DIAL_TRUNK_OPTIONS=") in new stack

-- Executing [[email protected]:11] Macro("SIP/315-0914ba40", "outbound-callerid|1") in new stack

-- Executing [[email protected]:1] ExecIf("SIP/315-0914ba40", "0|SetCallerPres|") in new stack

-- Executing [[email protected]:2] GotoIf("SIP/315-0914ba40", "1?start") in new stack

-- Goto (macro-outbound-callerid,s,4)

-- Executing [[email protected]:4] NoOp("SIP/315-0914ba40", "REALCALLERIDNUM is 315") in new stack

-- Executing [[email protected]:5] GotoIf("SIP/315-0914ba40", "1?normcid") in new stack

-- Goto (macro-outbound-callerid,s,10)

-- Executing [[email protected]:10] Set("SIP/315-0914ba40", "USEROUTCID=") in new stack

-- Executing [[email protected]:11] Set("SIP/315-0914ba40", "EMERGENCYCID=") in new stack

-- Executing [[email protected]:12] Set("SIP/315-0914ba40", "TRUNKOUTCID=") in new stack

-- Executing [[email protected]:13] GotoIf("SIP/315-0914ba40", "1?trunkcid") in new stack

-- Goto (macro-outbound-callerid,s,17)

-- Executing [[email protected]:17] GotoIf("SIP/315-0914ba40", "1?usercid") in new stack

-- Goto (macro-outbound-callerid,s,19)

-- Executing [[email protected]:19] GotoIf("SIP/315-0914ba40", "1?report") in new stack

-- Goto (macro-outbound-callerid,s,23)

-- Executing [[email protected]:23] NoOp("SIP/315-0914ba40", "CallerID set to "Sayed" <315>") in new stack

-- Executing [[email protected]:12] AGI("SIP/315-0914ba40", "fixlocalprefix") in new stack

-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix

== Begin MixMonitor Recording SIP/315-0914ba40

-- AGI Script fixlocalprefix completed, returning 0

-- Executing [[email protected]:13] Set("SIP/315-0914ba40", "OUTNUM=0508839493") in new stack

-- Executing [[email protected]:14] Set("SIP/315-0914ba40", "custom=ZAP/g0") in new stack

-- Executing [[email protected]:15] GotoIf("SIP/315-0914ba40", "1?gocall") in new stack

-- Goto (macro-dialout-trunk,s,17)

-- Executing [[email protected]:17] Macro("SIP/315-0914ba40", "dialout-trunk-predial-hook|") in new stack

-- Executing [[email protected]:18] GotoIf("SIP/315-0914ba40", "0?bypass|1") in new stack

-- Executing [[email protected]:19] GotoIf("SIP/315-0914ba40", "0?customtrunk") in new stack

-- Executing [[email protected]:20] Dial("SIP/315-0914ba40", "ZAP/g0/0508839493|300|") in new stack

-- Called g0/0508839493

-- Zap/1-1 answered SIP/315-0914ba40

-- Hungup 'Zap/1-1'

== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on ‘SIP/315-0914ba40’ in macro ‘dialout-trunk’

== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on ‘SIP/315-0914ba40’

-- Executing [[email protected]:1] Macro("SIP/315-0914ba40", "hangupcall|") in new stack

-- Executing [[email protected]:1] ResetCDR("SIP/315-0914ba40", "w") in new stack

-- Executing [[email protected]:2] NoCDR("SIP/315-0914ba40", "") in new stack

-- Executing [[email protected]:3] GotoIf("SIP/315-0914ba40", "1?skiprg") in new stack

-- Goto (macro-hangupcall,s,6)

-- Executing [[email protected]:6] GotoIf("SIP/315-0914ba40", "1?skipblkvm") in new stack

-- Goto (macro-hangupcall,s,9)

-- Executing [[email protected]:9] GotoIf("SIP/315-0914ba40", "1?theend") in new stack

-- Goto (macro-hangupcall,s,11)