VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Исходящие с OS500 на Asterisk

Проблемы Asterisk без вэб-оболочек и их решения

Модераторы: april22, Zavr2008

Ответить
chardisdze
Сообщения: 85
Зарегистрирован: 17 июн 2016, 16:18

Исходящие с OS500 на Asterisk

Сообщение chardisdze »

Всем доброго дня! В Asterisk только начинаю вникать, книгу читал, но практика лучше.
Имею OS500 (1xx-3xx), Asterisk A (4xx-5xx), Asterisk B (5xx), на внешку sip-многоканальник от RT, прикрученый к Asterisk А.
Внутренние телефоны всех АТС между собой работают, все в норме. С Астеров звонки на внешку через sip-многоканальник бегают без проблем, входящие с внешки через IVR и добавочные долетают куда нужно (и на OS-500 и на Asteriskи). Решили исходящие звонки с внутренних номеров OS500 пустить через Е1 (которым соединены OS500 и Asterisk A) на Asterisk A и далее на транк RT и на внешку, т.е. организовать внешние вызовы с OS500 через sip-многоканальник. На OS500 для данной манипуляции почти все готово, а вот с настройками Asteriskа А есть проблемка: когда внутренний номер с OS500 (1xx-3xx) попадает на астер через Е1 то он автоматом отстреливается обратно на OS500, т.к. во входящей маршрутизации прописано правило, если DID _[123]xx в Dahdi. Это сделано для того чтоб с Asteriska B номера могли попадать на внутренние номера OS500.
Собственно вопрос: как направить номера 1хх, 2хх, 3хх в транк RT c сохранением этих настроек???
Пробовали в правилах входящей маршрутизации втыкать правило детектирования по CID и в транк RT - работает!!! НО, внутренние номера OS500 в этом случае не дозваниваются на внутренние номера Asteriskoв, т.к. жестко отсылаются в транк RT.
Помогите советом, плиз или укажите направление в котором копать (направления из 3-х буквенных символов - игнор =))
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: Исходящие с OS500 на Asterisk

Сообщение ded »

chardisdze писал(а):Asterisk A (4xx-5xx), Asterisk B (5xx)
Уже плохо, совпадение внутренних планов наборов по 5ХХ
chardisdze писал(а):когда внутренний номер с OS500 (1xx-3xx) попадает на астер через Е1
то в какой он контекст попадает? Что ещё расписано в этом контексте?
Увидеть можно как в файле extensions*.conf так и командой
CLI> dialplan show имя_контекста
chardisdze писал(а):то он автоматом отстреливается обратно на OS500, т.к. во входящей маршрутизации прописано правило, если DID _[123]xx в Dahdi. Это сделано для того чтоб с Asteriska B номера могли попадать на внутренние номера OS500.
Собственно вопрос: как направить номера 1хх, 2хх, 3хх в транк RT c сохранением этих настроек???
Не смешивать внутренний диалплан с внешним.
DID говорите? Значит там что-то freePBX-подобное?

Тогда приёмный контекст для DAHDI E1 от OS500 будет from-internal, и никаких входящих правил вообще прописывать не надо. Но для вызовов в сторону OS500 надо сделать внутренний исходящий маршрут _[123]xx через транк DAHDI E1 на OS500.
chardisdze
Сообщения: 85
Зарегистрирован: 17 июн 2016, 16:18

Re: Исходящие с OS500 на Asterisk

Сообщение chardisdze »

ded писал(а):
Уже плохо, совпадение внутренних планов наборов по 5ХХ
Прошу прощения, немного неправильно описал:
Asterisk A (4xx, 5[3-9]x), Asterisk B (5[012]X)
ded писал(а): Увидеть можно как в файле extensions*.conf так и командой
CLI> dialplan show имя_контекста
вроде как контекст from-internal
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[2016-07-20 15:07:17] VERBOSE[6796][C-000008d4] sig_pri.c: Accepting call from '220' to '444' on channel 0/2, span 1
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [444@from-digital:1] GotoIf("DAHDI/i1/220-43d", "1?ext-local,444,1") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (ext-local,444,1)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [444@ext-local:1] Set("DAHDI/i1/220-43d", "__RINGTIMER=10") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [444@ext-local:2] Macro("DAHDI/i1/220-43d", "exten-vm,444,444,1,1,1") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-exten-vm:1] Macro("DAHDI/i1/220-43d", "user-callerid,") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:1] Set("DAHDI/i1/220-43d", "TOUCH_MONITOR=1469016437.31827") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:2] Set("DAHDI/i1/220-43d", "AMPUSER=220") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:3] GotoIf("DAHDI/i1/220-43d", "0?report") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:4] ExecIf("DAHDI/i1/220-43d", "1?Set(REALCALLERIDNUM=220)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:5] Set("DAHDI/i1/220-43d", "AMPUSER=") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:6] GotoIf("DAHDI/i1/220-43d", "0?limit") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:7] Set("DAHDI/i1/220-43d", "AMPUSERCIDNAME=") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:8] GotoIf("DAHDI/i1/220-43d", "1?report") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (macro-user-callerid,s,15)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:15] GotoIf("DAHDI/i1/220-43d", "0?continue") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:16] ExecIf("DAHDI/i1/220-43d", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:17] Set("DAHDI/i1/220-43d", "__TTL=64") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:18] GotoIf("DAHDI/i1/220-43d", "1?continue") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (macro-user-callerid,s,29)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:29] Set("DAHDI/i1/220-43d", "CALLERID(number)=220") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:30] Set("DAHDI/i1/220-43d", "CALLERID(name)=") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:31] Set("DAHDI/i1/220-43d", "CDR(cnum)=220") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:32] Set("DAHDI/i1/220-43d", "CDR(cnam)=") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-user-callerid:33] Set("DAHDI/i1/220-43d", "CHANNEL(language)=ru") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-exten-vm:2] Set("DAHDI/i1/220-43d", "RingGroupMethod=none") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-exten-vm:3] Set("DAHDI/i1/220-43d", "__EXTTOCALL=444") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-exten-vm:4] Set("DAHDI/i1/220-43d", "__PICKUPMARK=444") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-exten-vm:5] Set("DAHDI/i1/220-43d", "RT=10") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-exten-vm:6] ExecIf("DAHDI/i1/220-43d", "0?Macro(vm,444,DIRECTDIAL,)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-exten-vm:7] ExecIf("DAHDI/i1/220-43d", "0?MacroExit()") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-exten-vm:8] Gosub("DAHDI/i1/220-43d", "sub-record-check,s,1(exten,444,dontcare)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:1] GotoIf("DAHDI/i1/220-43d", "0?initialized") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:2] Set("DAHDI/i1/220-43d", "__REC_STATUS=INITIALIZED") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:3] Set("DAHDI/i1/220-43d", "NOW=1469016437") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:4] Set("DAHDI/i1/220-43d", "__DAY=20") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:5] Set("DAHDI/i1/220-43d", "__MONTH=07") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:6] Set("DAHDI/i1/220-43d", "__YEAR=2016") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:7] Set("DAHDI/i1/220-43d", "__TIMESTR=20160720-150717") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:8] Set("DAHDI/i1/220-43d", "__FROMEXTEN=220") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:9] Set("DAHDI/i1/220-43d", "__MON_FMT=wav") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:10] NoOp("DAHDI/i1/220-43d", "Recordings initialized") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:11] ExecIf("DAHDI/i1/220-43d", "0?Set(ARG3=dontcare)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:12] Set("DAHDI/i1/220-43d", "REC_POLICY_MODE_SAVE=") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:13] ExecIf("DAHDI/i1/220-43d", "0?Set(REC_STATUS=NO)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:14] GotoIf("DAHDI/i1/220-43d", "5?checkaction") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (sub-record-check,s,17)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@sub-record-check:17] GotoIf("DAHDI/i1/220-43d", "1?sub-record-check,exten,1") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (sub-record-check,exten,1)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:1] NoOp("DAHDI/i1/220-43d", "Exten Recording Check between 220 and 444") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:2] Set("DAHDI/i1/220-43d", "CALLTYPE=internal") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:3] ExecIf("DAHDI/i1/220-43d", "0?Set(CALLTYPE=)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:4] Set("DAHDI/i1/220-43d", "CALLEE=no") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:5] ExecIf("DAHDI/i1/220-43d", "0?Set(CALLEE=dontcare)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:6] GotoIf("DAHDI/i1/220-43d", "0?callee") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:7] GotoIf("DAHDI/i1/220-43d", "0?caller") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:8] ExecIf("DAHDI/i1/220-43d", "0?Set(CALLER_PRI=):Set(CALLER_PRI=0)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:9] ExecIf("DAHDI/i1/220-43d", "2?Set(CALLEE_PRI=10):Set(CALLEE_PRI=0)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:10] GotoIf("DAHDI/i1/220-43d", "0?caller:callee") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (sub-record-check,exten,11)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:11] Gosub("DAHDI/i1/220-43d", "recordcheck,1(no,internal,444)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [recordcheck@sub-record-check:1] NoOp("DAHDI/i1/220-43d", "Starting recording check against no") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [recordcheck@sub-record-check:2] Goto("DAHDI/i1/220-43d", "no") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (sub-record-check,recordcheck,12)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [recordcheck@sub-record-check:12] Set("DAHDI/i1/220-43d", "__REC_POLICY_MODE=NO") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [recordcheck@sub-record-check:13] Return("DAHDI/i1/220-43d", "") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [exten@sub-record-check:12] Return("DAHDI/i1/220-43d", "") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-exten-vm:9] Macro("DAHDI/i1/220-43d", "dial-one,10,Ttr,444") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:1] Set("DAHDI/i1/220-43d", "DEXTEN=444") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:2] Set("DAHDI/i1/220-43d", "DIALSTATUS_CW=") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:3] GosubIf("DAHDI/i1/220-43d", "0?screen,1()") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:4] GosubIf("DAHDI/i1/220-43d", "0?cf,1()") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:5] GotoIf("DAHDI/i1/220-43d", "1?skip1") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (macro-dial-one,s,8)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:8] GotoIf("DAHDI/i1/220-43d", "0?nodial") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:9] GotoIf("DAHDI/i1/220-43d", "0?continue") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:10] Set("DAHDI/i1/220-43d", "EXTHASCW=ENABLED") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:11] GotoIf("DAHDI/i1/220-43d", "0?next1:cwinusebusy") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (macro-dial-one,s,23)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:23] GotoIf("DAHDI/i1/220-43d", "0?next3:continue") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (macro-dial-one,s,25)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:25] GotoIf("DAHDI/i1/220-43d", "0?nodial") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:26] GosubIf("DAHDI/i1/220-43d", "1?dstring,1():dlocal,1()") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:1] Set("DAHDI/i1/220-43d", "DSTRING=") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:2] Set("DAHDI/i1/220-43d", "DEVICES=444") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:3] ExecIf("DAHDI/i1/220-43d", "0?Return()") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:4] ExecIf("DAHDI/i1/220-43d", "0?Set(DEVICES=44)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:5] Set("DAHDI/i1/220-43d", "LOOPCNT=1") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:6] Set("DAHDI/i1/220-43d", "ITER=1") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:7] Set("DAHDI/i1/220-43d", "THISDIAL=SIP/444") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:8] GosubIf("DAHDI/i1/220-43d", "1?zap2dahdi,1()") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [zap2dahdi@macro-dial-one:1] ExecIf("DAHDI/i1/220-43d", "0?Return()") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [zap2dahdi@macro-dial-one:2] Set("DAHDI/i1/220-43d", "NEWDIAL=") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [zap2dahdi@macro-dial-one:3] Set("DAHDI/i1/220-43d", "LOOPCNT2=1") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [zap2dahdi@macro-dial-one:4] Set("DAHDI/i1/220-43d", "ITER2=1") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [zap2dahdi@macro-dial-one:5] Set("DAHDI/i1/220-43d", "THISPART2=SIP/444") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [zap2dahdi@macro-dial-one:6] ExecIf("DAHDI/i1/220-43d", "0?Set(THISPART2=DAHDI/444)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [zap2dahdi@macro-dial-one:7] Set("DAHDI/i1/220-43d", "NEWDIAL=SIP/444&") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [zap2dahdi@macro-dial-one:8] Set("DAHDI/i1/220-43d", "ITER2=2") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [zap2dahdi@macro-dial-one:9] GotoIf("DAHDI/i1/220-43d", "0?begin2") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [zap2dahdi@macro-dial-one:10] Set("DAHDI/i1/220-43d", "THISDIAL=SIP/444") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [zap2dahdi@macro-dial-one:11] Return("DAHDI/i1/220-43d", "") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:9] GotoIf("DAHDI/i1/220-43d", "1?docheck") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (macro-dial-one,dstring,12)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:12] GotoIf("DAHDI/i1/220-43d", "0?skipset") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:13] Set("DAHDI/i1/220-43d", "DSTRING=SIP/444&") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:14] Set("DAHDI/i1/220-43d", "ITER=2") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:15] GotoIf("DAHDI/i1/220-43d", "0?begin") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:16] ExecIf("DAHDI/i1/220-43d", "0?Return()") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:17] Set("DAHDI/i1/220-43d", "DSTRING=SIP/444") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [dstring@macro-dial-one:18] Return("DAHDI/i1/220-43d", "") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:27] GotoIf("DAHDI/i1/220-43d", "0?nodial") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:28] GotoIf("DAHDI/i1/220-43d", "0?skiptrace") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:29] GosubIf("DAHDI/i1/220-43d", "1?ctset,1():ctclear,1()") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [ctset@macro-dial-one:1] Set("DAHDI/i1/220-43d", "DB(CALLTRACE/444)=220") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [ctset@macro-dial-one:2] Return("DAHDI/i1/220-43d", "") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:30] Set("DAHDI/i1/220-43d", "D_OPTIONS=Ttr") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:31] NoOp("DAHDI/i1/220-43d", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:32] ExecIf("DAHDI/i1/220-43d", "0?Set(ALERT_INFO=)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:33] ExecIf("DAHDI/i1/220-43d", "0?Set(ALERT_INFO=)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:34] ExecIf("DAHDI/i1/220-43d", "0?Set(ALERT_INFO=)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:35] GosubIf("DAHDI/i1/220-43d", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:36] ExecIf("DAHDI/i1/220-43d", "0?Set(CHANNEL(musicclass)=)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:37] GosubIf("DAHDI/i1/220-43d", "0?qwait,1()") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:38] Set("DAHDI/i1/220-43d", "__CWIGNORE=") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:39] Set("DAHDI/i1/220-43d", "__KEEPCID=TRUE") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:40] GotoIf("DAHDI/i1/220-43d", "0?usegoto,1") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:41] GotoIf("DAHDI/i1/220-43d", "1?godial") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Goto (macro-dial-one,s,46)
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:46] Macro("DAHDI/i1/220-43d", "dialout-one-predial-hook,") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dialout-one-predial-hook:1] MacroExit("DAHDI/i1/220-43d", "") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:47] ExecIf("DAHDI/i1/220-43d", "0?Set(D_OPTIONS=trI)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@macro-dial-one:48] Dial("DAHDI/i1/220-43d", "SIP/444,10,Ttrb(func-apply-sipheaders^s^1)") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] netsock2.c: Using SIP VIDEO TOS bits 136
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] netsock2.c: Using SIP VIDEO CoS mark 6
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] netsock2.c: Using SIP RTP TOS bits 184
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] netsock2.c: Using SIP RTP CoS mark 5
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] app_stack.c: SIP/444-00000a58 Internal Gosub(func-apply-sipheaders,s,1) start
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@func-apply-sipheaders:1] NoOp("SIP/444-00000a58", "Applying SIP Headers to channel") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@func-apply-sipheaders:2] Set("SIP/444-00000a58", "SIPHEADERKEYS=") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@func-apply-sipheaders:3] While("SIP/444-00000a58", "0") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] app_while.c: Jumping to priority 7
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] pbx.c: Executing [s@func-apply-sipheaders:8] Return("SIP/444-00000a58", "") in new stack
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] app_stack.c: Spawn extension (from-internal, 444, 1) exited non-zero on 'SIP/444-00000a58'
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] app_stack.c: SIP/444-00000a58 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] app_dial.c: Called SIP/444

[2016-07-20 15:07:17] VERBOSE[32404][C-000008d4] app_dial.c: SIP/444-00000a58 is ringing
ded писал(а):Не смешивать внутренний диалплан с внешним.
DID говорите? Значит там что-то freePBX-подобное?
Да, FreePBX.
ded писал(а):Тогда приёмный контекст для DAHDI E1 от OS500 будет from-internal, и никаких входящих правил вообще прописывать не надо. Но для вызовов в сторону OS500 надо сделать внутренний исходящий маршрут _[123]xx через транк DAHDI E1 на OS500.
исходящий на Dahdi:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[outrt-1] ; OS500
exten => _[123]XX/_XXX,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _[123]XX/_XXX,n,Gosub(sub-record-check,s,1(out,${EXTEN},yes))
exten => _[123]XX/_XXX,n,ExecIf($[ "${CALLEE_ACCOUNCODE}" != "" ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _[123]XX/_XXX,n,Set(INTRACOMPANYROUTE=YES)
exten => _[123]XX/_XXX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _[123]XX/_XXX,n,Set(_NODEST=)
exten => _[123]XX/_XXX,n,Macro(dialout-trunk,1,${EXTEN},,off)
exten => _[123]XX/_XXX,n,Macro(outisbusy,)

exten => _[123]XX/_XXXXXXXXXXX,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _[123]XX/_XXXXXXXXXXX,n,Gosub(sub-record-check,s,1(out,${EXTEN},yes))
exten => _[123]XX/_XXXXXXXXXXX,n,ExecIf($[ "${CALLEE_ACCOUNCODE}" != "" ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _[123]XX/_XXXXXXXXXXX,n,Set(INTRACOMPANYROUTE=YES)
exten => _[123]XX/_XXXXXXXXXXX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _[123]XX/_XXXXXXXXXXX,n,Set(_NODEST=)
exten => _[123]XX/_XXXXXXXXXXX,n,Macro(dialout-trunk,1,${EXTEN},,off)
exten => _[123]XX/_XXXXXXXXXXX,n,Macro(outisbusy,)

;--== end of [outrt-1] ==--;
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: Исходящие с OS500 на Asterisk

Сообщение ded »

Шаблон exten => _[123]XX/_XXX - некорректный, потому что указана маска (фильтр) для внутренних номеров ХХХ, это значит - любые трёхзначные, а значит можно вообще не ставить маску ХХХ.
Вопрос в шаблоне маршрута с исходящими, город - как выглядит? Он же не трёхзначный, чтобы в тот же outrt-1 затягивало петлёй?
И там просто в вэб интерфейсе надо приоритет маршрутов поменять через drag-n-drop - буксировкой.
chardisdze
Сообщения: 85
Зарегистрирован: 17 июн 2016, 16:18

Re: Исходящие с OS500 на Asterisk

Сообщение chardisdze »

ded писал(а):Шаблон exten => _[123]XX/_XXX - некорректный, потому что указана маска (фильтр) для внутренних номеров ХХХ, это значит - любые трёхзначные, а значит можно вообще не ставить маску ХХХ.
Действительно в примерах библии шаблоны без маски.
Т.е. вот так будет корректно?
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
exten => _[123]XX,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _[123]XX,n,Gosub(sub-record-check,s,1(out,${EXTEN},yes))
exten => _[123]XX,n,ExecIf($[ "${CALLEE_ACCOUNCODE}" != "" ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _[123]XX,n,Set(INTRACOMPANYROUTE=YES)
exten => _[123]XX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _[123]XX,n,Set(_NODEST=)
exten => _[123]XX,n,Macro(dialout-trunk,1,${EXTEN},,off)
exten => _[123]XX,n,Macro(outisbusy,)
по поводу города: каков шаблон исходящей маршрутизации в город или шаблон городского номера?
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: Исходящие с OS500 на Asterisk

Сообщение ded »

chardisdze писал(а):Т.е. вот так будет корректно?
Да.
chardisdze писал(а):по поводу города: каков шаблон исходящей маршрутизации в город или шаблон городского номера?
Оцените свой вопрос. Вы его должны были задавать своему оператору связи.
Мне надо было спросить дежурного телепата, чтобы он нам помог - ответил, что в г. Дзержинск Нижегородской обл. 6-тизначный набор городских номеров.
То есть _ZXXXXX. Но может оператор принимает десятизнаком - _8313ZXXXXX городские, и 9ХХХХХХХХХ - мобильные.
chardisdze
Сообщения: 85
Зарегистрирован: 17 июн 2016, 16:18

Re: Исходящие с OS500 на Asterisk

Сообщение chardisdze »

Проблемка, решена! Дело было в контекстах. На Dahdi был контекст по умолчанию from-digital - изменили на from-internal - заработало!!! ded, огромное спасибо за помощь!!! Тему можно закрыть!!! Спасибо!!!
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH