Всех приветствую,
Использую trixbox-2.8.0.4-1, с его номерным планом, проблема следующая: при поступлении входящего вызова с внешней линии, последующего перехвата звонка и затем его перевода, тот, кому перевели звонок, слышит абонента, а звонящий - нет. Номер для перехвата = 40. Ниже привожу лог.
-- Executing [3555030@from-pstn:1] Set("mISDN/1-u1791", "__FROM_DID=3555030") in new stack
-- Executing [3555030@from-pstn:2] Gosub("mISDN/1-u1791", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("mISDN/1-u1791", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Return("mISDN/1-u1791", "") in new stack
-- Executing [3555030@from-pstn:3] ExecIf("mISDN/1-u1791", "1 ?Set(CALLERID(name)=89222924143)") in new stack
-- Executing [3555030@from-pstn:4] Set("mISDN/1-u1791", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [3555030@from-pstn:5] Set("mISDN/1-u1791", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [3555030@from-pstn:6] Goto("mISDN/1-u1791", "ivr-3,s,1") in new stack
-- Goto (ivr-3,s,1)
-- Executing [s@ivr-3:1] Set("mISDN/1-u1791", "MSG=") in new stack
-- Executing [s@ivr-3:2] Set("mISDN/1-u1791", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-3:3] Set("mISDN/1-u1791", "__DIR-CONTEXT=") in new stack
-- Executing [s@ivr-3:4] Set("mISDN/1-u1791", "_IVR_CONTEXT_ivr-3=") in new stack
-- Executing [s@ivr-3:5] Set("mISDN/1-u1791", "_IVR_CONTEXT=ivr-3") in new stack
-- Executing [s@ivr-3:6] GotoIf("mISDN/1-u1791", "0?begin") in new stack
-- Executing [s@ivr-3:7] Answer("mISDN/1-u1791", "") in new stack
-- Executing [s@ivr-3:8] StartMusicOnHold("mISDN/1-u1791", "") in new stack
-- Started music on hold, class 'default', on mISDN/1-u1791
-- Executing [s@ivr-3:9] Wait("mISDN/1-u1791", "2") in new stack
-- Executing [s@ivr-3:10] Set("mISDN/1-u1791", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3
-- Executing [s@ivr-3:11] BackGround("mISDN/1-u1791", "ru/zdravstujte") in new stack
-- Stopped music on hold on mISDN/1-u1791
-- <mISDN/1-u1791> Playing 'ru/zdravstujte.gsm' (language 'ru')
-- Executing [s@ivr-3:12] BackGround("mISDN/1-u1791", "ru/thank-you-for-calling") in new stack
-- <mISDN/1-u1791> Playing 'ru/thank-you-for-calling.gsm' (language 'ru')
-- Executing [s@ivr-3:13] BackGround("mISDN/1-u1791", "ru/vm-reachoper") in new stack
-- <mISDN/1-u1791> Playing 'ru/vm-reachoper.gsm' (language 'ru')
-- ast_get_srv: SRV lookup for '_sip._UDP.sipnet.ru' mapped to host sipnet.ru, port 5060
-- Executing [s@ivr-3:14] BackGround("mISDN/1-u1791", "ru/to-contact-tech-support") in new stack
-- <mISDN/1-u1791> Playing 'ru/to-contact-tech-support.gsm' (language 'ru')
== CDR updated on mISDN/1-u1791
-- Executing [101@ivr-3:1] ExecIf("mISDN/1-u1791", "0?dbDel()") in new stack
-- Executing [101@ivr-3:2] Set("mISDN/1-u1791", "__NODEST=") in new stack
-- Executing [101@ivr-3:3] Goto("mISDN/1-u1791", "from-did-direct,101,1") in new stack
-- Goto (from-did-direct,101,1)
-- Executing [101@from-did-direct:1] Macro("mISDN/1-u1791", "exten-vm,novm,101") in new stack
-- Executing [s@macro-exten-vm:1] Macro("mISDN/1-u1791", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] Set("mISDN/1-u1791", "AMPUSER=89222924143") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("mISDN/1-u1791", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("mISDN/1-u1791", "1?Set(REALCALLERIDNUM=89222924143)") in new stack
-- Executing [s@macro-user-callerid:4] Set("mISDN/1-u1791", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("mISDN/1-u1791", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("mISDN/1-u1791", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("mISDN/1-u1791", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("mISDN/1-u1791", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("mISDN/1-u1791", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("mISDN/1-u1791", "Using CallerID "89222924143" <89222924143>") in new stack
-- Executing [s@macro-exten-vm:2] Set("mISDN/1-u1791", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("mISDN/1-u1791", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("mISDN/1-u1791", "EXTTOCALL=101") in new stack
-- Executing [s@macro-exten-vm:5] Set("mISDN/1-u1791", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("mISDN/1-u1791", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("mISDN/1-u1791", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("mISDN/1-u1791", "record-enable,101,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("mISDN/1-u1791", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("mISDN/1-u1791", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("mISDN/1-u1791", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("mISDN/1-u1791", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("mISDN/1-u1791", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:21] NoOp("mISDN/1-u1791", "Recording enable for 101") in new stack
-- Executing [s@macro-record-enable:22] Set("mISDN/1-u1791", "CALLFILENAME=20120420-134337-1334907808.5782") in new stack
-- Executing [s@macro-record-enable:23] MixMonitor("mISDN/1-u1791", "20120420-134337-1334907808.5782.wav,,") in new stack
-- Executing [s@macro-record-enable:24] Set("mISDN/1-u1791", "CDR(userfield)=audio:20120420-134337-1334907808.5782.wav") in new stack
-- Executing [s@macro-record-enable:25] MacroExit("mISDN/1-u1791", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("mISDN/1-u1791", "dial,"",tr,101") in new stack
-- Executing [s@macro-dial:1] GotoIf("mISDN/1-u1791", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("mISDN/1-u1791", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
== Begin MixMonitor Recording mISDN/1-u1791
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is '89222924143' number is '89222924143'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 101 to extension map
-- dialparties.agi: Extension 101 cf is disabled
-- dialparties.agi: Extension 101 do not disturb is disabled
dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
dialparties.agi: Extension 101 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 101
-- dialparties.agi: dbset CALLTRACE/101 to 89222924143
-- dialparties.agi: Filtered ARG3: 101
-- <mISDN/1-u1791>AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("mISDN/1-u1791", "SIP/101,"",tr") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Called 101
-- SIP/101-00001069 is ringing
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- SIP/215-0000106a answered mISDN/1-u1791
-- Started music on hold, class 'default', on mISDN/1-u1791
-- <SIP/215-0000106a> Playing 'pbx-transfer.gsm' (language 'ru')
-- Executing [301@from-internal-xfer:1] GotoIf("Local/301@from-internal-xfer-70b1;2", "0?ext-local,301,1") in new stack
-- Executing [301@from-internal-xfer:2] Macro("Local/301@from-internal-xfer-70b1;2", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/301@from-internal-xfer-70b1;2", "AMPUSER=215") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("Local/301@from-internal-xfer-70b1;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("Local/301@from-internal-xfer-70b1;2", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("Local/301@from-internal-xfer-70b1;2", "__TTL=63") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("Local/301@from-internal-xfer-70b1;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("Local/301@from-internal-xfer-70b1;2", "Using CallerID "device" <215>") in new stack
-- Executing [301@from-internal-xfer:3] GotoIf("Local/301@from-internal-xfer-70b1;2", "1?skipdb") in new stack
-- Goto (from-internal-xfer,301,5)
-- Executing [301@from-internal-xfer:5] Set("Local/301@from-internal-xfer-70b1;2", "__NODEST=") in new stack
-- Executing [301@from-internal-xfer:6] Set("Local/301@from-internal-xfer-70b1;2", "__BLKVM_OVERRIDE=BLKVM/301/Local/301@from-internal-xfer-70b1;2") in new stack
-- Executing [301@from-internal-xfer:7] Set("Local/301@from-internal-xfer-70b1;2", "__BLKVM_BASE=301") in new stack
-- Executing [301@from-internal-xfer:8] Set("Local/301@from-internal-xfer-70b1;2", "DB(BLKVM/301/Local/301@from-internal-xfer-70b1;2)=TRUE") in new stack
-- Executing [301@from-internal-xfer:9] Set("Local/301@from-internal-xfer-70b1;2", "RRNODEST=") in new stack
-- Executing [301@from-internal-xfer:10] Set("Local/301@from-internal-xfer-70b1;2", "__NODEST=301") in new stack
-- Executing [301@from-internal-xfer:11] Set("Local/301@from-internal-xfer-70b1;2", "RecordMethod=Group") in new stack
-- Executing [301@from-internal-xfer:12] Macro("Local/301@from-internal-xfer-70b1;2", "record-enable,989222924143#,Group") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Local/301@from-internal-xfer-70b1;2", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("Local/301@from-internal-xfer-70b1;2", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("Local/301@from-internal-xfer-70b1;2", "1?Group:OUT") in new stack
-- Goto (macro-record-enable,s,6)
-- Executing [s@macro-record-enable:6] Set("Local/301@from-internal-xfer-70b1;2", "LOOPCNT=1") in new stack
-- Executing [s@macro-record-enable:7] Set("Local/301@from-internal-xfer-70b1;2", "ITER=1") in new stack
-- Executing [s@macro-record-enable:8] GotoIf("Local/301@from-internal-xfer-70b1;2", "1?continue") in new stack
-- Goto (macro-record-enable,s,13)
-- Executing [s@macro-record-enable:13] Set("Local/301@from-internal-xfer-70b1;2", "ITER=2") in new stack
-- Executing [s@macro-record-enable:14] GotoIf("Local/301@from-internal-xfer-70b1;2", "0?begin") in new stack
-- Executing [s@macro-record-enable:15] GotoIf("Local/301@from-internal-xfer-70b1;2", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("Local/301@from-internal-xfer-70b1;2", "1?MacroExit()") in new stack
-- Executing [301@from-internal-xfer:13] GotoIf("Local/301@from-internal-xfer-70b1;2", "0 ?skipsimple") in new stack
-- Executing [301@from-internal-xfer:14] Macro("Local/301@from-internal-xfer-70b1;2", "simple-dial,301,25") in new stack
-- Executing [s@macro-simple-dial:1] Set("Local/301@from-internal-xfer-70b1;2", "EXTTOCALL=301") in new stack
-- Executing [s@macro-simple-dial:2] Set("Local/301@from-internal-xfer-70b1;2", "RT=25") in new stack
-- Executing [s@macro-simple-dial:3] Set("Local/301@from-internal-xfer-70b1;2", "CFUEXT=") in new stack
-- Executing [s@macro-simple-dial:4] Set("Local/301@from-internal-xfer-70b1;2", "CFBEXT=") in new stack
-- Executing [s@macro-simple-dial:5] Set("Local/301@from-internal-xfer-70b1;2", "CWI_TMP=") in new stack
-- Executing [s@macro-simple-dial:6] Macro("Local/301@from-internal-xfer-70b1;2", "dial,25,tr,301") in new stack
-- Executing [s@macro-dial:1] GotoIf("Local/301@from-internal-xfer-70b1;2", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("Local/301@from-internal-xfer-70b1;2", "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 'device' number is '215'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 301 to extension map
-- dialparties.agi: Extension 301 cf is disabled
-- dialparties.agi: Extension 301 do not disturb is disabled
dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
-- dialparties.agi: dbset CALLTRACE/301 to 215
-- dialparties.agi: Filtered ARG3: 301
-- <Local/301@from-internal-xfer-70b1;2>AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("Local/301@from-internal-xfer-70b1;2", "SIP/301,25,trM(auto-blkvm)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Called 301
-- Local/301@from-internal-xfer-70b1;1 is ringing
-- SIP/301-0000106b is ringing
-- Local/301@from-internal-xfer-70b1;1 is ringing
-- SIP/301-0000106b answered Local/301@from-internal-xfer-70b1;2
-- Executing [s@macro-auto-blkvm:1] Set("SIP/301-0000106b", "__MACRO_RESULT=") in new stack
-- Executing [s@macro-auto-blkvm:2] DBdel("SIP/301-0000106b", "BLKVM/301/Local/301@from-internal-xfer-70b1;2") in new stack
-- DBdel: family=BLKVM, key=301/Local/301@from-internal-xfer-70b1;2
-- Executing [h@from-internal:1] Macro("SIP/215-0000106a", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/215-0000106a", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/215-0000106a", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/215-0000106a", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] NoOp("SIP/215-0000106a", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/215-0000106a", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/215-0000106a", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,13)
-- Executing [s@macro-hangupcall:13] GotoIf("SIP/215-0000106a", "1?theend") in new stack
-- Goto (macro-hangupcall,s,15)
-- Executing [s@macro-hangupcall:15] Hangup("SIP/215-0000106a", "") in new stack
== Spawn extension (macro-hangupcall, s, 15) exited non-zero on 'SIP/215-0000106a' in macro 'hangupcall'
-- Stopped music on hold on mISDN/1-u1791
-- <Local/301@from-internal-xfer-70b1;1> Playing 'beep.slin' (language 'ru')
-- Executing [h@macro-dial:1] Macro("Transfered/mISDN/1-u1791<ZOMBIE>", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Transfered/mISDN/1-u1791<ZOMBIE>", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("Transfered/mISDN/1-u1791<ZOMBIE>", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("Transfered/mISDN/1-u1791<ZOMBIE>", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] NoOp("Transfered/mISDN/1-u1791<ZOMBIE>", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:7] GotoIf("Transfered/mISDN/1-u1791<ZOMBIE>", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("Transfered/mISDN/1-u1791<ZOMBIE>", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,13)
-- Executing [s@macro-hangupcall:13] GotoIf("Transfered/mISDN/1-u1791<ZOMBIE>", "1?theend") in new stack
-- Goto (macro-hangupcall,s,15)
-- Executing [s@macro-hangupcall:15] Hangup("Transfered/mISDN/1-u1791<ZOMBIE>", "") in new stack
== Spawn extension (macro-hangupcall, s, 15) exited non-zero on 'Transfered/mISDN/1-u1791<ZOMBIE>' in macro 'hangupcall'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'Transfered/mISDN/1-u1791<ZOMBIE>' in macro 'dial'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'Transfered/mISDN/1-u1791<ZOMBIE>' in macro 'exten-vm'
== Spawn extension (from-did-direct, 101, 1) exited non-zero on 'Transfered/mISDN/1-u1791<ZOMBIE>'
== MixMonitor close filestream
Помогите, пожалуйста, разобраться, с чем это может быть связано. Спасибо!
P.S. Дополнение - к вопросу о NAT
trixbox1*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
355-28-90/355-28-90 192.168.0.20 D 5060 Unmonitored
310/310 (Unspecified) D A 0 UNKNOWN
309 (Unspecified) D A 5060 UNKNOWN
308/308 192.168.0.57 D A 5060 OK (41 ms)
307/307 192.168.0.52 D A 54584 OK (6 ms)
306/306 192.168.0.61 D A 1078 OK (101 ms)
305/305 192.168.0.74 D A 1069 OK (110 ms)
304 (Unspecified) D A 5060 UNKNOWN
303/303 192.168.0.90 D A 1043 OK (101 ms)
302/302 192.168.0.73 D A 5060 OK (40 ms)
301/301 (Unspecified) D A 5060 UNKNOWN
215/215 192.168.0.68 D A 5060 OK (5 ms)
214/214 192.168.0.16 D A 5061 OK (27 ms)
213/213 192.168.0.16 D A 5062 OK (27 ms)
212 (Unspecified) D A 5060 UNKNOWN
211/211 192.168.0.66 D A 5060 OK (6 ms)
210/210 192.168.0.69 D A 5060 OK (5 ms)
209/209 192.168.0.51 D A 5060 OK (45 ms)
208 (Unspecified) D A 5060 UNKNOWN
207/207 192.168.0.63 D A 5060 OK (6 ms)
206/206 192.168.0.94 D A 5060 OK (4 ms)
205/205 192.168.0.85 D A 5060 OK (5 ms)
204/204 (Unspecified) D A 5060 UNKNOWN
203/203 192.168.0.72 D A 5060 OK (6 ms)
202/202 192.168.0.71 D A 5060 OK (5 ms)
201/201 192.168.0.76 D A 5060 OK (5 ms)
114/114 192.168.0.60 D A 5060 OK (5 ms)
113/113 192.168.0.79 D A 5060 OK (5 ms)
112/112 192.168.0.62 D A 5060 OK (5 ms)
111/111 192.168.0.65 D A 5060 OK (4 ms)
110/110 192.168.0.84 D A 5060 OK (5 ms)
109/109 192.168.0.55 D A 60849 OK (116 ms)
108/108 192.168.0.77 D A 1059 OK (101 ms)
107/107 192.168.0.70 D A 64089 OK (115 ms)
106/106 192.168.0.54 D A 5060 OK (41 ms)
105/105 192.168.0.91 D A 1112 OK (101 ms)
104/104 192.168.0.64 D A 58098 OK (103 ms)
103/103 192.168.0.81 D A 5060 OK (5 ms)
102/102 192.168.0.86 D A 5060 OK (5 ms)
101/101 192.168.0.67 D A 5060 OK (4 ms)
[trixbox1.localdomain ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:24:21:24:E9:94
inet addr:192.168.0.132 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::224:21ff:fe24:e994/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10460671 errors:0 dropped:0 overruns:0 frame:0
TX packets:9985310 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2422266111 (2.2 GiB) TX bytes:2549374339 (2.3 GiB)
Interrupt:233 Base address:0xc000
NAT есть ?
amonra ( 2012-04-20 12:57:22 +0400 )редактироватьNAT не используется
kraftway ( 2012-04-23 15:00:50 +0400 )редактировать