-- Starting simple switch on 'DAHDI/8-1'
-- Executing [908113457@from-internal:1] Macro("DAHDI/8-1", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/8-1", "AMPUSER=4008") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/8-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/8-1", "1?Set(REALCALLERIDNUM=4008)") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/8-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/8-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/8-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/8-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("DAHDI/8-1", "Using CallerID "Channel 8" <4008>") in new stack
-- Executing [908113457@from-internal:2] Set("DAHDI/8-1", "_NODEST=") in new stack
-- Executing [908113457@from-internal:3] Macro("DAHDI/8-1", "record-enable,,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("DAHDI/8-1", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("DAHDI/8-1", "1?MacroExit()") in new stack
-- Executing [908113457@from-internal:4] Macro("DAHDI/8-1", "dialout-trunk,1,08113457,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("DAHDI/8-1", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("DAHDI/8-1", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("DAHDI/8-1", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("DAHDI/8-1", "DIAL_NUMBER=08113457") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("DAHDI/8-1", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("DAHDI/8-1", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("DAHDI/8-1", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("DAHDI/8-1", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("DAHDI/8-1", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("DAHDI/8-1", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("DAHDI/8-1", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("DAHDI/8-1", "0?Set(REALCALLERIDNUM=4008)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("DAHDI/8-1", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("DAHDI/8-1", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("DAHDI/8-1", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("DAHDI/8-1", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("DAHDI/8-1", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("DAHDI/8-1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("DAHDI/8-1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("DAHDI/8-1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("DAHDI/8-1", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("DAHDI/8-1", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("DAHDI/8-1", "OUTNUM=08113457") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("DAHDI/8-1", "custom=DAHDI/g0") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("DAHDI/8-1", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("DAHDI/8-1", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("DAHDI/8-1", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("DAHDI/8-1", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("DAHDI/8-1", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("DAHDI/8-1", "DAHDI/g0/08113457,300,") in new stack
-- Called g0/08113457
-- DAHDI/1-1 answered DAHDI/8-1
-- Native bridging DAHDI/8-1 and DAHDI/1-1
-- Executing [h@macro-dialout-trunk:1] Macro("DAHDI/8-1", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/8-1", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("DAHDI/8-1", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("DAHDI/8-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("DAHDI/8-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("DAHDI/8-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("DAHDI/8-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'DAHDI/8-1' in macro 'hangupcall'
-- Hungup 'DAHDI/1-1'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'DAHDI/8-1' in macro 'dialout-trunk'
== Spawn extension (from-internal, 908113457, 4) exited non-zero on 'DAHDI/8-1'
-- Hungup 'DAHDI/8-1'
จากตัวอย่างผมกดหมายเลข 90811234567 จะเห็นว่าเลข 1 กับเลข 6 หายไป ส่วน 9ตัวแรกถูกตัดด้วย dial patterns ครับ