โดย ibanez88 » 04 ธ.ค. 2012 16:17
ผมลอง config เปลี่ยนไปเรื่อยๆแล้ว ได้ log ออกมาประมาณนี้ไม่ทราบว่าพอจะใกล้เคียงแล้วรึยังครับ
ผมส่งไปเบอร์แฟกซ์ปลายทางที่เป็นเบอร์ต่อ คือ 0266xxxxx ต่อ 200 ครับ 200 คือเบอร์ที่เครื่องแฟกซ์ต่ออยู่ครับ
ผม config Trunk ใน Dialed Rules แบบนี้
prepend= 0266xxxxxWWWWWWWW
prefix= 0266xxxxx
match pattern= [0-9#*+]+
-- Accepting AUTHENTICATED call from 127.0.0.1:
> requested format = slin,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (ulaw|alaw|gsm),
> priority = mine
-- Executing [0266xxxxx#200@from-internal:1] Macro("IAX2/2000-6568", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("IAX2/2000-6568", "AMPUSER=2000") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("IAX2/2000-6568", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("IAX2/2000-6568", "0?Set(REALCALLERIDNUM=2000)") in new stack
-- Executing [s@macro-user-callerid:4] Set("IAX2/2000-6568", "AMPUSER=2000") in new stack
-- Executing [s@macro-user-callerid:5] Set("IAX2/2000-6568", "AMPUSERCIDNAME=support") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("IAX2/2000-6568", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("IAX2/2000-6568", "AMPUSERCID=2000") in new stack
-- Executing [s@macro-user-callerid:8] Set("IAX2/2000-6568", "CALLERID(all)="support" <2000>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("IAX2/2000-6568", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("IAX2/2000-6568", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("IAX2/2000-6568", "CALLERID(number)=2000") in new stack
-- Executing [s@macro-user-callerid:20] Set("IAX2/2000-6568", "CALLERID(name)=support") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("IAX2/2000-6568", "Using CallerID "support" <2000>") in new stack
-- Executing [0266xxxxx#200@from-internal:2] NoOp("IAX2/2000-6568", "Calling Out Route: Rount-1") in new stack
-- Executing [0266xxxxx#200@from-internal:3] Set("IAX2/2000-6568", "MOHCLASS=default") in new stack
-- Executing [0266xxxxx#200@from-internal:4] Set("IAX2/2000-6568", "_NODEST=") in new stack
-- Executing [0266xxxxx#200@from-internal:5] Macro("IAX2/2000-6568", "record-enable,2000,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("IAX2/2000-6568", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("IAX2/2000-6568", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("IAX2/2000-6568", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("IAX2/2000-6568", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("IAX2/2000-6568", "1?MacroExit()") in new stack
-- Executing [0266xxxxx#200@from-internal:6] Macro("IAX2/2000-6568", "dialout-trunk,1,0266xxxxx#200,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("IAX2/2000-6568", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("IAX2/2000-6568", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("IAX2/2000-6568", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("IAX2/2000-6568", "DIAL_NUMBER=0266xxxxx#200") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("IAX2/2000-6568", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("IAX2/2000-6568", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("IAX2/2000-6568", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("IAX2/2000-6568", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("IAX2/2000-6568", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("IAX2/2000-6568", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("IAX2/2000-6568", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("IAX2/2000-6568", "0?Set(REALCALLERIDNUM=2000)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("IAX2/2000-6568", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("IAX2/2000-6568", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("IAX2/2000-6568", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("IAX2/2000-6568", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("IAX2/2000-6568", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("IAX2/2000-6568", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("IAX2/2000-6568", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("IAX2/2000-6568", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("IAX2/2000-6568", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("IAX2/2000-6568", "1?sub-flp-1,s,1") in new stack
-- Executing [s@sub-flp-1:1] ExecIf("IAX2/2000-6568", "0?Set(TARGET_FLP_1=0266xxxxxWWWWWWWWWW#200)") in new stack
-- Executing [s@sub-flp-1:2] GotoIf("IAX2/2000-6568", "0?match") in new stack
-- Executing [s@sub-flp-1:3] Return("IAX2/2000-6568", "") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("IAX2/2000-6568", "OUTNUM=0266xxxxx#200") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("IAX2/2000-6568", "custom=DAHDI/1") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("IAX2/2000-6568", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("IAX2/2000-6568", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("IAX2/2000-6568", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("IAX2/2000-6568", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("IAX2/2000-6568", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("IAX2/2000-6568", "DAHDI/1/0266xxxxx#200,300,") in new stack
-- Called DAHDI/1/0266xxxxx#200
-- DAHDI/1-1 answered IAX2/2000-6568
-- Executing [h@macro-dialout-trunk:1] Macro("IAX2/2000-6568", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("IAX2/2000-6568", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("IAX2/2000-6568", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("IAX2/2000-6568", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("IAX2/2000-6568", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("IAX2/2000-6568", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("IAX2/2000-6568", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("IAX2/2000-6568", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("IAX2/2000-6568", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("IAX2/2000-6568", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("IAX2/2000-6568", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] GotoIf("IAX2/2000-6568", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("IAX2/2000-6568", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <IAX2/2000-6568>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("IAX2/2000-6568", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'IAX2/2000-6568' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'IAX2/2000-6568'
-- Hanging up on 'DAHDI/1-1'
-- Hungup 'DAHDI/1-1'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'IAX2/2000-6568' in macro 'dialout-trunk'
== Spawn extension (from-internal, 0266xxxxx#200, 6) exited non-zero on 'IAX2/2000-6568'
-- Hungup 'IAX2/2000-6568'