Соединил астериск с другим атс. Звонки из астериска на другой сервер и наоборот идут без проблем, только вот когда хочу сделать трансфер звонка из номера астериска на номер другово атс, звонок не идет.
вот транк:
Код: Выделить всё
[oktell]
type=friend
host=ip
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=gsm
context=from-internal
qualify=no
regseconds=0
rtpkeepalive=0
trustrpid=yes
transfer=yes
Код: Выделить всё
pbx.c: Executing [s@macro-dialout-trunk:23] Dial(«SIP/408-0000000b», «SIP/ADC/130,300,T») in new stack
[2018-04-03 09:26:22] VERBOSE[33041][C-00000005] netsock2.c: Using SIP RTP TOS bits 184
[2018-04-03 09:26:22] VERBOSE[33041][C-00000005] netsock2.c: Using SIP RTP CoS mark 5
[2018-04-03 09:26:22] VERBOSE[33041][C-00000005] app_dial.c: Called SIP/ADC/130
[2018-04-03 09:26:23] VERBOSE[32204][C-00000005] res_rtp_asterisk.c: 0x7f88c4015a80 — Strict RTP learning after remote address set to: 95.140.202.246:39266
[2018-04-03 09:26:23] VERBOSE[33041][C-00000005] app_dial.c: SIP/ADC-0000000d is making progress passing it to SIP/408-0000000b
[2018-04-03 09:26:23] VERBOSE[33041][C-00000005] res_rtp_asterisk.c: 0x7f88c4015a80 — Strict RTP switching to RTP target address 95.140.202.246:39266 as source
[2018-04-03 09:26:24] VERBOSE[33041][C-00000005] res_rtp_asterisk.c: 0x7f88c4015a80 — Strict RTP learning complete - Locking on source address 95.140.202.246:39266
[2018-04-03 09:26:26] WARNING[32204][C-00000005] chan_sip.c: Received response: «Forbidden» from '<sip:690904@sip.adc.am>;tag=as54e378d1'
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx.c: Executing [s@macro-dialout-trunk:24] NoOp(«SIP/408-0000000b», «Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21») in new stack
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx.c: Executing [s@macro-dialout-trunk:25] GotoIf(«SIP/408-0000000b», «0?continue,1:s-CHANUNAVAIL,1») in new stack
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(«SIP/408-0000000b», «RC=21») in new stack
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(«SIP/408-0000000b», «21,1») in new stack
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx_builtins.c: Goto (macro-dialout-trunk,21,1)
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx.c: Executing [21@macro-dialout-trunk:1] Goto(«SIP/408-0000000b», «continue,1») in new stack
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx.c: Executing [continue@macro-dialout-trunk:1] NoOp(«SIP/408-0000000b», «TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks») in new stack
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx.c: Executing [continue@macro-dialout-trunk:2] ExecIf(«SIP/408-0000000b», «1?Set(CALLERID(number)=408)») in new stack
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx.c: Executing [130@from-internal-xfer:7] Macro(«SIP/408-0000000b», «outisbusy,») in new stack
[2018-04-03 09:26:26] WARNING[33041][C-00000005] app_macro.c: No such context 'macro-outisbusy' for macro 'outisbusy'. Was called by 130@from-internal-xfer
[2018-04-03 09:26:26] VERBOSE[33041][C-00000005] pbx.c: Auto fallthrough, channel 'SIP/408-0000000b' status is 'CHANUNAVAIL'
[2018-04-03 09:26:36] VERBOSE[33041][C-00000005] pbx.c: Executing [h@from-internal-xfer:1] Macro(«SIP/408-0000000b», «hangupcall») in new stack
[2018-04-03 09:26:36] VERBOSE[33041][C-00000005] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(«SIP/408-0000000b», «1?theend») in new stack
[2018-04-03 09:26:36] VERBOSE[33041][C-00000005] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2018-04-03 09:26:36] VERBOSE[33041][C-00000005] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(«SIP/408-0000000b», «0?Set(CDR(recordingfile)=)») in new stack
[2018-04-03 09:26:36] VERBOSE[33041][C-00000005] pbx.c: Executing [s@macro-hangupcall:4] Hangup(«SIP/408-0000000b», "") in new stack
[2018-04-03 09:26:36] VERBOSE[33041][C-00000005] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/408-0000000b' in macro 'hangupcall'
[2018-04-03 09:26:36] VERBOSE[33041][C-00000005] pbx.c: Spawn extension (from-internal-xfer, h, 1) exited non-zero on 'SIP/408-0000000b'
130 это номер другого атс