pipat123 เขียน:พี่ nuiz
ตอนนี้ผมใช้เบอร์ภายในเลข 122 เป็น เบอร์ภายนอก ของผมนะคับโดยใช้การ์ด X100P
อยากให้สามารถโทรออกและโทรเข้าได้ ผมลองคอนฟิกตามที่พี่ได้แนะนำแล้วคับ
แต่ไม่สามารถโทรออกและโทรเข้าได้ ไม่ทราบว่าเราต้องไปคอนฟิกส่วนอื่นอีกมั้ยคับ
ขอคำแนะนำด้วยคับ
ลองทำตามที่พี่แนะนำก็ขึ้นมาแบบนี้คับ
== Using SIP RTP CoS mark 5
-- Executing [0158@from-internal:1] Macro("SIP/101-00000023", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/101-00000023", "AMPUSER=101") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/101-00000023", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/101-00000023", "1?Set(REALCALLERIDNUM=101)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/101-00000023", "AMPUSER=101") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/101-00000023", "AMPUSERCIDNAME=Top") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/101-00000023", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/101-00000023", "AMPUSERCID=101") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/101-00000023", "CALLERID(all)="Top" <101>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/101-00000023", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/101-00000023", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/101-00000023", "Using CallerID "Top" <101>") in new stack
-- Executing [0158@from-internal:2] Set("SIP/101-00000023", "_NODEST=") in new stack
-- Executing [0158@from-internal:3] Macro("SIP/101-00000023", "record-enable,101,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/101-00000023", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/101-00000023", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/101-00000023", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/101-00000023", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/101-00000023", "1?MacroExit()") in new stack
-- Executing [0158@from-internal:4] Macro("SIP/101-00000023", "dialout-trunk,2,0158,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/101-00000023", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/101-00000023", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/101-00000023", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/101-00000023", "DIAL_NUMBER=0158") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/101-00000023", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/101-00000023", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/101-00000023", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/101-00000023", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/101-00000023", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/101-00000023", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/101-00000023", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/101-00000023", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/101-00000023", "0?Set(REALCALLERIDNUM=101)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/101-00000023", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/101-00000023", "USEROUTCID="Top"<101>") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/101-00000023", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/101-00000023", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/101-00000023", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/101-00000023", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/101-00000023", "1?Set(CALLERID(all)=Top<101>)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/101-00000023", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/101-00000023", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/101-00000023", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern X. matched. 0158 -> 0158
-- <SIP/101-00000023>AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/101-00000023", "OUTNUM=0158") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/101-00000023", "custom=DAHDI/1") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/101-00000023", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/101-00000023", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/101-00000023", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/101-00000023", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/101-00000023", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/101-00000023", "DAHDI/1/0158,300,") in new stack
-- Called 1/0158
-- Hungup 'DAHDI/1-1'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/101-00000023' in macro 'dialout-trunk'
== Spawn extension (from-internal, 0158, 4) exited non-zero on 'SIP/101-00000023'
-- Executing [h@from-internal:1] Macro("SIP/101-00000023", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/101-00000023", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/101-00000023", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/101-00000023", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] NoOp("SIP/101-00000023", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/101-00000023", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/101-00000023", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,13)
-- Executing [s@macro-hangupcall:13] GotoIf("SIP/101-00000023", "1?theend") in new stack
-- Goto (macro-hangupcall,s,15)
-- Executing [s@macro-hangupcall:15] Hangup("SIP/101-00000023", "") in new stack
== Spawn extension (macro-hangupcall, s, 15) exited non-zero on 'SIP/101-00000023' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/101-00000023'
VoIP*CLI>