Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

Elastix+Quasar MEE не проходят входящие звонки

0

Очень нужна помощь Установлен Elastix 2.5.0 c картой Quasar MEE. Исходящие вызовы по обоим транкам проходят, а вот со входящими вызовами беда. Входящий маршрут добавлен. Сейчас сделано кольцо между двумя транками, то есть с одного выхожу на другой по did входящий должен придти, но увы. идёт сообщение что соединение невозможно, пожалуйста проверьте номер. Лог прикрепляю Вызов делаю с номера 102 на 222333 ноль выход на транк на входящем маршруте настроено 222333 приходить на внутренний 101.

== Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [0222333@from-internal:1] Macro("SIP/102-0000000f", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/102-0000000f", "TOUCH_MONITOR=1441647595.41") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/102-0000000f", "AMPUSER=102") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/102-0000000f", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/102-0000000f", "1?Set(REALCALLERIDNUM=102)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/102-0000000f", "AMPUSER=102") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/102-0000000f", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/102-0000000f", "AMPUSERCIDNAME=102") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/102-0000000f", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/102-0000000f", "AMPUSERCID=102") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/102-0000000f", "__DIAL_OPTIONS=tr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/102-0000000f", "CALLERID(all)="102" <102>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/102-0000000f", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/102-0000000f", "1?Set(GROUP(concurrency_limit)=102)") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("SIP/102-0000000f", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("SIP/102-0000000f", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,28)
    -- Executing [s@macro-user-callerid:28] Set("SIP/102-0000000f", "CALLERID(number)=102") in new stack
    -- Executing [s@macro-user-callerid:29] Set("SIP/102-0000000f", "CALLERID(name)=102") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/102-0000000f", "CDR(cnum)=102") in new stack
    -- Executing [s@macro-user-callerid:31] Set("SIP/102-0000000f", "CDR(cnam)=102") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/102-0000000f", "CHANNEL(language)=ru") in new stack
    -- Executing [0222333@from-internal:2] Set("SIP/102-0000000f", "MOHCLASS=default") in new stack
    -- Executing [0222333@from-internal:3] Set("SIP/102-0000000f", "_NODEST=") in new stack
    -- Executing [0222333@from-internal:4] Gosub("SIP/102-0000000f", "sub-record-check,s,1(out,0222333,)") in new stack
    -- Executing [s@sub-record-check:1] Set("SIP/102-0000000f", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:2] GotoIf("SIP/102-0000000f", "1?check") in new stack
    -- Goto (sub-record-check,s,7)
    -- Executing [s@sub-record-check:7] Set("SIP/102-0000000f", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:8] GotoIf("SIP/102-0000000f", "1?next") in new stack
    -- Goto (sub-record-check,s,11)
    -- Executing [s@sub-record-check:11] ExecIf("SIP/102-0000000f", "0?Return()") in new stack
    -- Executing [s@sub-record-check:12] ExecIf("SIP/102-0000000f", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:13] GotoIf("SIP/102-0000000f", "0?out,1") in new stack
    -- Executing [s@sub-record-check:14] Set("SIP/102-0000000f", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:15] Set("SIP/102-0000000f", "NOW=1441647595") in new stack
    -- Executing [s@sub-record-check:16] Set("SIP/102-0000000f", "__DAY=07") in new stack
    -- Executing [s@sub-record-check:17] Set("SIP/102-0000000f", "__MONTH=09") in new stack
    -- Executing [s@sub-record-check:18] Set("SIP/102-0000000f", "__YEAR=2015") in new stack
    -- Executing [s@sub-record-check:19] Set("SIP/102-0000000f", "__TIMESTR=20150907-213955") in new stack
    -- Executing [s@sub-record-check:20] Set("SIP/102-0000000f", "__FROMEXTEN=102") in new stack
    -- Executing [s@sub-record-check:21] Set("SIP/102-0000000f", "__CALLFILENAME=out-0222333-102-20150907-213955-1441647595.41") in new stack
    -- Executing [s@sub-record-check:22] Goto("SIP/102-0000000f", "out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("SIP/102-0000000f", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("SIP/102-0000000f", "0?record,1(exten,0222333,102)") in new stack
    -- Executing [out@sub-record-check:3] Return("SIP/102-0000000f", "") in new stack
    -- Executing [0222333@from-internal:5] Macro("SIP/102-0000000f", "dialout-trunk,1,222333,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/102-0000000f", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/102-0000000f", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/102-0000000f", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/102-0000000f", "DIAL_NUMBER=222333") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/102-0000000f", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/102-0000000f", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/102-0000000f", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/102-0000000f", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/102-0000000f", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/102-0000000f", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/102-0000000f", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/102-0000000f", "0?Set(REALCALLERIDNUM=102)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/102-0000000f", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/102-0000000f", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/102-0000000f", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/102-0000000f", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/102-0000000f", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,14)
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/102-0000000f", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/102-0000000f", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/102-0000000f", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/102-0000000f", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:18] Set("SIP/102-0000000f", "CDR(outbound_cnum)=102") in new stack
    -- Executing [s@macro-outbound-callerid:19] Set("SIP/102-0000000f", "CDR(outbound_cnam)=102") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/102-0000000f", "0?sub-flp-1,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/102-0000000f", "OUTNUM=222333") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/102-0000000f", "custom=DAHDI/g0") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/102-0000000f", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/102-0000000f", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/102-0000000f", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/102-0000000f", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/102-0000000f", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/102-0000000f", "1?Set(CONNECTEDLINE(num,i)=222333)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/102-0000000f", "1?Set(CONNECTEDLINE(name,i)=CID:102)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/102-0000000f", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("SIP/102-0000000f", "DAHDI/g0/222333,300,") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called DAHDI/g0/222333
    -- Accepting call from '102' to '222333' on channel 0/1, span 2
    -- Executing [222333@from-internal:1] ResetCDR("DAHDI/i2/102-e", "") in new stack
    -- Executing [222333@from-internal:2] NoCDR("DAHDI/i2/102-e", "") in new stack
    -- Executing [222333@from-internal:3] Progress("DAHDI/i2/102-e", "") in new stack
    -- Executing [222333@from-internal:4] Wait("DAHDI/i2/102-e", "1") in new stack
    -- DAHDI/i1/222333-e is proceeding passing it to SIP/102-0000000f
    -- DAHDI/i1/222333-e is making progress passing it to SIP/102-0000000f
    -- Executing [222333@from-internal:5] Progress("DAHDI/i2/102-e", "") in new stack
    -- Executing [222333@from-internal:6] Playback("DAHDI/i2/102-e", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
    -- <DAHDI/i2/102-e> Playing 'silence/1.slin' (language 'ru')
    -- <DAHDI/i2/102-e> Playing 'cannot-complete-as-dialed.slin' (language 'ru')
    -- <DAHDI/i2/102-e> Playing 'check-number-dial-again.slin' (language 'ru')
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Executing [222333@from-internal:7] Wait("DAHDI/i2/102-e", "1") in new stack
    -- Hungup 'DAHDI/i1/222333-e'
  == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'SIP/102-0000000f' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 0222333, 5) exited non-zero on 'SIP/102-0000000f'
    -- Executing [h@from-internal:1] Hangup("SIP/102-0000000f", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/102-0000000f'
    -- Span 2: Channel 0/1 got hangup request, cause 16
  == Spawn extension (from-internal, 222333, 7) exited non-zero on 'DAHDI/i2/102-e'
    -- Executing [h@from-internal:1] Hangup("DAHDI/i2/102-e", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'DAHDI/i2/102-e'
    -- Hungup 'DAHDI/i2/102-e'

Я не изменял ничего после установки, добавил только исходящий и входящий маршруты через web интерфейс. В extensions.conf содержится только такой контекст

==; INTERNAL DIALPLAN, NOT OPEN TO THE PUBLIC WORLD                              *
==;*******************************************************************************
==;

;-------------------------------------------------------------------------------
; from-internal:
;
; Internal dialplan that most internal phones have access to
;
[from-internal]
include => from-internal-noxfer
include => from-internal-xfer
include => bad-number ; auto-generated
;-------------------------------------------------------------------------------

;-------------------------------------------------------------------------------
; from-internal-noxfer:
;
; Place to put internal dialplan that should not be accessible during a blind
; transfer, this context will not be visible during such.
;
[from-internal-noxfer]
include => from-internal-noxfer-custom
include => from-internal-noxfer-additional ; auto-generated
;-------------------------------------------------------------------------------

;-------------------------------------------------------------------------------
; from-internal-xfer:
;
; Place to put most internal dialplan, will be visible during normal calls and
; blind transfers.
;
[from-internal-xfer]
include => from-internal-custom
include => from-internal-additional ; auto-generated
exten => s,1,Macro(hangupcall)
exten => h,1,Macro(hangupcall)
;-------------------------------------------------------------------------------

а при добавление правила изменяется файл extensions_additionals
[ext-did-0002]
include => ext-did-0002-custom
exten => fax,1,Goto(${CUT(FAX_DEST,^,1)},${CUT(FAX_DEST,^,2)},${CUT(FAX_DEST,^,3)})

exten => 222333,1,Set(__FROM_DID=${EXTEN})
exten => 222333,n,Gosub(app-blacklist-check,s,1())
exten => 222333,n,Set(CDR(did)=${FROM_DID})
exten => 222333,n,ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)}))
exten => 222333,n,Set(CHANNEL(musicclass)=default)
exten => 222333,n,Set(__MOHCLASS=default)
exten => 222333,n,Set(__CALLINGPRES_SV=${CALLERPRES()})
exten => 222333,n,Set(CALLERPRES()=allowed_not_screened)
exten => 222333,n(dest-ext),Goto(ivr-4,s,1)

Как правильно поправить мне чтоб у меня заработало?

Возникла вот следующия проблема. Звонки с города на еластикс и через него на самсунг ходят нормально, а вот с самсунга на эластикс нет, независимо что набираем в pri с самсунга os7070 выдаёт вот такой вот лог на астериске

-- Accepting call from '222333' to 's' on channel 0/31, span 1
    -- Executing [s@from-internal:1] Macro("DAHDI/i1/222333-2", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/i1/222333-2", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("DAHDI/i1/222333-2", "End of MIXMON check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("DAHDI/i1/222333-2", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s@macro-hangupcall:28] NoOp("DAHDI/i1/222333-2", "End of MEETME check") in new stack
    -- Executing [s@macro-hangupcall:29] GotoIf("DAHDI/i1/222333-2", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] NoOp("DAHDI/i1/222333-2", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:35] GotoIf("DAHDI/i1/222333-2", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s@macro-hangupcall:41] NoOp("DAHDI/i1/222333-2", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:42] GotoIf("DAHDI/i1/222333-2", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s@macro-hangupcall:45] GotoIf("DAHDI/i1/222333-2", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s@macro-hangupcall:48] GotoIf("DAHDI/i1/222333-2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s@macro-hangupcall:50] AGI("DAHDI/i1/222333-2", "hangup.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <DAHDI/i1/222333-2>AGI Script hangup.agi completed, returning 0
    -- Executing [s@macro-hangupcall:51] Hangup("DAHDI/i1/222333-2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'DAHDI/i1/222333-2' in macro 'hangupcall'
  == Spawn extension (from-internal, s, 1) exited non-zero on 'DAHDI/i1/222333-2'
    -- Executing [h@from-internal:1] Hangup("DAHDI/i1/222333-2", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'DAHDI/i1/222333-2'
    -- Hungup 'DAHDI/i1/222333-2'


это звонок с самсунга на эластикс на эластиксе на этом транке поставлен контекст from-internal.

Хотя если делаю петлю внутри эластикса на потоках  проходит всё нормально и выдаёт такой вот лог. Как это исправить.

   -- Executing [9101@from-internal:1] Macro("SIP/139-00000007", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/139-00000007", "TOUCH_MONITOR=1441910790.102") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/139-00000007", "AMPUSER=139") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/139-00000007", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/139-00000007", "1?Set(REALCALLERIDNUM=139)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/139-00000007", "AMPUSER=139") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/139-00000007", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/139-00000007", "AMPUSERCIDNAME=139") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/139-00000007", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/139-00000007", "AMPUSERCID=139") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/139-00000007", "__DIAL_OPTIONS=tr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/139-00000007", "CALLERID(all)="139" <139>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/139-00000007", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/139-00000007", "1?Set(GROUP(concurrency_limit)=139)") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("SIP/139-00000007", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("SIP/139-00000007", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,28)
    -- Executing [s@macro-user-callerid:28] Set("SIP/139-00000007", "CALLERID(number)=139") in new stack
    -- Executing [s@macro-user-callerid:29] Set("SIP/139-00000007", "CALLERID(name)=139") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/139-00000007", "CDR(cnum)=139") in new stack
    -- Executing [s@macro-user-callerid:31] Set("SIP/139-00000007", "CDR(cnam)=139") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/139-00000007", "CHANNEL(language)=ru") in new stack
    -- Executing [9101@from-internal:2] Set("SIP/139-00000007", "MOHCLASS=default") in new stack
    -- Executing [9101@from-internal:3] Set("SIP/139-00000007", "_NODEST=") in new stack
    -- Executing [9101@from-internal:4] Gosub("SIP/139-00000007", "sub-record-check,s,1(out,9101,)") in new stack
    -- Executing [s@sub-record-check:1] Set("SIP/139-00000007", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:2] GotoIf("SIP/139-00000007", "1?check") in new stack
    -- Goto (sub-record-check,s,7)
    -- Executing [s@sub-record-check:7] Set("SIP/139-00000007", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:8] GotoIf("SIP/139-00000007", "1?next") in new stack
    -- Goto (sub-record-check,s,11)
    -- Executing [s@sub-record-check:11] ExecIf("SIP/139-00000007", "0?Return()") in new stack
    -- Executing [s@sub-record-check:12] ExecIf("SIP/139-00000007", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:13] GotoIf("SIP/139-00000007", "0?out,1") in new stack
    -- Executing [s@sub-record-check:14] Set("SIP/139-00000007", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:15] Set("SIP/139-00000007", "NOW=1441910790") in new stack
    -- Executing [s@sub-record-check:16] Set("SIP/139-00000007", "__DAY=10") in new stack
    -- Executing [s@sub-record-check:17] Set("SIP/139-00000007", "__MONTH=09") in new stack
    -- Executing [s@sub-record-check:18] Set("SIP/139-00000007", "__YEAR=2015") in new stack
    -- Executing [s@sub-record-check:19] Set("SIP/139-00000007", "__TIMESTR=20150910-214630") in new stack
    -- Executing [s@sub-record-check:20] Set("SIP/139-00000007", "__FROMEXTEN=139") in new stack
    -- Executing [s@sub-record-check:21] Set("SIP/139-00000007", "__CALLFILENAME=out-9101-139-20150910-214630-1441910790.102") in new stack
    -- Executing [s@sub-record-check:22] Goto("SIP/139-00000007", "out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("SIP/139-00000007", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("SIP/139-00000007", "0?record,1(exten,9101,139)") in new stack
    -- Executing [out@sub-record-check:3] Return("SIP/139-00000007", "") in new stack
    -- Executing [9101@from-internal:5] Macro("SIP/139-00000007", "dialout-trunk,1,101,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/139-00000007", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/139-00000007", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/139-00000007", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/139-00000007", "DIAL_NUMBER=101") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/139-00000007", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/139-00000007", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/139-00000007", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/139-00000007", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/139-00000007", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/139-00000007", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/139-00000007", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/139-00000007", "0?Set(REALCALLERIDNUM=139)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/139-00000007", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/139-00000007", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/139-00000007", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/139-00000007", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/139-00000007", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,14)
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/139-00000007", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/139-00000007", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/139-00000007", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/139-00000007", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:18] Set("SIP/139-00000007", "CDR(outbound_cnum)=139") in new stack
    -- Executing [s@macro-outbound-callerid:19] Set("SIP/139-00000007", "CDR(outbound_cnam)=139") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/139-00000007", "0?sub-flp-1,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/139-00000007", "OUTNUM=101") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/139-00000007", "custom=DAHDI/g0") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/139-00000007", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/139-00000007", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/139-00000007", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/139-00000007", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/139-00000007", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/139-00000007", "1?Set(CONNECTEDLINE(num,i)=101)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/139-00000007", "1?Set(CONNECTEDLINE(name,i)=CID:139)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/139-00000007", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("SIP/139-00000007", "DAHDI/g0/101,300,") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called DAHDI/g0/101
    -- Accepting call from '139' to '101' on channel 0/1, span 2
    -- Executing [101@from-trunk:1] GotoIf("DAHDI/i2/139-c", "0?ext-local,101,1") in new stack
    -- Executing [101@from-trunk:2] Macro("DAHDI/i2/139-c", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("DAHDI/i2/139-c", "TOUCH_MONITOR=1441910790.104") in new stack
    -- Executing [s@macro-user-callerid:2] Set("DAHDI/i2/139-c", "AMPUSER=139") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("DAHDI/i2/139-c", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("DAHDI/i2/139-c", "1?Set(REALCALLERIDNUM=139)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("DAHDI/i2/139-c", "AMPUSER=139") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/i2/139-c", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("DAHDI/i2/139-c", "AMPUSERCIDNAME=139") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("DAHDI/i2/139-c", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("DAHDI/i2/139-c", "AMPUSERCID=139") in new stack
    -- Executing [s@macro-user-callerid:10] Set("DAHDI/i2/139-c", "__DIAL_OPTIONS=tr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("DAHDI/i2/139-c", "CALLERID(all)="139" <139>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("DAHDI/i2/139-c", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("DAHDI/i2/139-c", "0?Set(GROUP(concurrency_limit)=139)") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("DAHDI/i2/139-c", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("DAHDI/i2/139-c", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:16] Set("DAHDI/i2/139-c", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:17] GotoIf("DAHDI/i2/139-c", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,28)
    -- Executing [s@macro-user-callerid:28] Set("DAHDI/i2/139-c", "CALLERID(number)=139") in new stack
    -- Executing [s@macro-user-callerid:29] Set("DAHDI/i2/139-c", "CALLERID(name)=139") in new stack
    -- Executing [s@macro-user-callerid:30] Set("DAHDI/i2/139-c", "CDR(cnum)=139") in new stack
    -- Executing [s@macro-user-callerid:31] Set("DAHDI/i2/139-c", "CDR(cnam)=139") in new stack
    -- Executing [s@macro-user-callerid:32] Set("DAHDI/i2/139-c", "CHANNEL(language)=en") in new stack
    -- Executing [101@from-trunk:3] Set("DAHDI/i2/139-c", "DIAL_OPTIONS=trI") in new stack
    -- Executing [101@from-trunk:4] Set("DAHDI/i2/139-c", "CONNECTEDLINE(num)=101") in new stack
    -- Executing [101@from-trunk:5] Gosub("DAHDI/i2/139-c", "sub-presencestate-display,s,1(101)") in new stack
[2015-09-10 21:46:30] WARNING[4160][C-00000016]: func_presencestate.c:132 presence_read: PRESENCE_STATE unknown
    -- Executing [s@sub-presencestate-display:1] Goto("DAHDI/i2/139-c", "state-,1") in new stack
    -- Goto (sub-presencestate-display,state-,1)
    -- Executing [state-@sub-presencestate-display:1] Set("DAHDI/i2/139-c", "PRESENCESTATE_DISPLAY=") in new stack
    -- Executing [state-@sub-presencestate-display:2] Return("DAHDI/i2/139-c", "") in new stack
    -- Executing [101@from-trunk:6] Set("DAHDI/i2/139-c", "CONNECTEDLINE(name,i)=101") in new stack
    -- Executing [101@from-trunk:7] Set("DAHDI/i2/139-c", "FM_DIALSTATUS=NOT_INUSE") in new stack
    -- Executing [101@from-trunk:8] Set("DAHDI/i2/139-c", "__EXTTOCALL=101") in new stack
    -- Executing [101@from-trunk:9] Set("DAHDI/i2/139-c", "__PICKUPMARK=101") in new stack
    -- Executing [101@from-trunk:10] Macro("DAHDI/i2/139-c", "blkvm-setifempty,") in new stack
    -- Executing [s@macro-blkvm-setifempty:1] GotoIf("DAHDI/i2/139-c", "1?init") in new stack
    -- Goto (macro-blkvm-setifempty,s,4)
    -- Executing [s@macro-blkvm-setifempty:4] Set("DAHDI/i2/139-c", "__BLKVM_CHANNEL=DAHDI/i2/139-c") in new stack
    -- Executing [s@macro-blkvm-setifempty:5] Set("DAHDI/i2/139-c", "SHARED(BLKVM,DAHDI/i2/139-c)=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:6] Set("DAHDI/i2/139-c", "GOSUB_RETVAL=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:7] MacroExit("DAHDI/i2/139-c", "") in new stack
    -- Executing [101@from-trunk:11] GotoIf("DAHDI/i2/139-c", "1?skipov") in new stack
    -- Goto (from-trunk,101,14)
    -- Executing [101@from-trunk:14] Set("DAHDI/i2/139-c", "RRNODEST=") in new stack
    -- Executing [101@from-trunk:15] Set("DAHDI/i2/139-c", "__NODEST=101") in new stack
    -- Executing [101@from-trunk:16] GosubIf("DAHDI/i2/139-c", "0?sub-fmsetcid,s,1()") in new stack
    -- Executing [101@from-trunk:17] Set("DAHDI/i2/139-c", "RecordMethod=Group") in new stack
    -- Executing [101@from-trunk:18] Gosub("DAHDI/i2/139-c", "sub-record-check,s,1(exten,101,)") in new stack
    -- Executing [s@sub-record-check:1] Set("DAHDI/i2/139-c", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:2] GotoIf("DAHDI/i2/139-c", "1?check") in new stack
    -- Goto (sub-record-check,s,7)
    -- Executing [s@sub-record-check:7] Set("DAHDI/i2/139-c", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:8] GotoIf("DAHDI/i2/139-c", "1?next") in new stack
    -- Goto (sub-record-check,s,11)
    -- Executing [s@sub-record-check:11] ExecIf("DAHDI/i2/139-c", "0?Return()") in new stack
    -- Executing [s@sub-record-check:12] ExecIf("DAHDI/i2/139-c", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:13] GotoIf("DAHDI/i2/139-c", "0?exten,1") in new stack
    -- Executing [s@sub-record-check:14] Set("DAHDI/i2/139-c", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:15] Set("DAHDI/i2/139-c", "NOW=1441910790") in new stack
    -- Executing [s@sub-record-check:16] Set("DAHDI/i2/139-c", "__DAY=10") in new stack
    -- Executing [s@sub-record-check:17] Set("DAHDI/i2/139-c", "__MONTH=09") in new stack
    -- Executing [s@sub-record-check:18] Set("DAHDI/i2/139-c", "__YEAR=2015") in new stack
    -- Executing [s@sub-record-check:19] Set("DAHDI/i2/139-c", "__TIMESTR=20150910-214630") in new stack
    -- Executing [s@sub-record-check:20] Set("DAHDI/i2/139-c", "__FROMEXTEN=139") in new stack
    -- Executing [s@sub-record-check:21] Set("DAHDI/i2/139-c", "__CALLFILENAME=exten-101-139-20150910-214630-1441910790.104") in new stack
    -- Executing [s@sub-record-check:22] Goto("DAHDI/i2/139-c", "exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [exten@sub-record-check:1] GotoIf("DAHDI/i2/139-c", "0?callee") in new stack
    -- Executing [exten@sub-record-check:2] Set("DAHDI/i2/139-c", "__REC_POLICY_MODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:3] GotoIf("DAHDI/i2/139-c", "1?caller") in new stack
    -- Goto (sub-record-check,exten,10)
    -- Executing [exten@sub-record-check:10] Set("DAHDI/i2/139-c", "__REC_POLICY_MODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:11] GosubIf("DAHDI/i2/139-c", "0?record,1(exten,101,139)") in new stack
    -- Executing [exten@sub-record-check:12] Return("DAHDI/i2/139-c", "") in new stack
    -- Executing [101@from-trunk:19] Set("DAHDI/i2/139-c", "RingGroupMethod=ringallv2") in new stack
    -- Executing [101@from-trunk:20] Set("DAHDI/i2/139-c", "_FMGRP=101") in new stack
    -- Executing [101@from-trunk:21] GotoIf("DAHDI/i2/139-c", "0?doconfirm") in new stack
    -- Executing [101@from-trunk:22] Macro("DAHDI/i2/139-c", "dial,60,trI,101") in new stack
    -- Executing [s@macro-dial:1] GotoIf("DAHDI/i2/139-c", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("DAHDI/i2/139-c", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
    -- DAHDI/i1/101-13 is proceeding passing it to SIP/139-00000007
 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is '139' number is '139'
 dialparties.agi: Methodology of ring is  'ringallv2'
    -- dialparties.agi: Added extension 101 to extension map
    -- dialparties.agi: Extension 101 cf is disabled
    -- dialparties.agi: Extension 101 do not disturb is disabled
 dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
 dialparties.agi: Extension 101 has ExtensionState: 0
    -- dialparties.agi: Checking CW and CFB status for extension 101
    -- dialparties.agi: dbset CALLTRACE/101 to 139
    -- dialparties.agi: Filtered ARG3: 101
    -- <DAHDI/i2/139-c>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("DAHDI/i2/139-c", "SIP/101,62,trIM(auto-blkvm)") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/101
    -- Connected line update to DAHDI/i2/139-c prevented.
    -- DAHDI/i1/101-13 is ringing
    -- DAHDI/i1/101-13 is making progress passing it to SIP/139-00000007
    -- SIP/101-00000008 is ringing
    -- SIP/101-00000008 is ringing
    -- Connected line update to DAHDI/i2/139-c prevented.
    -- SIP/101-00000008 answered DAHDI/i2/139-c
    -- Executing [s@macro-auto-blkvm:1] Set("SIP/101-00000008", "__MACRO_RESULT=") in new stack
    -- Executing [s@macro-auto-blkvm:2] Set("SIP/101-00000008", "CFIGNORE=") in new stack
    -- Executing [s@macro-auto-blkvm:3] Set("SIP/101-00000008", "MASTER_CHANNEL(CFIGNORE)=") in new stack
    -- Executing [s@macro-auto-blkvm:4] Set("SIP/101-00000008", "FORWARD_CONTEXT=from-internal") in new stack
    -- Executing [s@macro-auto-blkvm:5] Set("SIP/101-00000008", "MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal") in new stack
    -- Executing [s@macro-auto-blkvm:6] Macro("SIP/101-00000008", "blkvm-clr,") in new stack
    -- Executing [s@macro-blkvm-clr:1] Set("SIP/101-00000008", "SHARED(BLKVM,DAHDI/i2/139-c)=") in new stack
    -- Executing [s@macro-blkvm-clr:2] Set("SIP/101-00000008", "GOSUB_RETVAL=") in new stack
    -- Executing [s@macro-blkvm-clr:3] MacroExit("SIP/101-00000008", "") in new stack
    -- Executing [s@macro-auto-blkvm:7] ExecIf("SIP/101-00000008", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=101)") in new stack
    -- Executing [s@macro-auto-blkvm:8] ExecIf("SIP/101-00000008", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=101)") in new stack
    -- DAHDI/i1/101-13 answered SIP/139-00000007
    -- Started music on hold, class 'default', on DAHDI/i1/101-13
    -- Executing [h@macro-dial:1] Macro("DAHDI/i2/139-c", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/i2/139-c", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("DAHDI/i2/139-c", "End of MIXMON check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("DAHDI/i2/139-c", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s@macro-hangupcall:28] NoOp("DAHDI/i2/139-c", "End of MEETME check") in new stack
    -- Executing [s@macro-hangupcall:29] GotoIf("DAHDI/i2/139-c", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] NoOp("DAHDI/i2/139-c", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:35] GotoIf("DAHDI/i2/139-c", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s@macro-hangupcall:41] NoOp("DAHDI/i2/139-c", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:42] GotoIf("DAHDI/i2/139-c", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s@macro-hangupcall:45] GotoIf("DAHDI/i2/139-c", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s@macro-hangupcall:48] GotoIf("DAHDI/i2/139-c", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s@macro-hangupcall:50] AGI("DAHDI/i2/139-c", "hangup.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <DAHDI/i2/139-c>AGI Script hangup.agi completed, returning 0
    -- Executing [s@macro-hangupcall:51] Hangup("DAHDI/i2/139-c", "") in new stack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'DAHDI/i2/139-c' in macro 'hangupcall'
  == Spawn extension (macro-dial, h, 1) exited non-zero on 'DAHDI/i2/139-c'
  == Spawn extension (macro-dial, s, 7) exited non-zero on 'DAHDI/i2/139-c' in macro 'dial'
  == Spawn extension (from-trunk, 101, 22) exited non-zero on 'DAHDI/i2/139-c'
    -- Hungup 'DAHDI/i2/139-c'
    -- Span 1: Channel 0/1 got hangup request, cause 16
    -- Stopped music on hold on DAHDI/i1/101-13
    -- Executing [h@macro-dialout-trunk:1] Macro("SIP/139-00000007", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/139-00000007", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("SIP/139-00000007", "End of MIXMON check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/139-00000007", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s@macro-hangupcall:28] NoOp("SIP/139-00000007", "End of MEETME check") in new stack
    -- Executing [s@macro-hangupcall:29] GotoIf("SIP/139-00000007", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] NoOp("SIP/139-00000007", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:35] GotoIf("SIP/139-00000007", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s@macro-hangupcall:41] NoOp("SIP/139-00000007", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:42] GotoIf("SIP/139-00000007", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s@macro-hangupcall:45] GotoIf("SIP/139-00000007", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s@macro-hangupcall:48] GotoIf("SIP/139-00000007", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s@macro-hangupcall:50] AGI("SIP/139-00000007", "hangup.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <SIP/139-00000007>AGI Script hangup.agi completed, returning 0
    -- Executing [s@macro-hangupcall:51] Hangup("SIP/139-00000007", "") in new stack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/139-00000007' in macro 'hangupcall'
  == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/139-00000007'
    -- Hungup 'DAHDI/i1/101-13'
  == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'SIP/139-00000007' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 9101, 5) exited non-zero on 'SIP/139-00000007'
удалить закрыть спам изменить тег редактировать

спросил 2015-09-07 22:02:34 +0400

cooller51190 Gravatar cooller51190
1 6 4

обновил 2015-09-11 00:48:26 +0400

zzuz Gravatar zzuz flag of Russian Federation
6744 2 6 69
http://line24.ru/

Comments

Спасибо. нашел. сделал from-trunk и всё заработало. Хотелось бы спросить ещё такой вопрос, может сможете подсказать как сделать проброс с внутренней атс которая подключена ко 2 порту с контекстом from-internal на внешний транк, Например при звонке на любой городской номер чтоб звонок уходил с одного транка на другой?

cooller51190 ( 2015-09-08 13:36:37 +0400 )редактировать

Вам всего лишь нужно происать исходящий маршрут на обоих атс и все заработает.

vanomel ( 2015-09-08 14:26:50 +0400 )редактировать

Ну смотрите на самсунге у меня настроены исходящие нажимают 9 и полетели на транк, на еластиксе на городском транке тоже настроен исходящий нажимают 0 и полетели. То есть этого достаточно чтоб с самсунга выходили на городской транк эластикса? и набирать нужно будет просто 9 0 затем городской номер так? Поправьте меня если я что-то путаю? Или направьте как это сделать?

cooller51190 ( 2015-09-08 15:54:42 +0400 )редактировать

На самсунге нажимают 9 и как дальше соединительная линия выбирается? Не зная этого невозможно сказать, будет ли набираться 9 - 0 - номер через эластикс, это все зависит от ваших конфигураций. Включая входящие с самсунга в контекст from-internal вы можете набирать одни и те же цифры что с ваших телефонов АТС Самсунг при условии выхода на соединительную линию, что с телефонов, подключенных к эластиксу.

vanomel ( 2015-09-08 17:21:11 +0400 )редактировать

9 это выход на поток PRI на самсунге. 0 это выход на PRI городскую линию на эластиксе

cooller51190 ( 2015-09-08 19:13:13 +0400 )редактировать

Если реально так, то может сработать.

vanomel ( 2015-09-09 20:19:42 +0400 )редактировать

Возникла проблема с прохождением звонков с самсунга на эластикс. Лог и описание выложил в вопросе. Прошу помощи.

cooller51190 ( 2015-09-10 22:52:44 +0400 )редактировать

Еще одна такая неформатированная портянка и вопрос будет удален.

zzuz ( 2015-09-11 00:47:32 +0400 )редактировать

У вас ошибка в настройке самсунга.

vanomel ( 2015-09-11 07:12:09 +0400 )редактировать

а какая ошибка с чем связана может быть?

cooller51190 ( 2015-09-11 12:36:41 +0400 )редактировать

Если вы говорите, что звонки на внешние номера проходят, а на внутренние астериска нет, то скорее всего это связано с настройкой плана нумерации или танков на стороне порнослоника.

vanomel ( 2015-09-11 13:04:43 +0400 )редактировать

С самсунга на эластикс никуда звонки не проходят не на внутренние, не на внешние, а на самсунг откудо угодно хоть с города, хоть с внутренних эластекса.

cooller51190 ( 2015-09-11 14:36:03 +0400 )редактировать

Вам нужно попросить администраторов этих АТС выяснить в чем проблема.

vanomel ( 2015-09-12 15:36:55 +0400 )редактировать

1 Ответ

0

Вам нужно ознакомиться с инструкцией по настройке оборудования. http://parabel.ru/products/quasar-mini/ там есть информация касательно контекста, в который попадают звонки, которые приходят к вам по цифровому потоку от правайдера (или куда у вас зацеплен Е1). В зависимости от того, в какой контекст отправляется поступающий вызов, система будет обрабатывать вызовы именно по указанным правилам. Чтобы правильно работала ваша надстройка над asterisk вам, скорее всего, нужно отправлять вызовы в контекст from-trunk для подключения от провайдера и, пренебрегая правилами безопасности, от вашей другой АТС в from-internal. Сейчас вам asterisk при поступлении входящего вызова говорит о том, что нет такого номера для набора в указанном контексте, так как правила распределения входящих вызовов, которые вы создаете в интерфейсе эластикса не влияют на исходящую маршрутизацию. Вообще мой вам совет такой. Если вы действиетльно хотите разобраться, то вы можете на этом сайте найти подбор необходимой к прочтению литературы в том числе на русском языке. Если вы не хотите разбираться, то вам лучше заплатить небольшие средства для разовой настройки вашей АТС специалистам компаний по сетевой интеграции, так как не понимая в настройке оборудования вы можете совершить роковую ошибку, которая может стоить вашему бюджету огромные средства. Так, подключая транк от провайдера в контекст для совершения звонков с внутренних номеров вы рискуете обеспечить бесплатной связью всех, кто позвонит на ваш номер. Ещё проще может быть взломана АТС подключенная к сети Интернет без соблюдения правил сетевой безопасности - firewall, fail2ban, смены стандарных паролей и портов подключений. Получив доступ к вашей системе злоумышленники не будут показывать своего присуствия, но когда вы будете спать они смогут совершить множество вызовов по очень дорогим направлениям для получения выгоды. Информация о том, как на этом заработать есть в Сети. Так что не понимая и не желая разбираться не стоит лезть в настройку АТС, тем более такой сложной как asterisk.

ссылка удалить убрать флаг спам (1) редактировать

ответил 2015-09-07 22:35:27 +0400

vanomel Gravatar vanomel
180 3 4

обновил 2015-09-08 11:52:41 +0400

Ваш ответ

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[скрыть предварительный просмотр]

Закладки и информация

Добавить закладку

подписаться на rss ленту новостей

Статистика

Задан: 2015-09-07 22:02:34 +0400

Просмотрен: 214 раз

Обновлен: Sep 11 '15

Похожие вопросы:

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.