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

Elastix. D-Link 6004s.

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

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

Ответить
IMCOON
Сообщения: 1
Зарегистрирован: 07 июл 2015, 03:30

Elastix. D-Link 6004s.

Сообщение IMCOON »

Всем хорошего настроения! К вам привела следующая проблема: (Говорю сразу: могу тупить, с телефонией не сталкивался, прошу прощения заранее). Телефония: Elastix + D-link 6004s, перестали работать все исходящие вызовы через шлюзы, куда копать понятия не имею, может вы подскажите.

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

Connected to Asterisk 1.8.20.0 currently running on printingworld (pid = 2937)
Verbosity was 3 and is now 4
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [389508394***@from-internal:1] Macro("SIP/101-00000006", "user-                                                                             callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/101-00000006", "AMPUSER=101"                                                                             ) in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/101-00000006", "0?report"                                                                             ) in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/101-00000006", "1?Set(REA                                                                             LCALLERIDNUM=101)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/101-00000006", "AMPUSER=101"                                                                             ) in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/101-00000006", "AMPUSERCIDNA                                                                             ME=101") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/101-00000006", "0?report"                                                                             ) in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/101-00000006", "AMPUSERCID=1                                                                             01") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/101-00000006", "CALLERID(all                                                                             )="101" <101>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/101-00000006", "0?Set(CHA                                                                             NNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/101-00000006", "1?contin                                                                             ue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("SIP/101-00000006", "CALLERID(nu                                                                             mber)=101") in new stack
    -- Executing [s@macro-user-callerid:20] Set("SIP/101-00000006", "CALLERID(na                                                                             me)=101") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("SIP/101-00000006", "Using Call                                                                             erID "101" <101>") in new stack
    -- Executing [389508394***@from-internal:2] NoOp("SIP/101-00000006", "Callin                                                                             g Out Route: izh") in new stack
    -- Executing [389508394***@from-internal:3] Set("SIP/101-00000006", "MOHCLAS                                                                             S=default") in new stack
    -- Executing [389508394***@from-internal:4] Set("SIP/101-00000006", "_NODEST                                                                             =") in new stack
    -- Executing [389508394***@from-internal:5] Macro("SIP/101-00000006", "recor                                                                             d-enable,101,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/101-00000006", "1?check")                                                                              in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/101-00000006", "0?MacroEx                                                                             it()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/101-00000006", "0?Group:O                                                                             UT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/101-00000006", "0?IN") i                                                                             n new stack
    -- Executing [s@macro-record-enable:16] ExecIf("SIP/101-00000006", "0?MacroE                                                                             xit()") in new stack
    -- Executing [s@macro-record-enable:17] NoOp("SIP/101-00000006", "Recording                                                                              enable for 101") in new stack
    -- Executing [s@macro-record-enable:18] Set("SIP/101-00000006", "CALLFILENAM                                                                             E=OUT101-20150707-045141-1436230301.6") in new stack
    -- Executing [s@macro-record-enable:19] Goto("SIP/101-00000006", "record") i                                                                             n new stack
    -- Goto (macro-record-enable,s,23)
    -- Executing [s@macro-record-enable:23] MixMonitor("SIP/101-00000006", "OUT1                                                                             01-20150707-045141-1436230301.6.wav,,") in new stack
    -- Executing [s@macro-record-enable:24] Set("SIP/101-00000006", "CDR(userfie                                                                             ld)=audio:OUT101-20150707-045141-1436230301.6.wav") in new stack
    -- Executing [s@macro-record-enable:25] MacroExit("SIP/101-00000006", "") in                                                                              new stack
    -- Executing [389508394***@from-internal:6] Macro("SIP/101-00000006", "dialo                                                                             ut-trunk,11,89508394***,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/101-00000006", "DIAL_TRUNK=1                                                                             1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/101-00000006", "0?sub-pi                                                                             ncheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/101-00000006", "0?disable                                                                             trunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/101-00000006", "DIAL_NUMBER=                                                                             89508394***") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/101-00000006", "DIAL_TRUNK_O                                                                             PTIONS=Tto") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/101-00000006", "OUTBOUND_GRO                                                                             UP=OUT_11") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/101-00000006", "0?nomax")                                                                              in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/101-00000006", "0?chanful                                                                             l") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/101-00000006", "0?skipout                                                                             cid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/101-00000006", "DIAL_TRUNK_                                                                             OPTIONS=Tto") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/101-00000006", "outbound-                                                                             callerid,11") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/101-00000006", "0?Set                                                                             (CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/101-00000006", "0?Set                                                                             (REALCALLERIDNUM=101)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/101-00000006", "1?nor                                                                             mcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/101-00000006", "USEROUTC                                                                             ID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/101-00000006", "EMERGENC                                                                             YCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/101-00000006", "TRUNKOUT                                                                             CID=701") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/101-00000006", "1?tru                                                                             nkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/101-00000006", "1?Se                                                                             t(CALLERID(all)=701)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/101-00000006", "0?Se                                                                             t(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/101-00000006", "0?Se                                                                             t(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/101-00000006", "0?Se                                                                             t(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/101-00000006", "0?sub-f                                                                             lp-11,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/101-00000006", "OUTNUM=8950                                                                             8394***") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/101-00000006", "custom=SIP/                                                                             701") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/101-00000006", "0?Set(DI                                                                             AL_TRUNK_OPTIONS=M(setmusic^default)Tto)") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/101-00000006", "dialout-t                                                                             runk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/101-00000                                                                             006", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/101-00000006", "0?bypass                                                                             ,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/101-00000006", "0?custom                                                                             trunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/101-00000006", "SIP/701/89                                                                             508394***,300,Tto") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/701/89508394***
  == Begin MixMonitor Recording SIP/101-00000006
    -- SIP/701-00000007 answered SIP/101-00000006
printingworld*CLI>
printingworld*CLI>
printingworld*CLI>
printingworld*CLI>
    -- Executing [h@macro-dialout-trunk:1] Macro("SIP/101-00000006", "hangupcall                                                                             ,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/101-00000006", "0?endmixmonc                                                                             heck") in new stack
    -- Executing [s@macro-hangupcall:2] Set("SIP/101-00000006", "MIXMON_CALLFILE                                                                             NAME=/var/spool/asterisk/monitor/OUT101-20150707-045141-1436230301.6.wav") in ne                                                                             w stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/101-00000006", "1?defaultmix                                                                             mondir") in new stack
    -- Goto (macro-hangupcall,s,5)
    -- Executing [s@macro-hangupcall:5] System("SIP/101-00000006", "test -e /var                                                                             /spool/asterisk/monitor/OUT101-20150707-045141-1436230301.6.wav") in new stack
    -- Executing [s@macro-hangupcall:6] NoOp("SIP/101-00000006", "SYSTEMSTATUS =                                                                              SUCCESS") in new stack
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/101-00000006", "1?endmixmonc                                                                             heck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("SIP/101-00000006", "End of MIXMON                                                                              check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/101-00000006", "1?nomeetmem                                                                             on") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s@macro-hangupcall:28] NoOp("SIP/101-00000006", "End of MEETME                                                                              check") in new stack
    -- Executing [s@macro-hangupcall:29] GotoIf("SIP/101-00000006", "1?noautomon                                                                             ") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] NoOp("SIP/101-00000006", "TOUCH_MONITOR                                                                             _OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:35] GotoIf("SIP/101-00000006", "1?noautomon                                                                             2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s@macro-hangupcall:41] NoOp("SIP/101-00000006", "MONITOR_FILEN                                                                             AME=") in new stack
    -- Executing [s@macro-hangupcall:42] GotoIf("SIP/101-00000006", "1?skiprg")                                                                              in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s@macro-hangupcall:45] GotoIf("SIP/101-00000006", "1?skipblkvm                                                                             ") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s@macro-hangupcall:48] GotoIf("SIP/101-00000006", "1?theend")                                                                              in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s@macro-hangupcall:50] AGI("SIP/101-00000006", "hangup.agi") i                                                                             n new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <SIP/101-00000006>AGI Script hangup.agi completed, returning 0
    -- Executing [s@macro-hangupcall:51] Hangup("SIP/101-00000006", "") in new s                                                                             tack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/101-00000                                                                             006' in macro 'hangupcall'
  == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/101-000                                                                             00006'
  == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/101-00                                                                             000006' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 389508394***, 6) exited non-zero on 'SIP/10                                                                             1-00000006'
  == MixMonitor close filestream
  == End MixMonitor Recording SIP/101-00000006
Аватара пользователя
Wapo
Сообщения: 795
Зарегистрирован: 02 мар 2011, 17:53

Re: Elastix. D-Link 6004s.

Сообщение Wapo »

Я могу,конечно, ошибаться, но разве так надо звонить:

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

   -- Executing [s@macro-dialout-trunk:19] Dial("SIP/101-00000006", "SIP/701/89508394***,300,Tto") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/701/89508394***
  == Begin MixMonitor Recording SIP/101-00000006
    -- SIP/701-00000007 answered SIP/101-00000006
А не Dial(SIP/701,300,D(89508394***)Tto) ?
ded
Сообщения: 15631
Зарегистрирован: 26 авг 2010, 19:00

Re: Elastix. D-Link 6004s.

Сообщение ded »

Судя по
Dial("SIP/101-00000006", "SIP/701/89508394***,300,Tto") у вас FXO порты Dlink забиты как extensions - 701, 702
что в корне неверно, потому что нет возможности организовывать входящие/исходящие сценарии через логику вэб интерфейса. Надо как транки.
Поэтому и используются трюки типа Dial(SIP/701,300,D(89508394***)Tto). У вас явно кто-то (но не Вы) там всё настраивал кастомно, руками в файлах.

Но вот с первой строки видно - набран номер 389508394*** и сразу отрезана первая цифра,
Executing [389508394***@from-internal:1]
дальнейшая обработка идёт номера 89508394***
Вопрос: Вы куда вообще звонили? В РФ номера десятизначные. Если имелось ввиду 8-гудок-950-8394*** то в аналоговых линиях надо задавать ожидание/паузу после восьмёрки
Dial(SIP/701,300,D(8wwww9508394***))
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH