ded писал(а):Не используйте пайпы - |||, они уже не поддерживаются.
dial string не должен содержать по возможности никаких опций, только IAX2/mainoffice1/018
Пробовал IAX2/mainoffice1/0208 - При звонке изнутри на 5018 при данной dial string пошел длинный гудок, как будто ожидает набора номера:
Код: Выделить всё
-- Executing [s@macro-dial:7] Dial("Local/5018@from-internal-8298,2", "IAX2/mainoffice1/0208||tr") in new stack
[Apr 29 11:52:24] NOTICE[16299]: app_dial.c:1205 dial_exec_full: Hey! chan Local/5018@from-internal-8298,2's context='macro-dial', and exten='s'
-- Called mainoffice1/0208
-- Local/5018@from-internal-8298,1 is ringing
-- Call accepted by XXX.XXX.XXX.XXX (format alaw) ;XXX.XXX.XXX.XXX - IP адрес mainoffice1
-- Format for call is alaw
-- IAX2/mainoffice1-10231 answered Local/5018@from-internal-8298,2
-- Local/5018@from-internal-8298,1 stopped sounds
-- Local/5018@from-internal-8298,1 answered DAHDI/1-1
-- Executing [h@macro-dial:1] Macro("Local/5018@from-internal-8298,2", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Local/5018@from-internal-8298,2", "1?skiprg") in new stack
Сделал обратно dial string для 5018: IAX2/mainoffice1/0208|300|rD(0208). Звонок пошел.
ded писал(а):Что такое xxxx в этой строке?
хххх - номер внутр. телефона сервера mainoffice1
ded писал(а):Звонок не проходит - неинформативно. При выполнении звонка можно многое увидеть в командной строке Астериска.
Во Входящих вызовах в Elastix поставил назначение Extentions на 5018. Звонок не прошел, выдав следующие логи:
Код: Выделить всё
-- Starting simple switch on 'DAHDI/3-1'
WARNING[16222]: chan_dahdi.c:7863 ss_thread: CallerID returned with error on channel 'DAHDI/3-1'
-- Executing [s@from-pstn:1] NoOp("DAHDI/3-1", "Entering macro-from-zaptel-3 with DID = and setting to: 33660") in new stack
-- Executing [s@from-pstn:2] Set("DAHDI/3-1", "__FROM_DID=33660") in new stack
-- Executing [s@from-pstn:3] Goto("DAHDI/3-1", "from-trunk|33660|1") in new stack
-- Goto (from-trunk,33660,1)
-- Executing [33660@from-trunk:1] Set("DAHDI/3-1", "__FROM_DID=33660") in new stack
-- Executing [33660@from-trunk:2] Gosub("DAHDI/3-1", "app-blacklist-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("DAHDI/3-1", "") in new stack
-- Executing [s@app-blacklist-check:2] GotoIf("DAHDI/3-1", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Return("DAHDI/3-1", "") in new stack
-- Executing [33660@from-trunk:3] ExecIf("DAHDI/3-1", "1 |Set|CALLERID(name)=") in new stack
-- Executing [33660@from-trunk:4] Set("DAHDI/3-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [33660@from-trunk:5] SetCallerPres("DAHDI/3-1", "allowed_not_screened") in new stack
-- Executing [33660@from-trunk:6] Goto("DAHDI/3-1", "from-did-direct|5018|1") in new stack
-- Goto (from-did-direct,5018,1)
-- Executing [5018@from-did-direct:1] Macro("DAHDI/3-1", "exten-vm|novm|5018") in new stack
-- Executing [s@macro-exten-vm:1] Macro("DAHDI/3-1", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/3-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/3-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/3-1", "1|Set|REALCALLERIDNUM=") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/3-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/3-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/3-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/3-1", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("DAHDI/3-1", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("DAHDI/3-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("DAHDI/3-1", "Using CallerID "" <>") in new stack
-- Executing [s@macro-exten-vm:2] Set("DAHDI/3-1", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("DAHDI/3-1", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("DAHDI/3-1", "EXTTOCALL=5018") in new stack
-- Executing [s@macro-exten-vm:5] Set("DAHDI/3-1", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("DAHDI/3-1", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("DAHDI/3-1", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("DAHDI/3-1", "record-enable|5018|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("DAHDI/3-1", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("DAHDI/3-1", "recordingcheck|20110429-114102|1304055662.279") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20110429-114102|1304055662.279: Inbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("DAHDI/3-1", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("DAHDI/3-1", "dial||tr|5018") in new stack
-- Executing [s@macro-dial:1] GotoIf("DAHDI/3-1", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("DAHDI/3-1", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
== Spawn extension (macro-dial, s, 3) exited non-zero on 'DAHDI/3-1' in macro 'dial'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'DAHDI/3-1' in macro 'exten-vm'
== Spawn extension (from-did-direct, 5018, 1) exited non-zero on 'DAHDI/3-1'
-- Executing [h@macro-dial:1] Macro("DAHDI/3-1", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/3-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("DAHDI/3-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("DAHDI/3-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("DAHDI/3-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'DAHDI/3-1' in macro 'hangupcall'
== Spawn extension (macro-dial, h, 1) exited non-zero on 'DAHDI/3-1'
-- Hungup 'DAHDI/3-1'