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

Elastix 2.4.0 не работает Callback

Обо всем касательно FreePBX, MetPBX, TrixBox, Elastix, AstPBX и всех других дистрибутивов

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

Ответить
vik021
Сообщения: 5
Зарегистрирован: 31 июл 2015, 06:35
Откуда: Ноябрьск

Elastix 2.4.0 не работает Callback

Сообщение vik021 »

Добрый день. Очень нужна помощь с поиском проблемы. Гугл не помог найти решения или хотя бы аналогичной проблемы. А сроки поджимают. :cry: Система - Elastix 2.4.0, Asterisk 1.8.20.0, FreePBX 2.8.1.
Исходящий SIP транк идет на Элтекс, точную информацию сейчас дать не могу, доступа к нему нет.
При звонке, как и положенно происходит сброс, но обратного звонка нет.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Все настроенно через Вэб морду:

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

1. Outbound Route:
        Route Name: Test
        Route CID: 4YYYY1
        Match pattern: 89YYYYYYY52
        Trunk: eltex
2. Incoming Route: 
       Description: IR-Callback-to-tech
       DID Number: 4YYYY1
       Caller ID Number: 89YYYYYYY52
       Set Destination: IVR - test
3. IVR test:
       Timeout: 1
       Repeat Loops: 1
       Invalid: Calback - 4YYYY1-89YYYYYYY52
       Timeout: Calback - 4YYYY1-89YYYYYYY52
       Press "1": Calback - 4YYYY1-89YYYYYYY52
4. Callback 3:
       Callback Description: 4YYYY1-89YYYYYYY52
       Callback Number: 89YYYYYYY52
       Delay Before Callback: 5
       Destination after Callback: 201
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Скриншот CDR Report:
Изображение
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: asterisk -rvvvvv

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

Asterisk 1.8.20.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.8.20.0 currently running on YYY (pid = 30960)
Verbosity is at least 5
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [4YYYY1@from-trunk-sip-eltex:1] Set("SIP/eltex-00000016", "GROUP()=OUT_2") in new stack
    -- Executing [4YYYY1@from-trunk-sip-eltex:2] Goto("SIP/eltex-00000016", "from-trunk,4YYYY1,1") in new stack
    -- Goto (from-trunk,4YYYY1,1)
    -- Executing [4YYYY1@from-trunk:1] Set("SIP/eltex-00000016", "__FROM_DID=4YYYY1") in new stack
    -- Executing [4YYYY1@from-trunk:2] Gosub("SIP/eltex-00000016", "app-blacklist-check,s,1") in new stack
    -- Executing [s@app-blacklist-check:1] GotoIf("SIP/eltex-00000016", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:2] Set("SIP/eltex-00000016", "CALLED_BLACKLIST=1") in new stack
    -- Executing [s@app-blacklist-check:3] Return("SIP/eltex-00000016", "") in new stack
    -- Executing [4YYYY1@from-trunk:3] ExecIf("SIP/eltex-00000016", "0 ?Set(CALLERID(name)=89YYYYYYY52)") in new stack
    -- Executing [4YYYY1@from-trunk:4] Wait("SIP/eltex-00000016", "3") in new stack
    -- Executing [4YYYY1@from-trunk:5] Set("SIP/eltex-00000016", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [4YYYY1@from-trunk:6] Set("SIP/eltex-00000016", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [4YYYY1@from-trunk:7] Goto("SIP/eltex-00000016", "app-announcement-9,s,1") in new stack
    -- Goto (app-announcement-9,s,1)
    -- Executing [s@app-announcement-9:1] GotoIf("SIP/eltex-00000016", "0?begin") in new stack
    -- Executing [s@app-announcement-9:2] Answer("SIP/eltex-00000016", "") in new stack
    -- Executing [s@app-announcement-9:3] Wait("SIP/eltex-00000016", "1") in new stack
    -- Executing [s@app-announcement-9:4] NoOp("SIP/eltex-00000016", "Playing announcement Test") in new stack
    -- Executing [s@app-announcement-9:5] Playback("SIP/eltex-00000016", ",noanswer") in new stack
    -- Executing [s@app-announcement-9:6] Goto("SIP/eltex-00000016", "callback,3,1") in new stack
    -- Goto (callback,3,1)
    -- Executing [3@callback:1] Set("SIP/eltex-00000016", "CALL=89YYYYYYY52") in new stack
    -- Executing [3@callback:2] Set("SIP/eltex-00000016", "DESTINATION=from-did-direct.201.1") in new stack
    -- Executing [3@callback:3] Set("SIP/eltex-00000016", "SLEEP=5") in new stack
    -- Executing [3@callback:4] System("SIP/eltex-00000016", "/var/lib/asterisk/bin/callback 89YYYYYYY52 from-did-direct.201.1 5 &") in new stack
    -- Executing [3@callback:5] Hangup("SIP/eltex-00000016", "") in new stack
  == Spawn extension (callback, 3, 5) exited non-zero on 'SIP/eltex-00000016'
    -- Executing [89YYYYYYY52@from-internal:1] Macro("Local/89YYYYYYY52@from-internal-00000004;2", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/89YYYYYYY52@from-internal-00000004;2", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("Local/89YYYYYYY52@from-internal-00000004;2", "CALLERID(number)=") in new stack
    -- Executing [s@macro-user-callerid:20] Set("Local/89YYYYYYY52@from-internal-00000004;2", "CALLERID(name)=Callback") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("Local/89YYYYYYY52@from-internal-00000004;2", "Using CallerID "Callback" <>") in new stack
    -- Executing [89YYYYYYY52@from-internal:2] NoOp("Local/89YYYYYYY52@from-internal-00000004;2", "Calling Out Route: gsm-out") in new stack
    -- Executing [89YYYYYYY52@from-internal:3] Set("Local/89YYYYYYY52@from-internal-00000004;2", "MOHCLASS=default") in new stack
    -- Executing [89YYYYYYY52@from-internal:4] Set("Local/89YYYYYYY52@from-internal-00000004;2", "_NODEST=") in new stack
    -- Executing [89YYYYYYY52@from-internal:5] Macro("Local/89YYYYYYY52@from-internal-00000004;2", "record-enable,,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?MacroExit()") in new stack
    -- Executing [89YYYYYYY52@from-internal:6] Macro("Local/89YYYYYYY52@from-internal-00000004;2", "dialout-trunk,2,89YYYYYYY52,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("Local/89YYYYYYY52@from-internal-00000004;2", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("Local/89YYYYYYY52@from-internal-00000004;2", "DIAL_NUMBER=89YYYYYYY52") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("Local/89YYYYYYY52@from-internal-00000004;2", "DIAL_TRUNK_OPTIONS=Tt") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("Local/89YYYYYYY52@from-internal-00000004;2", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("Local/89YYYYYYY52@from-internal-00000004;2", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("Local/89YYYYYYY52@from-internal-00000004;2", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?Set(REALCALLERIDNUM=)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("Local/89YYYYYYY52@from-internal-00000004;2", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("Local/89YYYYYYY52@from-internal-00000004;2", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("Local/89YYYYYYY52@from-internal-00000004;2", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?sub-flp-2,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("Local/89YYYYYYY52@from-internal-00000004;2", "OUTNUM=89YYYYYYY52") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("Local/89YYYYYYY52@from-internal-00000004;2", "custom=SIP/eltex") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("Local/89YYYYYYY52@from-internal-00000004;2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/89YYYYYYY52@from-internal-00000004;2", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("Local/89YYYYYYY52@from-internal-00000004;2", "SIP/eltex/89YYYYYYY52,300,") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/eltex/89YYYYYYY52
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:20] NoOp("Local/89YYYYYYY52@from-internal-00000004;2", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack
    -- Executing [s@macro-dialout-trunk:21] Goto("Local/89YYYYYYY52@from-internal-00000004;2", "s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("Local/89YYYYYYY52@from-internal-00000004;2", "RC=21") in new stack
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("Local/89YYYYYYY52@from-internal-00000004;2", "21,1") in new stack
    -- Goto (macro-dialout-trunk,21,1)
    -- Executing [21@macro-dialout-trunk:1] Goto("Local/89YYYYYYY52@from-internal-00000004;2", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("Local/89YYYYYYY52@from-internal-00000004;2", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] Set("Local/89YYYYYYY52@from-internal-00000004;2", "CALLERID(number)=") in new stack
    -- Executing [89YYYYYYY52@from-internal:7] Macro("Local/89YYYYYYY52@from-internal-00000004;2", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("Local/89YYYYYYY52@from-internal-00000004;2", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("Local/89YYYYYYY52@from-internal-00000004;2", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- <Local/89YYYYYYY52@from-internal-00000004;2> Playing 'all-circuits-busy-now.gsm' (language 'en')
    -- <Local/89YYYYYYY52@from-internal-00000004;2> Playing 'pls-try-call-later.gsm' (language 'en')
    -- Executing [s@macro-outisbusy:5] Congestion("Local/89YYYYYYY52@from-internal-00000004;2", "20") in new stack
       > Channel Local/89YYYYYYY52@from-internal-00000004;1 was never answered.
  == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'Local/89YYYYYYY52@from-internal-00000004;2' in macro 'outisbusy'
  == Spawn extension (from-internal, 89YYYYYYY52, 7) exited non-zero on 'Local/89YYYYYYY52@from-internal-00000004;2'
    -- Executing [h@from-internal:1] Macro("Local/89YYYYYYY52@from-internal-00000004;2", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("Local/89YYYYYYY52@from-internal-00000004;2", "End of MIXMON check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s@macro-hangupcall:28] NoOp("Local/89YYYYYYY52@from-internal-00000004;2", "End of MEETME check") in new stack
    -- Executing [s@macro-hangupcall:29] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] NoOp("Local/89YYYYYYY52@from-internal-00000004;2", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:35] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s@macro-hangupcall:41] NoOp("Local/89YYYYYYY52@from-internal-00000004;2", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:42] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s@macro-hangupcall:45] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s@macro-hangupcall:48] GotoIf("Local/89YYYYYYY52@from-internal-00000004;2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s@macro-hangupcall:50] AGI("Local/89YYYYYYY52@from-internal-00000004;2", "hangup.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <Local/89YYYYYYY52@from-internal-00000004;2>AGI Script hangup.agi completed, returning 0
    -- Executing [s@macro-hangupcall:51] Hangup("Local/89YYYYYYY52@from-internal-00000004;2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'Local/89YYYYYYY52@from-internal-00000004;2' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/89YYYYYYY52@from-internal-00000004;2'
awsswa
Сообщения: 2390
Зарегистрирован: 09 июн 2012, 10:52
Откуда: Россия, Пермь skype: yarick_perm

Re: Elastix 2.4.0 не работает Callback

Сообщение awsswa »

== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] NoOp("Local/89YYYYYYY52@from-internal-00000004;2", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and
платный суппорт по мере возможностей
vik021
Сообщения: 5
Зарегистрирован: 31 июл 2015, 06:35
Откуда: Ноябрьск

Re: Elastix 2.4.0 не работает Callback

Сообщение vik021 »

== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] NoOp("Local/89YYYYYYY52@from-internal-00000004;2", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and
Как я понимаю, проблема в транке, тогда не понятно, почему при обычном звонке на этот номер все нормально.

P.S. Прошу прощения за возможно глупые вопросы, но опыта с астериск мало, а с Эластиксом вообще нет, до этого настраивал только железку SNR АТС(Trunk, OUT/IN Routes, IVR, руссификация и т.д., в общем, самое простое). А данный Эластикс настроен до меня, дали задачу допилить калбэк, почти неделю уже бьюсь. :(
Аватара пользователя
zzuz
Сообщения: 1658
Зарегистрирован: 21 сен 2010, 13:33
Контактная информация:

Re: Elastix 2.4.0 не работает Callback

Сообщение zzuz »

тогда не понятно, почему при обычном звонке на этот номер все нормально.
- не верю (с) .
Линия24 - Системы Массового Телефонного Обслуживания
vik021
Сообщения: 5
Зарегистрирован: 31 июл 2015, 06:35
Откуда: Ноябрьск

Re: Elastix 2.4.0 не работает Callback

Сообщение vik021 »

- не верю (с) .
К сожалению так и есть, если бы бы вообще звонки не проходили - было бы проще.
ded
Сообщения: 15625
Зарегистрирован: 26 авг 2010, 19:00

Re: Elastix 2.4.0 не работает Callback

Сообщение ded »

Как можно освоить огромный объём знаний допиливая неделю callback?
Никак.

dialplan show 89YYYYYYY52@from-internal-00000004 скажет Вам, что нет такого контекста - from-internal-00000004
Ну и оцените весь лабиринт контекстов на своём Эластиксе, чтобы ответиьт на вопрос "А куда он подевался?"
vik021
Сообщения: 5
Зарегистрирован: 31 июл 2015, 06:35
Откуда: Ноябрьск

Re: Elastix 2.4.0 не работает Callback

Сообщение vik021 »

dialplan show 89YYYYYYY52@from-internal-00000004 скажет Вам, что нет такого контекста - from-internal-00000004
Ну и оцените весь лабиринт контекстов на своём Эластиксе, чтобы ответиьт на вопрос "А куда он подевался?"
Но контекст "dialplan show 89YYYYYYY52@from-internal" присутствует, а вот поледние "-00000004" генерируютя как то динамически для всех звонков.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: например

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

-- Executing [s@macro-dial-one:37] Dial("Local/101@from-queue-000000cb;2", "SIP/101,"",TtM(auto-blkvm)") in new stack
vik021
Сообщения: 5
Зарегистрирован: 31 июл 2015, 06:35
Откуда: Ноябрьск

Re: Elastix 2.4.0 не работает Callback

Сообщение vik021 »

Самое интересно - через Задарма калбэк работает. :(
awsswa
Сообщения: 2390
Зарегистрирован: 09 июн 2012, 10:52
Откуда: Россия, Пермь skype: yarick_perm

Re: Elastix 2.4.0 не работает Callback

Сообщение awsswa »

-- Executing [s@macro-dialout-trunk:19] Dial("Local/89YYYYYYY52@from-internal-00000004;2", "SIP/eltex/89YYYYYYY52,300,") in new stack

Внутренние чутьё подсказывает что раз там eltex то он аналоговый = а раз аналоговый то одноканальный
платный суппорт по мере возможностей
Ответить
© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH