Mobile------>Fxo card------>Elastix------>Fsx------->ext ตู้ PBX------>Ext เบอร์ 17
ที่เบอร์ 17 เป็นเบอร์ของตู้ PBX เก่าคับ ตอนโทรเข้าระบบก็ใช้งานได้ปกติ Report ต่างๆก็มีการบันทึกคับ
เป็นระบบ IVR ให้กด 0 ติดต่อเจ้าหน้าที่เซ็ท ตรงQueue ให้โทรออกไปยังเบอร์ 17 โดย ไส่ 617 ใว้ (6คือให้ elastix ทราบว่าออกทางFxs ไปต่อเบอร์ 17 อีกที)
- โค้ด: เลือกทั้งหมด
-- Hanging up on 'DAHDI/3-1'
-- Hungup 'DAHDI/3-1'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'Local/617@from-queue-d566;2' in macro 'dialout-trunk'
== Spawn extension (from-internal, 617, 6) exited non-zero on 'Local/617@from-queue-d566;2'
-- Executing [h@ext-queues:1] Macro("DAHDI/1-1", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/1-1", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("DAHDI/1-1", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("DAHDI/1-1", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("DAHDI/1-1", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("DAHDI/1-1", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("DAHDI/1-1", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("DAHDI/1-1", "0?noautomon2") in new stack
-- Executing [s@macro-hangupcall:36] System("DAHDI/1-1", "test -e /var/spool/asterisk/monitor/q100-20130213-162423-1360747452.8*") in new stack
-- Executing [s@macro-hangupcall:37] NoOp("DAHDI/1-1", "SYSTEMSTATUS = APPERROR") in new stack
-- Executing [s@macro-hangupcall:38] GotoIf("DAHDI/1-1", "1?errornoautomon") in new stack
-- Goto (macro-hangupcall,s,40)
-- Executing [s@macro-hangupcall:40] NoOp("DAHDI/1-1", "End of MONITOR QUEUE check") in new stack
-- Executing [s@macro-hangupcall:41] NoOp("DAHDI/1-1", "MONITOR_FILENAME=/var/spool/asterisk/monitor/q100-20130213-162423-1360747452.8") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("DAHDI/1-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("DAHDI/1-1", "0?skipblkvm") in new stack
-- Executing [s@macro-hangupcall:46] NoOp("DAHDI/1-1", "Cleaning Up Block VM Flag: BLKVM/100/DAHDI/1-1") in new stack
-- Executing [s@macro-hangupcall:47] NoOp("DAHDI/1-1", "Deleting: BLKVM/100/DAHDI/1-1 TRUE") in new stack
-- Executing [s@macro-hangupcall:48] GotoIf("DAHDI/1-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("DAHDI/1-1", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <DAHDI/1-1>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("DAHDI/1-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'DAHDI/1-1' in macro 'hangupcall'
== Spawn extension (ext-queues, h, 1) exited non-zero on 'DAHDI/1-1'
== Spawn extension (ext-queues, 100, 11) exited non-zero on 'DAHDI/1-1'
-- Hanging up on 'DAHDI/1-1'
-- Hungup 'DAHDI/1-1'