Дело не в шлюзе так как обрывы и тоновые сигналы наблюдаются на разных транках. У меня разделен меж.город через sipnet, звонки в город через DVG-5004S на сотовые идут через GoIP 4.
Код: Выделить всё
[Jun 21 17:17:21] VERBOSE[28574] netsock.c: == Using SIP RTP TOS bits 184
[Jun 21 17:17:21] VERBOSE[28574] netsock.c: == Using SIP RTP CoS mark 5
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [84957788xxx@from-internal:1] Macro("SIP/40-00000e75", "user-callerid,SKIPTTL,") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/40-00000e75", "AMPUSER=40") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/40-00000e75", "0?report") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/40-00000e75", "1?Set(REALCALLERIDNUM=40)") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/40-00000e75", "AMPUSER=40") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/40-00000e75", "AMPUSERCIDNAME=Apparatnaya") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/40-00000e75", "0?report") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/40-00000e75", "AMPUSERCID=40") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-user-callerid:8] Set("SIP/40-00000e75", "CALLERID(all)="Apparatnaya" <40>") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-user-callerid:9] ExecIf("SIP/40-00000e75", "0?Set(CHANNEL(language)=)") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-user-callerid:10] GotoIf("SIP/40-00000e75", "1?continue") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Goto (macro-user-callerid,s,19)
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-user-callerid:19] NoOp("SIP/40-00000e75", "Using CallerID "Apparatnaya" <40>") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [84957788xxx@from-internal:2] Set("SIP/40-00000e75", "_NODEST=") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [84957788xxx@from-internal:3] Macro("SIP/40-00000e75", "record-enable,40,OUT,") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/40-00000e75", "1?check") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Goto (macro-record-enable,s,4)
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-record-enable:4] ExecIf("SIP/40-00000e75", "0?MacroExit()") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-record-enable:5] GotoIf("SIP/40-00000e75", "0?Group:OUT") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Goto (macro-record-enable,s,15)
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-record-enable:15] GotoIf("SIP/40-00000e75", "0?IN") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-record-enable:16] ExecIf("SIP/40-00000e75", "1?MacroExit()") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [84957788xxx@from-internal:4] Macro("SIP/40-00000e75", "dialout-trunk,2,84957788xxx,,") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/40-00000e75", "DIAL_TRUNK=2") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/40-00000e75", "0?sub-pincheck,s,1") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/40-00000e75", "0?disabletrunk,1") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/40-00000e75", "DIAL_NUMBER=84957788xxx") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/40-00000e75", "DIAL_TRUNK_OPTIONS=trwW") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/40-00000e75", "OUTBOUND_GROUP=OUT_2") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/40-00000e75", "1?nomax") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Goto (macro-dialout-trunk,s,9)
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/40-00000e75", "0?skipoutcid") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/40-00000e75", "DIAL_TRUNK_OPTIONS=tw") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/40-00000e75", "outbound-callerid,2") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/40-00000e75", "0?Set(CALLERPRES()=)") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/40-00000e75", "0?Set(REALCALLERIDNUM=40)") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/40-00000e75", "1?normcid") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Goto (macro-outbound-callerid,s,6)
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-outbound-callerid:6] Set("SIP/40-00000e75", "USEROUTCID=") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/40-00000e75", "EMERGENCYCID=") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/40-00000e75", "TRUNKOUTCID=0035673887") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/40-00000e75", "1?trunkcid") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Goto (macro-outbound-callerid,s,12)
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/40-00000e75", "1?Set(CALLERID(all)=0035673887)") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/40-00000e75", "0?Set(CALLERID(all)=)") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/40-00000e75", "0?Set(CALLERID(all)=)") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/40-00000e75", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/40-00000e75", "1?AGI(fixlocalprefix)") in new stack
[Jun 21 17:17:21] VERBOSE[2185] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
[Jun 21 17:17:21] VERBOSE[2185] res_agi.c: == fixlocalprefix: Dialpattern . matched. 84957788xxx -> 84957788xxx
[Jun 21 17:17:21] VERBOSE[2185] res_agi.c: -- <SIP/40-00000e75>AGI Script fixlocalprefix completed, returning 0
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/40-00000e75", "OUTNUM=84957788xxx") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/40-00000e75", "custom=SIP/sipnet.ru") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/40-00000e75", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^)tw)") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/40-00000e75", "dialout-trunk-predial-hook,") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/40-00000e75", "") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/40-00000e75", "0?bypass,1") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/40-00000e75", "0?customtrunk") in new stack
[Jun 21 17:17:21] VERBOSE[2185] pbx.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/40-00000e75", "SIP/sipnet.ru/84957788xxx,300,tw") in new stack
[Jun 21 17:17:21] VERBOSE[2185] netsock.c: == Using SIP RTP TOS bits 184
[Jun 21 17:17:21] VERBOSE[2185] netsock.c: == Using SIP RTP CoS mark 5
[Jun 21 17:17:21] VERBOSE[2185] app_dial.c: -- Called sipnet.ru/84957788xxx
[Jun 21 17:17:22] VERBOSE[2185] app_dial.c: -- SIP/sipnet.ru-00000e76 is making progress passing it to SIP/40-00000e75
[Jun 21 17:17:26] VERBOSE[2185] app_dial.c: -- SIP/sipnet.ru-00000e76 is ringing
[Jun 21 17:17:26] VERBOSE[2185] app_dial.c: -- SIP/sipnet.ru-00000e76 is making progress passing it to SIP/40-00000e75
[Jun 21 17:17:39] VERBOSE[2185] app_dial.c: -- SIP/sipnet.ru-00000e76 answered SIP/40-00000e75
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [h@macro-dialout-trunk:1] Macro("SIP/40-00000e75", "hangupcall,") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/40-00000e75", "1?noautomon") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Goto (macro-hangupcall,s,3)
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:3] NoOp("SIP/40-00000e75", "TOUCH_MONITOR_OUTPUT=") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/40-00000e75", "1?skiprg") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Goto (macro-hangupcall,s,7)
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/40-00000e75", "1?skipblkvm") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Goto (macro-hangupcall,s,10)
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:10] GotoIf("SIP/40-00000e75", "1?theend") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Goto (macro-hangupcall,s,12)
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:12] Hangup("SIP/40-00000e75", "") in new stack
[Jun 21 17:18:11] VERBOSE[2185] app_macro.c: == Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/40-00000e75' in macro 'hangupcall'
[Jun 21 17:18:11] VERBOSE[2185] features.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/40-00000e75'
[Jun 21 17:18:11] VERBOSE[2185] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/40-00000e75' in macro 'dialout-trunk'
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: == Spawn extension (from-internal, 84957788xxx, 4) exited non-zero on 'SIP/40-00000e75'
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [h@from-internal:1] Macro("SIP/40-00000e75", "hangupcall") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/40-00000e75", "1?noautomon") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Goto (macro-hangupcall,s,3)
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:3] NoOp("SIP/40-00000e75", "TOUCH_MONITOR_OUTPUT=") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/40-00000e75", "1?skiprg") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Goto (macro-hangupcall,s,7)
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/40-00000e75", "1?skipblkvm") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Goto (macro-hangupcall,s,10)
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:10] GotoIf("SIP/40-00000e75", "1?theend") in new stack
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Goto (macro-hangupcall,s,12)
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: -- Executing [s@macro-hangupcall:12] Hangup("SIP/40-00000e75", "") in new stack
[Jun 21 17:18:11] VERBOSE[2185] app_macro.c: == Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/40-00000e75' in macro 'hangupcall'
[Jun 21 17:18:11] VERBOSE[2185] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/40-00000e75'
[Jun 21 17:18:59] VERBOSE[2187] manager.c: == Manager 'admin' logged on from 127.0.0.1
[Jun 21 17:18:59] VERBOSE[2187] manager.c: == Manager 'admin' logged off from 127.0.0.1
[Jun 21 17:19:04] VERBOSE[2189] manager.c: == Manager 'admin' logged on from 127.0.0.1
[Jun 21 17:19:05] VERBOSE[2189] manager.c: == Manager 'admin' logged off from 127.0.0.1
[Jun 21 17:19:05] VERBOSE[2198] manager.c: == Manager 'admin' logged on from 127.0.0.1
[Jun 21 17:19:05] VERBOSE[2198] manager.c: == Manager 'admin' logged off from 127.0.0.1
[Jun 21 17:19:11] VERBOSE[2200] manager.c: == Manager 'admin' logged on from 127.0.0.1
[Jun 21 17:19:13] VERBOSE[2200] manager.c: == Manager 'admin' logged off from 127.0.0.1
[Jun 21 17:19:13] VERBOSE[2208] manager.c: == Manager 'admin' logged on from 127.0.0.1
[Jun 21 17:19:14] VERBOSE[2208] manager.c: == Manager 'admin' logged off from 127.0.0.1
[Jun 21 17:19:14] VERBOSE[2217] manager.c: == Manager 'admin' logged on from 127.0.0.1
[Jun 21 17:19:14] VERBOSE[2217] manager.c: == Manager 'admin' logged off from 127.0.0.1
[Jun 21 17:19:20] VERBOSE[2219] manager.c: == Manager 'admin' logged on from 127.0.0.1
[Jun 21 17:19:22] VERBOSE[2219] manager.c: == Manager 'admin' logged off from 127.0.0.1
[Jun 21 17:19:28] VERBOSE[2227] manager.c: == Manager 'admin' logged on from 127.0.0.1