โดย ibanez88 » 22 ส.ค. 2012 17:37
ผมทดสอบการรับส่งแฟ็กซ์ mail to fax, fax to mail บน Elastix2.3.0 สามารถรับส่งได้ปกติครับ
แต่ว่ามันจะเกิด loop ขึ้น คือ มันจะทำการพยายามส่งแฟ็กซ์ออกไปเอง แต่ส่งไม่ได้นะครับ จะพยายามวนลูปอยุ่อย่างนั้นตลอดครับ
log เป็นแบบนี้ครับ
-- Accepting AUTHENTICATED call from 127.0.0.1:
> requested format = slin,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (ulaw|alaw|gsm),
> priority = mine
-- Executing [725347687@from-internal:1] Macro("IAX2/5000-2893", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("IAX2/5000-2893", "AMPUSER=5000") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("IAX2/5000-2893", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("IAX2/5000-2893", "0?Set(REALCALLERIDNUM=5000)") in new stack
-- Executing [s@macro-user-callerid:4] Set("IAX2/5000-2893", "AMPUSER=5000") in new stack
-- Executing [s@macro-user-callerid:5] Set("IAX2/5000-2893", "AMPUSERCIDNAME=technical") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("IAX2/5000-2893", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("IAX2/5000-2893", "AMPUSERCID=5000") in new stack
-- Executing [s@macro-user-callerid:8] Set("IAX2/5000-2893", "CALLERID(all)="technical" <5000>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("IAX2/5000-2893", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("IAX2/5000-2893", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("IAX2/5000-2893", "CALLERID(number)=5000") in new stack
-- Executing [s@macro-user-callerid:20] Set("IAX2/5000-2893", "CALLERID(name)=technical") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("IAX2/5000-2893", "Using CallerID "technical" <5000>") in new stack
-- Executing [725347687@from-internal:2] NoOp("IAX2/5000-2893", "Calling Out Route: Route-3") in new stack
-- Executing [725347687@from-internal:3] Set("IAX2/5000-2893", "MOHCLASS=default") in new stack
-- Executing [725347687@from-internal:4] Set("IAX2/5000-2893", "_NODEST=") in new stack
-- Executing [725347687@from-internal:5] Macro("IAX2/5000-2893", "record-enable,5000,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("IAX2/5000-2893", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("IAX2/5000-2893", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("IAX2/5000-2893", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("IAX2/5000-2893", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("IAX2/5000-2893", "1?MacroExit()") in new stack
-- Executing [725347687@from-internal:6] Macro("IAX2/5000-2893", "dialout-trunk,2,025347687,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("IAX2/5000-2893", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("IAX2/5000-2893", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("IAX2/5000-2893", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("IAX2/5000-2893", "DIAL_NUMBER=025347687") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("IAX2/5000-2893", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("IAX2/5000-2893", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("IAX2/5000-2893", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("IAX2/5000-2893", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("IAX2/5000-2893", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("IAX2/5000-2893", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("IAX2/5000-2893", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("IAX2/5000-2893", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("IAX2/5000-2893", "0?Set(REALCALLERIDNUM=5000)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("IAX2/5000-2893", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("IAX2/5000-2893", "USEROUTCID="technical" <5000>") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("IAX2/5000-2893", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("IAX2/5000-2893", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("IAX2/5000-2893", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("IAX2/5000-2893", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("IAX2/5000-2893", "1?Set(CALLERID(all)="technical" <5000>)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("IAX2/5000-2893", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("IAX2/5000-2893", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("IAX2/5000-2893", "0?sub-flp-2,s,1") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("IAX2/5000-2893", "OUTNUM=025347687") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("IAX2/5000-2893", "custom=DAHDI/1") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("IAX2/5000-2893", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("IAX2/5000-2893", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("IAX2/5000-2893", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("IAX2/5000-2893", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("IAX2/5000-2893", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("IAX2/5000-2893", "DAHDI/1/025347687,300,") in new stack
-- Called DAHDI/1/025347687
-- DAHDI/1-1 answered IAX2/5000-2893
-- Executing [h@macro-dialout-trunk:1] Macro("IAX2/5000-2893", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("IAX2/5000-2893", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("IAX2/5000-2893", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("IAX2/5000-2893", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,15)
-- Executing [s@macro-hangupcall:15] NoOp("IAX2/5000-2893", "MEETME_RECORDINGFILE=") in new stack
-- Executing [s@macro-hangupcall:16] GotoIf("IAX2/5000-2893", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,18)
-- Executing [s@macro-hangupcall:18] NoOp("IAX2/5000-2893", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:19] GotoIf("IAX2/5000-2893", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,25)
-- Executing [s@macro-hangupcall:25] NoOp("IAX2/5000-2893", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:26] GotoIf("IAX2/5000-2893", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,29)
-- Executing [s@macro-hangupcall:29] GotoIf("IAX2/5000-2893", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,32)
-- Executing [s@macro-hangupcall:32] GotoIf("IAX2/5000-2893", "1?theend") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] Hangup("IAX2/5000-2893", "") in new stack
== Spawn extension (macro-hangupcall, s, 34) exited non-zero on 'IAX2/5000-2893' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'IAX2/5000-2893'
-- Hanging up on 'DAHDI/1-1'
-- Hungup 'DAHDI/1-1'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'IAX2/5000-2893' in macro 'dialout-trunk'
== Spawn extension (from-internal, 725347687, 6) exited non-zero on 'IAX2/5000-2893'
-- Hungup 'IAX2/5000-2893'
เบอร์โทรที่เห็นใน log ไม่ใช่เบอร์ปลายทางที่จะส่งไปนะครับ มัน generate ขึ้นมาเอง ผมดูใน /var/spool/hylafx/info ก็เจอแล้วลองลบออก มันก็ generate ขึ้นมาใหม่ทุกทีครับ
ผมลองแก้มาหลายวันแล้วครับ รบกวนพี่ๆช่วยผมด้วยนะครับ ต้องการอะไรเพิ่มบอกได้เลยครับ