หลังจากนั้นผมจึงสร้าง IVR ชื่อว่า st โดยกำหนดค่าดังต่อไปนี้
หลังจากตั้งค่า IVR เสร็จแล้ว ผมจึงทำการทดสอบโดยการใช้ Misc Applications โดยการกำหนด future code ดังนี้
หลังจากนั้น จึงทำการทดสอบ โดยใช้ Extentions ภายใน กด *555 แล้วโทรออก ปรากฎว่า ไม่มีเสียงใดๆเกิดขึ้นเลย
อยากเรียนถามพี่ๆที่ทราบบ ช่วยรบกวนแก้ไขให้หน่อยครับ ขอบคุณมากครับ
และมี Asterisk Console ดังนี้
-- Executing [*555@from-internal:1] NoOp("SIP/1001-00000011", "Running miscapp 3: test-ivr") in new stack
-- Executing [*555@from-internal:2] Macro("SIP/1001-00000011", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/1001-00000011", "AMPUSER=1001") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/1001-00000011", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/1001-00000011", "1?Set(REALCALLERIDNUM=1001)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/1001-00000011", "AMPUSER=1001") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/1001-00000011", "AMPUSERCIDNAME=Meetting room") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/1001-00000011", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/1001-00000011", "AMPUSERCID=1001") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/1001-00000011", "CALLERID(all)="Meetting room" <1001>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/1001-00000011", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/1001-00000011", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/1001-00000011", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/1001-00000011", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("SIP/1001-00000011", "CALLERID(number)=1001") in new stack
-- Executing [s@macro-user-callerid:20] Set("SIP/1001-00000011", "CALLERID(name)=Meetting room") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("SIP/1001-00000011", "Using CallerID "Meetting room" <1001>") in new stack
-- Executing [*555@from-internal:3] Goto("SIP/1001-00000011", "ivr-5,s,1") in new stack
-- Goto (ivr-5,s,1)
-- Executing [s@ivr-5:1] Set("SIP/1001-00000011", "MSG=custom/St") in new stack
-- Executing [s@ivr-5:2] Set("SIP/1001-00000011", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-5:3] Set("SIP/1001-00000011", "__DIR-CONTEXT=") in new stack
-- Executing [s@ivr-5:4] Set("SIP/1001-00000011", "_IVR_CONTEXT_ivr-5=") in new stack
-- Executing [s@ivr-5:5] Set("SIP/1001-00000011", "_IVR_CONTEXT=ivr-5") in new stack
-- Executing [s@ivr-5:6] GotoIf("SIP/1001-00000011", "0?begin") in new stack
-- Executing [s@ivr-5:7] Answer("SIP/1001-00000011", "") in new stack
-- Executing [s@ivr-5:8] Wait("SIP/1001-00000011", "1") in new stack
-- Executing [s@ivr-5:9] Set("SIP/1001-00000011", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-5:10] Set("SIP/1001-00000011", "TIMEOUT(response)=15") in new stack
-- Response timeout set to 15.000
-- Executing [s@ivr-5:11] Set("SIP/1001-00000011", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-5:12] ExecIf("SIP/1001-00000011", "1?Background(custom/St)") in new stack
-- Executing [s@ivr-5:13] WaitExten("SIP/1001-00000011", ",") in new stack
-- Timeout on SIP/1001-00000011, going to 't'
-- Executing [t@ivr-5:1] Set("SIP/1001-00000011", "MSG=custom/St") in new stack
-- Executing [t@ivr-5:2] Goto("SIP/1001-00000011", "loop,1") in new stack
-- Goto (ivr-5,loop,1)
-- Executing [loop@ivr-5:1] Set("SIP/1001-00000011", "LOOPCOUNT=1") in new stack
-- Executing [loop@ivr-5:2] GotoIf("SIP/1001-00000011", "0?hang,1") in new stack
-- Executing [loop@ivr-5:3] Goto("SIP/1001-00000011", "ivr-5,s,begin") in new stack
-- Goto (ivr-5,s,9)
-- Executing [s@ivr-5:9] Set("SIP/1001-00000011", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-5:10] Set("SIP/1001-00000011", "TIMEOUT(response)=15") in new stack
-- Response timeout set to 15.000
-- Executing [s@ivr-5:11] Set("SIP/1001-00000011", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-5:12] ExecIf("SIP/1001-00000011", "1?Background(custom/St)") in new stack
-- Executing [s@ivr-5:13] WaitExten("SIP/1001-00000011", ",") in new stack
-- Timeout on SIP/1001-00000011, going to 't'
-- Executing [t@ivr-5:1] Set("SIP/1001-00000011", "MSG=custom/St") in new stack
-- Executing [t@ivr-5:2] Goto("SIP/1001-00000011", "loop,1") in new stack
-- Goto (ivr-5,loop,1)
-- Executing [loop@ivr-5:1] Set("SIP/1001-00000011", "LOOPCOUNT=2") in new stack
-- Executing [loop@ivr-5:2] GotoIf("SIP/1001-00000011", "0?hang,1") in new stack
-- Executing [loop@ivr-5:3] Goto("SIP/1001-00000011", "ivr-5,s,begin") in new stack
-- Goto (ivr-5,s,9)
-- Executing [s@ivr-5:9] Set("SIP/1001-00000011", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-5:10] Set("SIP/1001-00000011", "TIMEOUT(response)=15") in new stack
-- Response timeout set to 15.000
-- Executing [s@ivr-5:11] Set("SIP/1001-00000011", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-5:12] ExecIf("SIP/1001-00000011", "1?Background(custom/St)") in new stack
-- Executing [s@ivr-5:13] WaitExten("SIP/1001-00000011", ",") in new stack
== Spawn extension (ivr-5, s, 13) exited non-zero on 'SIP/1001-00000011'
-- Executing [h@ivr-5:1] Hangup("SIP/1001-00000011", "") in new stack
== Spawn extension (ivr-5, h, 1) exited non-zero on 'SIP/1001-00000011'
รบกวนด้วยครับ ขอบคุณมากครับ