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

FreePBX 14 звонок не переводится наружу

Добавлено: 18 июл 2019, 23:36
sarge
Здравствуйте,
Дошли руки до установки нового FreePBX 14.
Поставил, настроил транки, внутренние номера, все работает. Звонится и наружу и снаружи.
А вот если переадресовывать с внутреннего номера на мобильный - не хочет!
Пробовал сделать во входящем маршруте(чтобы сразу наружу уходило) - тоже самое!
Из логов вычленил одну непонятную для меня строку:

-- Auto fallthrough, channel 'SIP/507929-00000008' status is 'UNKNOWN'

И собственно сам лог звонка:

-- Goto (from-trunk,507929,1)
-- Executing [507929@from-trunk:1] Set("SIP/507929-00000008", "__DIRECTION=INBOUND") in new stack
-- Executing [507929@from-trunk:2] Gosub("SIP/507929-00000008", "sub-record-check,s,1(in,507929,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/507929-00000008", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("SIP/507929-00000008", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("SIP/507929-00000008", "NOW=1563481019") in new stack
-- Executing [s@sub-record-check:4] Set("SIP/507929-00000008", "__DAY=18") in new stack
-- Executing [s@sub-record-check:5] Set("SIP/507929-00000008", "__MONTH=07") in new stack
-- Executing [s@sub-record-check:6] Set("SIP/507929-00000008", "__YEAR=2019") in new stack
-- Executing [s@sub-record-check:7] Set("SIP/507929-00000008", "__TIMESTR=20190718-231659") in new stack
-- Executing [s@sub-record-check:8] Set("SIP/507929-00000008", "__FROMEXTEN=unknown") in new stack
-- Executing [s@sub-record-check:9] Set("SIP/507929-00000008", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("SIP/507929-00000008", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/507929-00000008", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/507929-00000008", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/507929-00000008", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/507929-00000008", "2?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/507929-00000008", "1?sub-record-check,in,1") in new stack
-- Goto (sub-record-check,in,1)
-- Executing [in@sub-record-check:1] NoOp("SIP/507929-00000008", "Inbound Recording Check to 507929") in new stack
-- Executing [in@sub-record-check:2] Set("SIP/507929-00000008", "FROMEXTEN=unknown") in new stack
-- Executing [in@sub-record-check:3] ExecIf("SIP/507929-00000008", "5?Set(FROMEXTEN=43215)") in new stack
-- Executing [in@sub-record-check:4] Gosub("SIP/507929-00000008", "recordcheck,1(dontcare,in,507929)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/507929-00000008", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/507929-00000008", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/507929-00000008", "") in new stack
-- Executing [in@sub-record-check:5] Return("SIP/507929-00000008", "") in new stack
-- Executing [507929@from-trunk:3] Gosub("SIP/507929-00000008", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/507929-00000008", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/507929-00000008", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/507929-00000008", "") in new stack
-- Executing [507929@from-trunk:4] Set("SIP/507929-00000008", "__FROM_DID=507929") in new stack
-- Executing [507929@from-trunk:5] Set("SIP/507929-00000008", "CDR(did)=507929") in new stack
-- Executing [507929@from-trunk:6] ExecIf("SIP/507929-00000008", "0 ?Set(CALLERID(name)=43215)") in new stack
-- Executing [507929@from-trunk:7] Set("SIP/507929-00000008", "__MOHCLASS=") in new stack
-- Executing [507929@from-trunk:8] Set("SIP/507929-00000008", "__REVERSAL_REJECT=FALSE") in new stack
-- Executing [507929@from-trunk:9] GotoIf("SIP/507929-00000008", "1?post-reverse-charge") in new stack
-- Goto (from-trunk,507929,11)
-- Executing [507929@from-trunk:11] NoOp("SIP/507929-00000008", "") in new stack
-- Executing [507929@from-trunk:12] Set("SIP/507929-00000008", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
-- Executing [507929@from-trunk:13] Set("SIP/507929-00000008", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
-- Executing [507929@from-trunk:14] Set("SIP/507929-00000008", "CALLERID(name-pres)=allowed_not_screened") in new stack
-- Executing [507929@from-trunk:15] Set("SIP/507929-00000008", "CALLERID(num-pres)=allowed_not_screened") in new stack
-- Executing [507929@from-trunk:16] NoOp("SIP/507929-00000008", "CallerID Entry Point") in new stack
-- Executing [507929@from-trunk:17] Set("SIP/507929-00000008", "__CRM_DIRECTION=INBOUND") in new stack
-- Executing [507929@from-trunk:18] Set("SIP/507929-00000008", "__CRM_SOURCE=43215") in new stack
-- Executing [507929@from-trunk:19] Set("SIP/507929-00000008", "__CRM_LINKEDID=1563481019.14") in new stack
-- Executing [507929@from-trunk:20] ExecIf("SIP/507929-00000008", "1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
-- Executing [507929@from-trunk:21] Goto("SIP/507929-00000008", "ext-miscdests,1,1") in new stack
-- Goto (ext-miscdests,1,1)
-- Executing [1@ext-miscdests:1] NoOp("SIP/507929-00000008", "MiscDest: test") in new stack
-- Executing [1@ext-miscdests:2] Goto("SIP/507929-00000008", "from-internal,+74952281478,1") in new stack
-- Goto (from-internal,+74952281478,1)
-- Executing [+74952281478@from-internal:1] Macro("SIP/507929-00000008", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/507929-00000008", "TOUCH_MONITOR=1563481019.14") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/507929-00000008", "AMPUSER=43215") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/507929-00000008", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/507929-00000008", "1?Set(__REALCALLERIDNUM=43215)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/507929-00000008", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/507929-00000008", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/507929-00000008", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/507929-00000008", "1?report") in new stack
-- Goto (macro-user-callerid,s,15)
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/507929-00000008", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("SIP/507929-00000008", "CALLERID(number)=43215") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/507929-00000008", "CALLERID(name)=test") in new stack
-- Executing [s@macro-user-callerid:31] GotoIf("SIP/507929-00000008", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/507929-00000008", "CDR(cnam)=test") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/507929-00000008", "CDR(cnum)=43215") in new stack
-- Executing [s@macro-user-callerid:34] Set("SIP/507929-00000008", "CHANNEL(language)=ru") in new stack
-- Auto fallthrough, channel 'SIP/507929-00000008' status is 'UNKNOWN'
-- Executing [h@from-internal:1] Macro("SIP/507929-00000008", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/507929-00000008", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)

Подскажите пожалуйста, где копать?

Re: FreePBX 14 звонок не переводится наружу

Добавлено: 19 июл 2019, 09:35
ded
У вас нет маршрута для номеров с плюсом - +74952281478@from-internal:

Re: FreePBX 14 звонок не переводится наружу

Добавлено: 19 июл 2019, 16:41
sarge
Огромное спасибо вам Ded, за подсказку.
Действительно, на исходящем маршруте, я ограничил шаблоны набора одним внутренним номером, забыв о том, что этот шаблон действует и на переадресации и на все остальное!
Как только я его убрал(внутренний номер из шаблона) - все прекрасно заработало.

Но тогда возникает другой вопрос, по какому маршруту будет идти FreePBX если я ограничу в шаблоне исходящей маршрутизации, разрешенные номера до 1XX...?
Ведь разрешать набор всем номерам, не есть безопасно :-( Как указать маршрут самому PBX и только ему?

P.S.Прошу прощения за тривиальный(наверное) вопрос.