mine stops too soon...
-- Executing [411@from-internal:1] Answer("SIP/706-b7c33000", "") in new stack
-- Executing [411@from-internal:2] Wait("SIP/706-b7c33000", "1") in new stack
-- Executing [411@from-internal:3] Goto("SIP/706-b7c33000", "pbdirectory|1") in new stack
-- Goto (from-internal,pbdirectory,1)
-- Executing [pbdirectory@from-internal:1] Macro("SIP/706-b7c33000", "user-callerid|") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/706-b7c33000", "AMPUSER=706") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/706-b7c33000", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/706-b7c33000", "1|Set|REALCALLERIDNUM=706") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/706-b7c33000", "AMPUSER=706") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/706-b7c33000", "AMPUSERCIDNAME=Devin") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/706-b7c33000", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/706-b7c33000", "AMPUSERCID=706") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/706-b7c33000", "CALLERID(all)="Devin" <706>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/706-b7c33000", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/706-b7c33000", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/706-b7c33000", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/706-b7c33000", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/706-b7c33000", "Using CallerID "Devin" <706>") in new stack
-- Executing [pbdirectory@from-internal:2] AGI("SIP/706-b7c33000", "pbdirectory") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/pbdirectory
pbdirectory: test
pbdirectory: start loop
pbdirectory: loop = 0
-- Playing 'dir-nomatch' (escape_digits=) (sample_offset 0)
== Spawn extension (from-internal, pbdirectory, 2) exited non-zero on 'SIP/706-b7c33000'
-- Executing [h@from-internal:1] Macro("SIP/706-b7c33000", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/706-b7c33000", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/706-b7c33000", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/706-b7c33000", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/706-b7c33000", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/706-b7c33000' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/706-b7c33000'