ใช้โปรแกรม X-lite ในการโทร
โดยผ่านการ์ด sangoma A400
โดยผมกำหนดว่า กด 9 โทรออก
ทีนี้เวลากด 9 แล้วตามด้วยเบอร์โทรออก มันกลับให้เป็นสัญญาณ โทนเสียโทรศัพท์มานะครับ
เสียง ตืดดดดด ยาวๆ อะครับ
ลองใช้คำสั่ง service asterisk restart แล้วก็ไม่หายครับ ต้อง reboot เครื่องอย่างเดียวเลยครับ
รายละเอียดของโค้ดตอนนั้นประมาณนี้ครับ
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [908377651xx@from-internal:1] Macro("SIP/1103-00000004", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/1103-00000004", "AMPUSER=1103") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/1103-00000004", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/1103-00000004", "1?Set(REALCALLERIDNUM=1103)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/1103-00000004", "AMPUSER=1103") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/1103-00000004", "AMPUSERCIDNAME=1103 Sunisa") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/1103-00000004", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/1103-00000004", "AMPUSERCID=1103") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/1103-00000004", "CALLERID(all)="1103 Sunisa" <1103>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/1103-00000004", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/1103-00000004", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/1103-00000004", "Using CallerID "1103 Sunisa" <1103>") in new stack
-- Executing [908377651xx@from-internal:2] Set("SIP/1103-00000004", "EMERGENCYROUTE=YES") in new stack
-- Executing [908377651xx@from-internal:3] ExecIf("SIP/1103-00000004", "0?Set(TRUNKCIDOVERRIDE=0264505xx)") in new stack
-- Executing [908377651xx@from-internal:4] Set("SIP/1103-00000004", "_NODEST=") in new stack
-- Executing [908377651xx@from-internal:5] Macro("SIP/1103-00000004", "record-enable,1103,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/1103-00000004", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/1103-00000004", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/1103-00000004", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/1103-00000004", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/1103-00000004", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:17] NoOp("SIP/1103-00000004", "Recording enable for 1103") in new stack
-- Executing [s@macro-record-enable:18] Set("SIP/1103-00000004", "CALLFILENAME=OUT1103-20120309-113346-1331267626.8") in new stack
-- Executing [s@macro-record-enable:19] Goto("SIP/1103-00000004", "record") in new stack
-- Goto (macro-record-enable,s,23)
-- Executing [s@macro-record-enable:23] MixMonitor("SIP/1103-00000004", "OUT1103-20120309-113346-1331267626.8.wav,,") in new stack
-- Executing [s@macro-record-enable:24] Set("SIP/1103-00000004", "CDR(userfield)=audio:OUT1103-20120309-113346-1331267626.8.wav") in new stack
-- Executing [s@macro-record-enable:25] MacroExit("SIP/1103-00000004", "") in new stack
-- Executing [908377651xx@from-internal:6] Macro("SIP/1103-00000004", "dialout-trunk,4,08377651xx,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/1103-00000004", "DIAL_TRUNK=4") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1103-00000004", "0?sub-pincheck,s,1") in new stack
== Begin MixMonitor Recording SIP/1103-00000004
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1103-00000004", "0?disabletrunk,1") in new stack
== Manager 'admin' logged off from 127.0.0.1
-- Executing [s@macro-dialout-trunk:4] Set("SIP/1103-00000004", "DIAL_NUMBER=08377651xx") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/1103-00000004", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/1103-00000004", "OUTBOUND_GROUP=OUT_4") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1103-00000004", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/1103-00000004", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1103-00000004", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/1103-00000004", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/1103-00000004", "outbound-callerid,4") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1103-00000004", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/1103-00000004", "0?Set(REALCALLERIDNUM=1103)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/1103-00000004", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/1103-00000004", "USEROUTCID=1103") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/1103-00000004", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/1103-00000004", "TRUNKOUTCID=0264505xx") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/1103-00000004", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/1103-00000004", "1?Set(CALLERID(all)=0264505xx)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/1103-00000004", "1?Set(CALLERID(all)=1103)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/1103-00000004", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/1103-00000004", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/1103-00000004", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/1103-00000004", "OUTNUM=08377651xx") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/1103-00000004", "custom=DAHDI/1") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/1103-00000004", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/1103-00000004", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1103-00000004", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/1103-00000004", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1103-00000004", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/1103-00000004", "DAHDI/1/08377651xx,300,") in new stack
-- Called 1/08377651xx
-- DAHDI/1-1 answered SIP/1103-00000004
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/1103-00000004", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/1103-00000004", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/1103-00000004", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/1103-00000004", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/1103-00000004", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/1103-00000004", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/1103-00000004", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/1103-00000004' in macro 'hangupcall'
-- Hungup 'DAHDI/1-1'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/1103-00000004' in macro 'dialout-trunk'
== Spawn extension (from-internal, 908377651xx, 6) exited non-zero on 'SIP/1103-00000004'
== MixMonitor close filestream
== End MixMonitor Recording SIP/1103-00000004
ขอบคุณมากครับ สำหรับคำแนะนำ