Добрый день.
Есть:
сервер с установленным Elastix 2.0 (Asterisk 1.6.2.10). Есть SIP номер 84951234567 (для примера)
Нужно настроить прием/передачу факсов через SIP Trunk.
Делаю так (через вэб-морду):
1. PBX - Extensions - Add Generic IAX2 device - Называю FAX, даю неиспользуемый номер 1000, secret 1000, Recording Options - never
2. FAX - New Virtual Fax - ввожу имя, мыло, Fax Extension (IAX): 1000, Secret (IAX): 1000, Country Code: 7, Area Code: 495.
В итоге: Running and idle on ttyIAX1, т.е. всё хорошо.
3. PBX - Inbound routes - в созданном роуте (для 84951234567)включаю Fax Detect, SIP, 4, FAX destination: Extension 1000
4. В IVR на кнопку 5 также забит destination extension 1000
По аналогии сделал 2 виртуальный факс 1001. Факсы отправляю через jHylaFAX. Если отправлять на номер 1001 факс доходит (правда как то долго он слал пдф 33 страничный). Извне факсы не приходят (аппаратный факс показывает Ошибка связи), также не отправляются с АТС на аппаратный факс.
Вот вывод sip show channels при звонке с 84959999999 на 84951234567 (Elastix)
Кодек alaw используется, я так понимаю...
А GSM-кодек нужен для GSM-шлюза
show sip channels выводит:
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [84951234567@from-trunk-sip-go2baza:1] Set("SIP/go2baza-00000045", "GROUP()=OUT_4") in new stack
-- Executing [84951234567@from-trunk-sip-go2baza:2] Goto("SIP/go2baza-00000045", "from-trunk,84951234567,1") in new stack
-- Goto (from-trunk,84951234567,1)
-- Executing [84951234567@from-trunk:1] Set("SIP/go2baza-00000045", "__FROM_DID=84951234567") in new stack
-- Executing [84951234567@from-trunk:2] Gosub("SIP/go2baza-00000045", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/go2baza-00000045", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/go2baza-00000045", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/go2baza-00000045", "") in new stack
-- Executing [84951234567@from-trunk:3] ExecIf("SIP/go2baza-00000045", "1 ?Set(CALLERID(name)=84959999999)") in new stack
-- Executing [84951234567@from-trunk:4] SetMusicOnHold("SIP/go2baza-00000045", "acc") in new stack
-- Executing [84951234567@from-trunk:5] Set("SIP/go2baza-00000045", "__MOHCLASS=acc") in new stack
-- Executing [84951234567@from-trunk:6] Set("SIP/go2baza-00000045", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [84951234567@from-trunk:7] Set("SIP/go2baza-00000045", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [84951234567@from-trunk:8] Set("SIP/go2baza-00000045", "FAX_DEST=from-did-direct^1000^1") in new stack
-- Executing [84951234567@from-trunk:9] Answer("SIP/go2baza-00000045", "") in new stack
-- Executing [84951234567@from-trunk:10] Wait("SIP/go2baza-00000045", "4") in new stack
-- Executing [84951234567@from-trunk:11] Goto("SIP/go2baza-00000045", "ivr-6,s,1") in new stack
-- Goto (ivr-6,s,1)
-- Executing [s@ivr-6:1] Set("SIP/go2baza-00000045", "MSG=custom/Block-1") in new stack
-- Executing [s@ivr-6:2] Set("SIP/go2baza-00000045", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-6:3] Set("SIP/go2baza-00000045", "__DIR-CONTEXT=default") in new stack
-- Executing [s@ivr-6:4] Set("SIP/go2baza-00000045", "_IVR_CONTEXT_ivr-6=") in new stack
-- Executing [s@ivr-6:5] Set("SIP/go2baza-00000045", "_IVR_CONTEXT=ivr-6") in new stack
-- Executing [s@ivr-6:6] GotoIf("SIP/go2baza-00000045", "1?begin") in new stack
-- Goto (ivr-6,s,9)
-- Executing [s@ivr-6:9] Set("SIP/go2baza-00000045", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-6:10] Set("SIP/go2baza-00000045", "TIMEOUT(response)=5") in new stack
-- Response timeout set to 5.000
-- Executing [s@ivr-6:11] Set("SIP/go2baza-00000045", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-6:12] ExecIf("SIP/go2baza-00000045", "1?Background(custom/Block-1)") in new stack
-- <SIP/go2baza-00000045> Playing 'custom/Block-1.slin' (language 'en')
-- Executing [5@ivr-6:1] NoOp("SIP/go2baza-00000045", "Deleting: ") in new stack
-- Executing [5@ivr-6:2] Set("SIP/go2baza-00000045", "__NODEST=") in new stack
-- Executing [5@ivr-6:3] Goto("SIP/go2baza-00000045", "from-did-direct,1000,1") in new stack
-- Goto (from-did-direct,1000,1)
-- Executing [1000@from-did-direct:1] Macro("SIP/go2baza-00000045", "exten-vm,novm,1000") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/go2baza-00000045", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/go2baza-00000045", "AMPUSER=84959999999") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/go2baza-00000045", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/go2baza-00000045", "1?Set(REALCALLERIDNUM=84959999999)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/go2baza-00000045", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/go2baza-00000045", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/go2baza-00000045", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/go2baza-00000045", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/go2baza-00000045", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/go2baza-00000045", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/go2baza-00000045", "Using CallerID "84959999999" <84959999999>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/go2baza-00000045", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/go2baza-00000045", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/go2baza-00000045", "EXTTOCALL=1000") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/go2baza-00000045", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/go2baza-00000045", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/go2baza-00000045", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/go2baza-00000045", "record-enable,1000,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/go2baza-00000045", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/go2baza-00000045", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/go2baza-00000045", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/go2baza-00000045", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("SIP/go2baza-00000045", "1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/go2baza-00000045", "dial,,tr,1000") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/go2baza-00000045", "0?dial") in new stack
-- Executing [s@macro-dial:2] SetMusicOnHold("SIP/go2baza-00000045", "acc") in new stack
-- Executing [s@macro-dial:3] AGI("SIP/go2baza-00000045", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is '84959999999' number is '84959999999'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 1000 to extension map
-- dialparties.agi: Extension 1000 cf is disabled
-- dialparties.agi: Extension 1000 do not disturb is disabled
dialparties.agi: EXTENSION_STATE: 4 (UNAVAILABLE)
dialparties.agi: Extension 1000 has ExtensionState: 4
-- dialparties.agi: Checking CW and CFB status for extension 1000
-- dialparties.agi: dbset CALLTRACE/1000 to 84959999999
-- dialparties.agi: Filtered ARG3: 1000
-- <SIP/go2baza-00000045>AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("SIP/go2baza-00000045", "IAX2/1000,,tr") in new stack
-- Called 1000
-- Call accepted by 127.0.0.1 (format alaw)
-- Format for call is alaw
-- IAX2/1000-1667 is ringing
-- IAX2/1000-1667 answered SIP/go2baza-00000045
-- Executing [h@macro-dial:1] Macro("SIP/go2baza-00000045", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/go2baza-00000045", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/go2baza-00000045", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/go2baza-00000045", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/go2baza-00000045", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/go2baza-00000045", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/go2baza-00000045", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/go2baza-00000045' in macro 'hangupcall'
-- Hungup 'IAX2/1000-1667'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/go2baza-00000045' in macro 'dial'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/go2baza-00000045' in macro 'exten-vm'
== Spawn extension (from-did-direct, 1000, 1) exited non-zero on 'SIP/go2baza-00000045'
Подскажите, что я не так настраиваю?