Страница 1 из 3

Задержка после набора номера.....

Добавлено: 30 ноя 2015, 15:07
postscripter
Здравствуйте, корифеи. Всё тот же freePBX, новая проблемка. На старом астериске после набора трёхзначного номера мгновенно начинается гудок. А мой чего-то ждёт целых две секунды. Что тут происходит, между 23-й и 28-й секундами?? Решётку не предлагать!

Код: Выделить всё

.....
[2015-11-30 17:25:21] VERBOSE[11010][C-0000004a] app_macro.c: == Spawn extension (macro-dial-one, s, 44) exited non-zero on 'SIP/401-0000003d' in macro 'dial-one'
[2015-11-30 17:25:21] VERBOSE[11010][C-0000004a] app_macro.c: == Spawn extension (macro-exten-vm, s, 14) exited non-zero on 'SIP/401-0000003d' in macro 'exten-vm'
[2015-11-30 17:25:21] VERBOSE[11010][C-0000004a] pbx.c: == Spawn extension (ext-local, 203, 2) exited non-zero on 'SIP/401-0000003d'


[2015-11-30 17:25:23] VERBOSE[11078][C-0000004b] sig_analog.c: -- Starting simple switch on 'DAHDI/66-1'
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [211@from-internal:1] GotoIf("DAHDI/66-1", "1?ext-local,211,1") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (ext-local,211,1)
.....


В книжках пишут, астер должен начинать вызов, как только введённые цифры однозначно совпадут с одним из номеров. У меня на двойку маршрутов нет. Смотрел extensions.conf, но он сгенерироват pbx-ом и размером в страшные сотни килобайт. Могу выложить, если подскажете, какую часть......

Re: Задержка после набора номера.....

Добавлено: 30 ноя 2015, 15:43
ded
C 401 набирали 203? Или 211?
Не надо тонны конфигов, осваивайте команды. Типа
CLI> dialplan show 203@ext-local
CLI> dialplan show 211@ext-local

Re: Задержка после набора номера.....

Добавлено: 30 ноя 2015, 16:00
awsswa
По полочкам
Есть задержка на телефоне если не прописать диалплан - это не ваше, потому как логи уже с asterisk а не с телефона

Задержка у вас именно в asterisk

Лучший для вас вариант посмотреть htop и понять нет ли 100% загрузки
Второй вариант - как не странно это DNS

Re: Задержка после набора номера.....

Добавлено: 01 дек 2015, 06:16
postscripter
ded писал(а):C 401 набирали 203? Или 211?
Вызывал 211-го. Там кусочек предыдущего звонка, чтобы было понятно, что выше ничего нет. Вот полный лог звонка от начала и до конца, включая конец предыдущего. Ничего такого, вся последовательность отрабатывает за полсекунды. Задержка исключительно в первой строке: sig_analog.c: -- Starting simple switch on 'DAHDI/66-1'.

Если звонить на IVR и делать донабор, гудок идёт мгновенно после 3-й цифры!

Код: Выделить всё

[2015-11-30 17:25:22] VERBOSE[11010][C-0000004a] pbx.c: == Spawn extension (macro-dial-one, h, 1) exited non-zero on 'SIP/401-0000003d'
[2015-11-30 17:25:22] VERBOSE[11010][C-0000004a] sig_analog.c: -- Hanging up on 'DAHDI/66-1'
[2015-11-30 17:25:22] VERBOSE[11010][C-0000004a] chan_dahdi.c: -- Hungup 'DAHDI/66-1'
[2015-11-30 17:25:22] VERBOSE[11010][C-0000004a] app_macro.c: == Spawn extension (macro-dial-one, s, 44) exited non-zero on 'SIP/401-0000003d' in macro 'dial-one'
[2015-11-30 17:25:22] VERBOSE[11010][C-0000004a] app_macro.c: == Spawn extension (macro-exten-vm, s, 14) exited non-zero on 'SIP/401-0000003d' in macro 'exten-vm'
[2015-11-30 17:25:22] VERBOSE[11010][C-0000004a] pbx.c: == Spawn extension (ext-local, 203, 2) exited non-zero on 'SIP/401-0000003d'


[2015-11-30 17:25:23] VERBOSE[11078][C-0000004b] sig_analog.c: -- Starting simple switch on 'DAHDI/66-1'
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [211@from-internal:1] GotoIf("DAHDI/66-1", "1?ext-local,211,1") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (ext-local,211,1)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [211@ext-local:1] Set("DAHDI/66-1", "__RINGTIMER=30") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [211@ext-local:2] Macro("DAHDI/66-1", "exten-vm,novm,211,0,0,0") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-exten-vm:1] Macro("DAHDI/66-1", "user-callerid,") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:1] Set("DAHDI/66-1", "TOUCH_MONITOR=1448882723.84") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:2] Set("DAHDI/66-1", "AMPUSER=203") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:3] GotoIf("DAHDI/66-1", "0?report") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:4] ExecIf("DAHDI/66-1", "1?Set(REALCALLERIDNUM=203)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:5] Set("DAHDI/66-1", "AMPUSER=203") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/66-1", "0?limit") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:7] Set("DAHDI/66-1", "AMPUSERCIDNAME=�е��енко,к.211") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:8] GotoIf("DAHDI/66-1", "0?report") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:9] Set("DAHDI/66-1", "AMPUSERCID=203") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:10] Set("DAHDI/66-1", "__DIAL_OPTIONS=Ttr") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:11] Set("DAHDI/66-1", "CALLERID(all)="�е��енко,к.211" <203>") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:12] GotoIf("DAHDI/66-1", "0?limit") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:13] ExecIf("DAHDI/66-1", "0?Set(GROUP(concurrency_limit)=203)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:14] GosubIf("DAHDI/66-1", "7?sub-ccss,s,1(macro-exten-vm,)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-ccss:1] ExecIf("DAHDI/66-1", "0?Return()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-ccss:2] Set("DAHDI/66-1", "CCSS_SETUP=TRUE") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-ccss:3] GosubIf("DAHDI/66-1", "0?monitor_config,1(macro-exten-vm,):monitor_default,1(macro-exten-vm,)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [monitor_default@sub-ccss:1] GotoIf("DAHDI/66-1", "0?is_exten") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [monitor_default@sub-ccss:2] StackPop("DAHDI/66-1", "") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [monitor_default@sub-ccss:3] Return("DAHDI/66-1", "FALSE") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:15] ExecIf("DAHDI/66-1", "0?Set(CHANNEL(language)=)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:16] GotoIf("DAHDI/66-1", "0?continue") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:17] ExecIf("DAHDI/66-1", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:18] Set("DAHDI/66-1", "__TTL=64") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:19] GotoIf("DAHDI/66-1", "1?continue") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (macro-user-callerid,s,30)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:30] Set("DAHDI/66-1", "CALLERID(number)=203") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:31] Set("DAHDI/66-1", "CALLERID(name)=�е��енко,к.211") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:32] Set("DAHDI/66-1", "CDR(cnum)=203") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:33] Set("DAHDI/66-1", "CDR(cnam)=�е��енко,к.211") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-user-callerid:34] Set("DAHDI/66-1", "CHANNEL(language)=ru") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-exten-vm:2] Set("DAHDI/66-1", "RingGroupMethod=none") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-exten-vm:3] Set("DAHDI/66-1", "__EXTTOCALL=211") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-exten-vm:4] Set("DAHDI/66-1", "__PICKUPMARK=211") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-exten-vm:5] Set("DAHDI/66-1", "RT=") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-exten-vm:6] Gosub("DAHDI/66-1", "sub-record-check,s,1(exten,211,dontcare)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:1] GotoIf("DAHDI/66-1", "0?initialized") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:2] Set("DAHDI/66-1", "__REC_STATUS=INITIALIZED") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:3] Set("DAHDI/66-1", "NOW=1448882728") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:4] Set("DAHDI/66-1", "__DAY=30") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:5] Set("DAHDI/66-1", "__MONTH=11") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:6] Set("DAHDI/66-1", "__YEAR=2015") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:7] Set("DAHDI/66-1", "__TIMESTR=20151130-172528") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:8] Set("DAHDI/66-1", "__FROMEXTEN=203") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:9] Set("DAHDI/66-1", "__MON_FMT=wav") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:10] NoOp("DAHDI/66-1", "Recordings initialized") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:11] ExecIf("DAHDI/66-1", "0?Set(ARG3=dontcare)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:12] Set("DAHDI/66-1", "REC_POLICY_MODE_SAVE=") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:13] ExecIf("DAHDI/66-1", "0?Set(REC_STATUS=NO)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:14] GotoIf("DAHDI/66-1", "5?checkaction") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (sub-record-check,s,17)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@sub-record-check:17] GotoIf("DAHDI/66-1", "1?sub-record-check,exten,1") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (sub-record-check,exten,1)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:1] NoOp("DAHDI/66-1", "Exten Recording Check between 203 and 211") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:2] Set("DAHDI/66-1", "CALLTYPE=internal") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:3] ExecIf("DAHDI/66-1", "0?Set(CALLTYPE=)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:4] Set("DAHDI/66-1", "CALLEE=dontcare") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:5] ExecIf("DAHDI/66-1", "0?Set(CALLEE=dontcare)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:6] GotoIf("DAHDI/66-1", "0?callee") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:7] GotoIf("DAHDI/66-1", "1?caller") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (sub-record-check,exten,13)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:13] Set("DAHDI/66-1", "RECMODE=dontcare") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:14] ExecIf("DAHDI/66-1", "0?Set(RECMODE=dontcare)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:15] ExecIf("DAHDI/66-1", "1?Set(RECMODE=dontcare)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:16] Gosub("DAHDI/66-1", "recordcheck,1(dontcare,internal,211)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [recordcheck@sub-record-check:1] NoOp("DAHDI/66-1", "Starting recording check against dontcare") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [recordcheck@sub-record-check:2] Goto("DAHDI/66-1", "dontcare") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (sub-record-check,recordcheck,3)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [recordcheck@sub-record-check:3] Return("DAHDI/66-1", "") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [exten@sub-record-check:17] Return("DAHDI/66-1", "") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-exten-vm:7] GotoIf("DAHDI/66-1", "1?macrodial") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (macro-exten-vm,s,13)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-exten-vm:13] GosubIf("DAHDI/66-1", "0?clrheader,1()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-exten-vm:14] Macro("DAHDI/66-1", "dial-one,,Ttr,211") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:1] Set("DAHDI/66-1", "DEXTEN=211") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:2] Set("DAHDI/66-1", "DIALSTATUS_CW=") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:3] GosubIf("DAHDI/66-1", "0?screen,1()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:4] GosubIf("DAHDI/66-1", "0?cf,1()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:5] GotoIf("DAHDI/66-1", "1?skip1") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (macro-dial-one,s,8)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:8] GotoIf("DAHDI/66-1", "0?nodial") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:9] GotoIf("DAHDI/66-1", "0?continue") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:10] Set("DAHDI/66-1", "EXTHASCW=ENABLED") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:11] GotoIf("DAHDI/66-1", "0?next1:cwinusebusy") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (macro-dial-one,s,23)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:23] GotoIf("DAHDI/66-1", "1?next3:continue") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (macro-dial-one,s,24)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:24] ExecIf("DAHDI/66-1", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:25] GotoIf("DAHDI/66-1", "0?nodial") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:26] GosubIf("DAHDI/66-1", "1?dstring,1():dlocal,1()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:1] Set("DAHDI/66-1", "DSTRING=") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:2] Set("DAHDI/66-1", "DEVICES=211") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:3] ExecIf("DAHDI/66-1", "0?Return()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:4] ExecIf("DAHDI/66-1", "0?Set(DEVICES=11)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:5] Set("DAHDI/66-1", "LOOPCNT=1") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:6] Set("DAHDI/66-1", "ITER=1") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:7] Set("DAHDI/66-1", "THISDIAL=DAHDI/82") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:8] GosubIf("DAHDI/66-1", "1?zap2dahdi,1()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("DAHDI/66-1", "0?Return()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [zap2dahdi@macro-dial-one:2] Set("DAHDI/66-1", "NEWDIAL=") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [zap2dahdi@macro-dial-one:3] Set("DAHDI/66-1", "LOOPCNT2=1") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [zap2dahdi@macro-dial-one:4] Set("DAHDI/66-1", "ITER2=1") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [zap2dahdi@macro-dial-one:5] Set("DAHDI/66-1", "THISPART2=DAHDI/82") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("DAHDI/66-1", "0?Set(THISPART2=DAHDIDI/82)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [zap2dahdi@macro-dial-one:7] Set("DAHDI/66-1", "NEWDIAL=DAHDI/82&") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [zap2dahdi@macro-dial-one:8] Set("DAHDI/66-1", "ITER2=2") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("DAHDI/66-1", "0?begin2") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [zap2dahdi@macro-dial-one:10] Set("DAHDI/66-1", "THISDIAL=DAHDI/82") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [zap2dahdi@macro-dial-one:11] Return("DAHDI/66-1", "") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:9] GotoIf("DAHDI/66-1", "1?doset") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (macro-dial-one,dstring,13)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:13] Set("DAHDI/66-1", "DSTRING=DAHDI/82&") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:14] Set("DAHDI/66-1", "ITER=2") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:15] GotoIf("DAHDI/66-1", "0?begin") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:16] ExecIf("DAHDI/66-1", "0?Return()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:17] Set("DAHDI/66-1", "DSTRING=DAHDI/82") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [dstring@macro-dial-one:18] Return("DAHDI/66-1", "") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:27] GotoIf("DAHDI/66-1", "0?nodial") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:28] GotoIf("DAHDI/66-1", "0?skiptrace") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:29] GosubIf("DAHDI/66-1", "1?ctset,1():ctclear,1()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [ctset@macro-dial-one:1] Set("DAHDI/66-1", "DB(CALLTRACE/211)=203") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [ctset@macro-dial-one:2] Return("DAHDI/66-1", "") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:30] Set("DAHDI/66-1", "D_OPTIONS=Ttr") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:31] ExecIf("DAHDI/66-1", "0?SIPAddHeader(Alert-Info: )") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:32] ExecIf("DAHDI/66-1", "0?SIPAddHeader()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:33] ExecIf("DAHDI/66-1", "0?Set(CHANNEL(musicclass)=)") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:34] GosubIf("DAHDI/66-1", "0?qwait,1()") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:35] Set("DAHDI/66-1", "__CWIGNORE=") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:36] Set("DAHDI/66-1", "__KEEPCID=TRUE") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:37] GotoIf("DAHDI/66-1", "0?usegoto,1") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:38] GotoIf("DAHDI/66-1", "1?godial") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (macro-dial-one,s,43)
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:43] Macro("DAHDI/66-1", "dialout-one-predial-hook,") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dialout-one-predial-hook:1] MacroExit("DAHDI/66-1", "") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-dial-one:44] Dial("DAHDI/66-1", "DAHDI/82,,Ttr") in new stack
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] app_dial.c: -- Called DAHDI/82
[2015-11-30 17:25:28] VERBOSE[11078][C-0000004b] app_dial.c: -- DAHDI/82-1 is ringing
[2015-11-30 17:25:29] VERBOSE[11078][C-0000004b] app_dial.c: -- DAHDI/82-1 is ringing
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] sig_analog.c: -- Hanging up on 'DAHDI/82-1'
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] chan_dahdi.c: -- Hungup 'DAHDI/82-1'
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] app_macro.c: == Spawn extension (macro-dial-one, s, 44) exited non-zero on 'DAHDI/66-1' in macro 'dial-one'
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] app_macro.c: == Spawn extension (macro-exten-vm, s, 14) exited non-zero on 'DAHDI/66-1' in macro 'exten-vm'
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] pbx.c: == Spawn extension (ext-local, 211, 2) exited non-zero on 'DAHDI/66-1'
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [h@ext-local:1] Macro("DAHDI/66-1", "hangupcall,") in new stack
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-hangupcall:1] ExecIf("DAHDI/66-1", "0?Set(CDR(recordingfile)=.wav)") in new stack
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-hangupcall:2] GotoIf("DAHDI/66-1", "1?theend") in new stack
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] pbx.c: -- Goto (macro-hangupcall,s,4)
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] pbx.c: -- Executing [s@macro-hangupcall:4] Hangup("DAHDI/66-1", "") in new stack
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'DAHDI/66-1' in macro 'hangupcall'
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] pbx.c: == Spawn extension (ext-local, h, 1) exited non-zero on 'DAHDI/66-1'
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] sig_analog.c: -- Hanging up on 'DAHDI/66-1'
[2015-11-30 17:25:31] VERBOSE[11078][C-0000004b] chan_dahdi.c: -- Hungup 'DAHDI/66-1'
ded писал(а):учите команды
Хорошие команды, но ничего криминального не показывают, совсем:

Код: Выделить всё

localhost*CLI> dialplan show 211@ext-local
[ Context 'ext-local' created by 'pbx_config' ]
  '211' =>          hint: DAHDI/82&Custom:DND211,CustomPresence:211 [pbx_config]
                    1. Set(__RINGTIMER=${IF($["${DB(AMPUSER/211/ringtimer)}" > "0"]?${DB(AMPUSER/211/ringtimer)}:${RINGTIMER_DEFAULT})}) [pbx_config]
                    2. Macro(exten-vm,novm,211,0,0,0)             [pbx_config]
     [dest]         3. Set(__PICKUPMARK=)                         [pbx_config]
                    4. Goto(${IVR_CONTEXT},return,1)              [pbx_config]

-= 1 extension (5 priorities) in 1 context. =-

Код: Выделить всё

localhost*CLI> dialplan show 211@from-internal
[ Included context 'ext-findmefollow' created by 'pbx_config' ]
  '211' =>          1. GotoIf($[ "${DB(AMPUSER/211/followme/ddial)}" = "EXTENSION" ]?ext-local,211,1) [pbx_config]
     [FM211]        2. Macro(user-callerid,)                      [pbx_config]
                    3. Set(DIAL_OPTIONS=${DIAL_OPTIONS}I)         [pbx_config]
                    4. Set(CONNECTEDLINE(num,i)=211)              [pbx_config]
                    5. Gosub(sub-presencestate-display,s,1(211))  [pbx_config]
                    6. Set(CONNECTEDLINE(name)=${DB(AMPUSER/211/cidname)}${PRESENCESTATE_DISPLAY}) [pbx_config]
                    7. Set(FM_DIALSTATUS=${EXTENSION_STATE(211@ext-local)}) [pbx_config]
                    8. Set(__EXTTOCALL=${EXTEN})                  [pbx_config]
                    9. Set(__PICKUPMARK=${EXTEN})                 [pbx_config]
                    10. Macro(blkvm-setifempty,)                  [pbx_config]
                    11. GotoIf($["${GOSUB_RETVAL}" = "TRUE"]?skipov) [pbx_config]
                    12. Macro(blkvm-set,reset)                    [pbx_config]
                    13. Set(__NODEST=)                            [pbx_config]
     [skipov]       14. Set(RRNODEST=${NODEST})                   [pbx_config]
     [skipvmblk]    15. Set(__NODEST=${EXTEN})                    [pbx_config]
                    16. GosubIf($[${DB_EXISTS(AMPUSER/211/followme/changecid)} = 1 & "${DB(AMPUSER/211/followme/changecid)}" != "default" & "${DB(AMPUSER/211/followme/changecid)}" != ""]?sub-fmsetcid,s,1()) [pbx_config]
                    17. Set(RecordMethod=Group)                   [pbx_config]
     [checkrecord]  18. Gosub(sub-record-check,s,1(exten,211,))   [pbx_config]
     [skipsimple]   19. Set(RingGroupMethod=ringallv2)            [pbx_config]
                    20. Set(_FMGRP=211)                           [pbx_config]
     [DIALGRP]      21. GotoIf($[("${DB(AMPUSER/211/followme/grpconf)}"="ENABLED") | ("${FORCE_CONFIRM}"!="") ]?doconfirm) [pbx_config]
                    22. Macro(dial,$[ ${DB(AMPUSER/211/followme/grptime)} + ${DB(AMPUSER/211/followme/prering)} ],${DIAL_OPTIONS},${DB(AMPUSER/211/followme/grplist)}) [pbx_config]
                    23. Goto(nextstep)                            [pbx_config]
     [doconfirm]    24. Macro(dial-confirm,$[ ${DB(AMPUSER/211/followme/grptime)} + ${DB(AMPUSER/211/followme/prering)} ],${DIAL_OPTIONS},${DB(AMPUSER/211/followme/grplist)},211) [pbx_config]
     [nextstep]     25. Set(RingGroupMethod=)                     [pbx_config]
                    26. GotoIf($["foo${RRNODEST}" != "foo"]?nodest) [pbx_config]
                    27. Set(__NODEST=)                            [pbx_config]
                    28. Set(__PICKUPMARK=)                        [pbx_config]
                    29. Macro(blkvm-clr,)                         [pbx_config]
                    30. Set(DIALSTATUS=${IF($["${FM_DIALSTATUS}"="NOT_INUSE"&"${DIALSTATUS}"!="CHANUNAVAIL"]?NOANSWER:${IF($["${DIALSTATUS}"="CHANUNAVAIL"|"${FM_DIALSTATUS}"="UNAVAILABLE"|"${FM_DIALSTATUS}"="UNKNOWN"|"${FM_DIALSTATUS}"="INVALID"]?CHANUNAVAIL:BUSY)})}) [pbx_config]
                    31. Goto(ext-local,211,dest)                  [pbx_config]
     [nodest]       32. Noop(SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST}) [pbx_config]

[ Included context 'ext-local' created by 'pbx_config' ]
  '211' =>          hint: DAHDI/82&Custom:DND211,CustomPresence:211 [pbx_config]
                    1. Set(__RINGTIMER=${IF($["${DB(AMPUSER/211/ringtimer)}" > "0"]?${DB(AMPUSER/211/ringtimer)}:${RINGTIMER_DEFAULT})}) [pbx_config]
                    2. Macro(exten-vm,novm,211,0,0,0)             [pbx_config]
     [dest]         3. Set(__PICKUPMARK=)                         [pbx_config]
                    4. Goto(${IVR_CONTEXT},return,1)              [pbx_config]

[ Included context 'bad-number' created by 'pbx_config' ]
  '_X.' =>          1. ResetCDR()                                 [pbx_config]
                    2. NoCDR()                                    [pbx_config]
                    3. Progress()                                 [pbx_config]
                    4. Wait(1)                                    [pbx_config]
                    5. Progress()                                 [pbx_config]
                    6. Playback(silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer) [pbx_config]
                    7. Wait(1)                                    [pbx_config]
                    8. Congestion(20)                             [pbx_config]
                    9. Hangup()                                   [pbx_config]

-= 3 extensions (46 priorities) in 3 contexts. =-
localhost*CLI>
awsswa
Топы, h-топы, if-топы и прочая - нормально. Больше всех кушает сам htop, аж 1,5 процента. Могу ещё iotop поставить, вдруг чё. DNS -- локальный dnsmasq через яндекс-днс, отвечает за 0,1 с.

Re: Задержка после набора номера.....

Добавлено: 01 дек 2015, 13:05
ded
Я так понимаю - 211 номер силит на DAHDI/82 - это Парабел? Банк каналов?
Сделайте обход по прямой, без ваших хинтов и статусов presense, для теста
создайте контекст [ext-local-custom] в extensions_custom.conf
и там укажите
exten => 211,1,Dial( DAHDI/82)
и dialplan reload

после чего - делайте тестовый звонок.
Вангую, что задержек не будет, они есть ввиду
hint: DAHDI/82&Custom:DND211,CustomPresence:211

Re: Задержка после набора номера.....

Добавлено: 01 дек 2015, 13:36
postscripter
Нашёл идентичную тему на соседнем форуме. С 2011 года решения нет. Пишут, что 3 секунды - это время ожидания цифры, когда присутствует неоднозначность. Как понять, откуда она берётся??????? Может, какие-то служебные номера?

Re: Задержка после набора номера.....

Добавлено: 01 дек 2015, 13:39
postscripter
ded писал(а):Я так понимаю - 211 номер силит на DAHDI/82 - это Парабел? Банк каналов?
Сделайте обход по прямой
Да, всё так.
Т.е. отключаем лишний обвес? попробую.

Re: Задержка после набора номера.....

Добавлено: 01 дек 2015, 14:09
postscripter
ded писал(а):Вангую, что задержек не будет
К сожалению. Всё те же три секунды до щелчка реле и гудков.

Код: Выделить всё

[2015-12-01 17:01:36] VERBOSE[19866][C-00000022] sig_analog.c: -- Starting simple switch on 'DAHDI/66-1'
[2015-12-01 17:01:45] VERBOSE[19866][C-00000022] pbx.c: -- Executing [211@from-internal:1] Dial("DAHDI/66-1", "DAHDI/82") in new stack
[2015-12-01 17:01:45] VERBOSE[19866][C-00000022] app_dial.c: -- Called DAHDI/82
[2015-12-01 17:01:45] VERBOSE[19866][C-00000022] app_dial.c: -- DAHDI/82-1 is ringing
[2015-12-01 17:01:46] VERBOSE[19866][C-00000022] app_dial.c: -- DAHDI/82-1 is ringing
[2015-12-01 17:01:49] VERBOSE[19866][C-00000022] sig_analog.c: -- Hanging up on 'DAHDI/82-1'
[2015-12-01 17:01:49] VERBOSE[19866][C-00000022] chan_dahdi.c: -- Hungup 'DAHDI/82-1'
[2015-12-01 17:01:49] VERBOSE[19866][C-00000022] pbx.c: == Spawn extension (from-internal, 211, 1) exited non-zero on 'DAHDI/66-1'
[2015-12-01 17:01:49] VERBOSE[19866][C-00000022] pbx.c: -- Executing [h@from-internal:1] Hangup("DAHDI/66-1", "") in new stack
[2015-12-01 17:01:49] VERBOSE[19866][C-00000022] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'DAHDI/66-1'
[2015-12-01 17:01:49] VERBOSE[19866][C-00000022] sig_analog.c: -- Hanging up on 'DAHDI/66-1'
[2015-12-01 17:01:49] VERBOSE[19866][C-00000022] chan_dahdi.c: -- Hungup 'DAHDI/66-1'
Удалил экстеншн через веб-морду, потом дописал в extensions_custom
[ext-local]
exten => 211,1,Dial(DAHDI/82)
и dialplan reload.

Re: Задержка после набора номера.....

Добавлено: 01 дек 2015, 14:28
postscripter
Ded, я же правильно сделал? Не пойму, на максимальном уровне дебага всё ещё видна работа модуля parking exten. Вот они, эти три секунды:

[2015-12-01 17:17:53] DEBUG[20565][C-00000026]: sig_analog.c:1600 analog_handle_dtmf: End DTMF digit: 0x31 '1' on DAHDI/66-1
[2015-12-01 17:17:53] DEBUG[20565][C-00000026]: chan_dahdi.c:2270 my_handle_dtmf: End DTMF digit: 0x31 '1' on DAHDI/66-1
[2015-12-01 17:17:53] DEBUG[20565][C-00000026]: sig_analog.c:2128 __analog_ss_thread: waitfordigit returned '1' (49), timeout = 0
[2015-12-01 17:17:53] DEBUG[16615]: manager.c:4856 match_filter: Examining event:
Event: DTMF
Privilege: dtmf,all
Channel: DAHDI/66-1
Uniqueid: 1448968671.54
Digit: 1
Direction: Received
Begin: No
End: Yes
[2015-12-01 17:17:53] DEBUG[20565][C-00000026]: features.c:966 get_parking_exten: Checking if 211@from-internal is a parking exten

пауза

[2015-12-01 17:17:56] DEBUG[20565][C-00000026]: features.c:966 get_parking_exten: Checking if 211@from-internal is a parking exten


и дальше посылка вызова с передачей caller id.

Re: Задержка после набора номера.....

Добавлено: 01 дек 2015, 15:07
ded
Вызов происходит из контекста from-internal
Checking if 211@from-internal is a parking exten
где чекает все разрешённые/запрещённые феатуры.
И тут тоже from-internal:

Код: Выделить всё

[2015-12-01 17:01:36] VERBOSE[19866][C-00000022] sig_analog.c: -- Starting simple switch on 'DAHDI/66-1'
[2015-12-01 17:01:45] VERBOSE[19866][C-00000022] pbx.c: -- Executing [211@from-internal:1] Dial("DAHDI/66-1", "DAHDI/82") in new stack
Думаю есть контекст [from-internal-custom] в extensions_custom.conf
и там укажите
exten => 211,1,Dial( DAHDI/82)
чтобы выполнилась строго эта строка.