Добрый день.
Используем панель телефонии (как расширение) в интеграции с УНФ 1.6.15.55 на SQL, платформа 8.3.11.2867
Расширение конфигурации: Модуль телефонии (1.0.0.10), версия панели 1.4.26.27, работают 30 пользователей.
Asterisk 13.18.1 built by mockbuild @ jenkins7 on a x86_64 running Linux on 2017-11-10 20:56:57 UTC
FreePBX version: (14.0.3.19)
Core 14.0.18.19 Stable telefon1c.ru, Asterisk AJAM Settings (PT1C) 2.11.3.40 Stable telefon1c.ru
FreePBX настроен в соответствии с инструкцией:https://wiki.miko.ru/astpanel:ats:freepbx_distro#manager_asterisk
Настроен прокси сервер в соответствии сhttps://wiki.miko.ru/astpanel:ast_miko_proxy?roistat_visit=null
Периодически при подключении панели телефонии не происходит её полная инициализация (не загружается состояние телефонных линий и состояние в низу панели "Телефон отключен")
В журнале AJAM отладчик наблюдаем следующую картину:
Затем по мере совершения звонков пользователями строки приходят в нормальное состояние, но в низу состояние телефона остаётся "Телефон оключен"
Лечится переподключением панели, но не всегда с первого раза. При нормальном подключении получаем следующий лог:
После нормального подключения панель некоторое время работает хорошо, но при длительных звонках состояние отдельных линий пользователей подвисает и мы видим, что пользователь в состоянии соединён, порзвонить ему из панели невозможно, но на самом деле трубка у него опущена и с телефона звонок ему совершается.
Вот пример лога с таким поведением, оператор 314 звонит на номер 782491 и разговор длился 11 мин. после чего в панели управления Hangup не отобразился:
Периодически в логе появляется ошибка:
перед которой более полутора сотен строк с [UserEvent]
После этой ошибки панель телефонии перестаёт отображать изменения.
Подскажите что предпринять чтобы исправить проблему.
Используем панель телефонии (как расширение) в интеграции с УНФ 1.6.15.55 на SQL, платформа 8.3.11.2867
Расширение конфигурации: Модуль телефонии (1.0.0.10), версия панели 1.4.26.27, работают 30 пользователей.
Asterisk 13.18.1 built by mockbuild @ jenkins7 on a x86_64 running Linux on 2017-11-10 20:56:57 UTC
FreePBX version: (14.0.3.19)
Core 14.0.18.19 Stable telefon1c.ru, Asterisk AJAM Settings (PT1C) 2.11.3.40 Stable telefon1c.ru
FreePBX настроен в соответствии с инструкцией:
Настроен прокси сервер в соответствии с
Периодически при подключении панели телефонии не происходит её полная инициализация (не загружается состояние телефонных линий и состояние в низу панели "Телефон отключен")
В журнале AJAM отладчик наблюдаем следующую картину:
Скрытый текст |
---|
new Structure("response, message, host, idenity, proxy","Success", "Authentication accepted", "asterisk.pcs.loc", "0", "MikoProxyMode") Не вышло вычислить выражение: Не вышло вычислить выражение: new Structure("response, actionid, variable, value","Success", "pt1c315", "MIKO_MyPBX", "") new Structure("response, message, host, idenity, proxy","Success", "Authentication accepted", "asterisk.pcs.loc", "0", "MikoProxyMode") [SendRequest] <result = 'operation timeout' errcode='28' httpcode = '0' / > [SendRequest] <result = 'operation timeout' errcode='28' httpcode = '0' / > |
Лечится переподключением панели, но не всегда с первого раза. При нормальном подключении получаем следующий лог:
Скрытый текст |
---|
new Structure("response, message","Goodbye", "Thanks for all the fish.") new Structure("response, message, host, idenity, proxy","Success", "Authentication accepted", "asterisk.pcs.loc", "0", "MikoProxyMode") new Structure("response, actionid, variable, value","Success", "pt1c315", "SYSTEMNAME", "") new Structure("response, actionid, variable, value","Success", "pt1c315", "TRANSFER_CONTEXT", "from-internal-xfer") new Structure("response, actionid, variable, value","Success", "pt1c315", "MIKO_MyPBX", "") new Structure("response, message, host, idenity, proxy","Success", "Authentication accepted", "asterisk.pcs.loc", "0", "MikoProxyMode") new Structure("response, actionid, message","Success", "pt1c315", "Originate successfully queued") [ProcessMessageLoop] <listener state = 'waitevent request aborted' / > new Structure("response, message","Success", "Filter success activated") new Structure("response, actionid, message","Success", "pt1c315", "Originate successfully queued") new Structure("response, actionid, message","Success", "pt1c315", "Originate successfully queued") new Structure("response, actionid, message","Success", "pt1c315", "Originate successfully queued") new Structure("response, actionid, message","Success", "pt1c315", "Originate successfully queued") new Structure("response, actionid, message","Success", "pt1c315", "Originate successfully queued") new Structure("response, actionid, message","Success", "pt1c315", "Originate successfully queued") new Structure("response, channeltype, objectname, chanobjecttype, secretexist, remotesecretexist, md5secretexist, context, language, tonezone, amaflags, cid_callingpres, callgroup, pickupgroup, named_callgroup, named_pickupgroup, mohsuggest, voicemailbox, transfermode, lastmsgssent, maxforwards, call_limit, busy_level, maxcallbr, dynamic, callerid, regexpire, sip_authinsecure, sip_forcerport, sip_comedia, acl, sip_canreinvite, sip_directmedia, sip_promiscredir, sip_userphone, sip_videosupport, sip_textsupport, sip_t_38support, sip_t_38ec, sip_t_38maxdtgrm, sip_sess_timers, sip_sess_refresh, sip_sess_expires, sip_sess_min, sip_rtp_engine, sip_encryption, sip_rtcp_mux, sip_dtmfmode, tohost, address_ip, address_port, default_addr_ip, default_addr_port, default_username, codecs, status, sip_useragent, reg_contact, qualifyfreq, parkinglot, sip_use_reason_header, description","Success", "SIP", "315", "peer", "Y", "N", "N", "from-internal", "ru", "<Not set>", "Unknown", "Presentation Allowed, Not Screened", "", "", "SC", "SC", "", "315@device", "open", "0", "0", "2147483647", "0", "384 kbps", "Y", "ХХХХХХХХХ"' <315>", "1712 seconds", "no", "N", "N", "Y", "N", "N", "N", "N", "N", "N", "N", "Unknown", "4294967295", "Accept", "uas", "1800", "90", "asterisk", "N", "N", "rfc2833", "", "192.0.0.227", "5060", "(null)", "0", "315", "(ulaw|alaw)", "OK (7 ms)", "Grandstream GXP1628 1.0.4.106", "sip: ОстатокДнейЛицензии = "", ТипЛицензии = "MIKO SaaS", РегистрационныйНомер = "MIKO-W1O3Q..." ОстатокДнейЛицензии (HASP) = "-1", ТипЛицензии (HASP) = "", РегистрационныйНомер (HASP) = "..." |
Вот пример лога с таким поведением, оператор 314 звонит на номер 782491 и разговор длился 11 мин. после чего в панели управления Hangup не отобразился:
Скрытый текст |
---|
[DialBegin] {"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{33,{{"S","event"},{"S","DialBegin"}},{{"S","channelstate"},{"S","4"}},{{"S","privilege"},{"S","call,all"}},{{"S","channel"},{"S","SIP/314-00007a99"}},{{"S","channelstatedesc"},{"S","Ring"}},{{"S","destuniqueid"},{"S","1542279822.79400"}},{{"S","calleridnum"},{"S","88142555505"}},{{"S","calleridname"},{"S","<unknown>"}},{{"S","destchannelstatedesc"},{"S","Down"}},{{"S","context"},{"S","macro-dialout-trunk"}},{{"S","connectedlinenum"},{"S","782491"}},{{"S","connectedlinename"},{"S","CID:88142555505"}},{{"S","language"},{"S","ru"}},{{"S","accountcode"},{"S",""}},{{"S","exten"},{"S","s"}},{{"S","Переменные"},{"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{2,{{"S","CDR(linkedid)"},{"S","1542279821.79399"}},{{"S","INTERCHANNEL"},{"S",""}}}}},{{"S","priority"},{"S","32"}},{{"S","uniqueid"},{"S","1542279821.79399"}},{{"S","linkedid"},{"S","1542279821.79399"}},{{"S","destcalleridnum"},{"S","782491"}},{{"S","destchannel"},{"S","SIP/BRI765017-00007a9a"}},{{"S","destchannelstate"},{"S","0"}},{{"S","destcalleridname"},{"S","CID:88142555505"}},{{"S","destconnectedlinenum"},{"S","88142555505"}},{{"S","destconnectedlinename"},{"S","<unknown>"}},{{"S","destlinkedid"},{"S","1542279821.79399"}},{{"S","destlanguage"},{"S","ru"}},{{"S","destaccountcode"},{"S",""}},{{"S","destcontext"},{"S","func-apply-sipheaders"}},{{"S","destexten"},{"S","s"}},{{"S","destpriority"},{"S","12"}},{{"S","dialstring"},{"S","BRI765017/782491"}},{{"S","host"},{"S","asterisk.pcs.loc"}}}} [DialEnd] {"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{33,{{"S","event"},{"S","DialEnd"}},{{"S","channelstate"},{"S","4"}},{{"S","privilege"},{"S","call,all"}},{{"S","channel"},{"S","SIP/314-00007a99"}},{{"S","channelstatedesc"},{"S","Ring"}},{{"S","destuniqueid"},{"S","1542279822.79400"}},{{"S","calleridnum"},{"S","88142555505"}},{{"S","calleridname"},{"S","<unknown>"}},{{"S","destchannelstatedesc"},{"S","Up"}},{{"S","context"},{"S","macro-dialout-trunk"}},{{"S","connectedlinenum"},{"S","782491"}},{{"S","connectedlinename"},{"S","CID:88142555505"}},{{"S","language"},{"S","ru"}},{{"S","accountcode"},{"S",""}},{{"S","exten"},{"S","s"}},{{"S","Переменные"},{"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{2,{{"S","CDR(linkedid)"},{"S","1542279821.79399"}},{{"S","INTERCHANNEL"},{"S",""}}}}},{{"S","priority"},{"S","32"}},{{"S","uniqueid"},{"S","1542279821.79399"}},{{"S","linkedid"},{"S","1542279821.79399"}},{{"S","destcalleridnum"},{"S","782491"}},{{"S","destchannel"},{"S","SIP/BRI765017-00007a9a"}},{{"S","destchannelstate"},{"S","6"}},{{"S","destcalleridname"},{"S","CID:88142555505"}},{{"S","destconnectedlinenum"},{"S","88142555505"}},{{"S","destconnectedlinename"},{"S","<unknown>"}},{{"S","destlinkedid"},{"S","1542279821.79399"}},{{"S","destlanguage"},{"S","ru"}},{{"S","destaccountcode"},{"S",""}},{{"S","destcontext"},{"S","from-trunk"}},{{"S","destexten"},{"S",""}},{{"S","destpriority"},{"S","1"}},{{"S","dialstatus"},{"S","ANSWER"}},{{"S","host"},{"S","asterisk.pcs.loc"}}}} [BridgeEnter] {"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{25,{{"S","event"},{"S","BridgeEnter"}},{{"S","bridgename"},{"S","<unknown>"}},{{"S","privilege"},{"S","call,all"}},{{"S","bridgeuniqueid"},{"S","484e83bb-4a6d-419b-96b1-9b4a3a7e05aa"}},{{"S","bridgetechnology"},{"S","simple_bridge"}},{{"S","bridgecreator"},{"S","<unknown>"}},{{"S","bridgenumchannels"},{"S","1"}},{{"S","bridgetype"},{"S","basic"}},{{"S","bridgevideosourcemode"},{"S","none"}},{{"S","channel"},{"S","SIP/BRI765017-00007a9a"}},{{"S","channelstate"},{"S","6"}},{{"S","channelstatedesc"},{"S","Up"}},{{"S","calleridnum"},{"S","782491"}},{{"S","calleridname"},{"S","CID:88142555505"}},{{"S","context"},{"S","from-trunk"}},{{"S","connectedlinenum"},{"S","88142555505"}},{{"S","connectedlinename"},{"S","<unknown>"}},{{"S","language"},{"S","ru"}},{{"S","accountcode"},{"S",""}},{{"S","exten"},{"S",""}},{{"S","Переменные"},{"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{4,{{"S","CDR(linkedid)"},{"S","1542279821.79399"}},{{"S","DIALEDPEERNUMBER"},{"S","BRI765017/782491"}},{{"S","BLKVM_CHANNEL"},{"S",""}},{{"S","BRIDGEPEER"},{"S","SIP/314-00007a99"}}}}},{{"S","priority"},{"S","1"}},{{"S","uniqueid"},{"S","1542279822.79400"}},{{"S","linkedid"},{"S","1542279821.79399"}},{{"S","host"},{"S","asterisk.pcs.loc"}}}} [BridgeEnter] {"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{25,{{"S","event"},{"S","BridgeEnter"}},{{"S","bridgename"},{"S","<unknown>"}},{{"S","privilege"},{"S","call,all"}},{{"S","bridgeuniqueid"},{"S","484e83bb-4a6d-419b-96b1-9b4a3a7e05aa"}},{{"S","bridgetechnology"},{"S","simple_bridge"}},{{"S","bridgecreator"},{"S","<unknown>"}},{{"S","bridgenumchannels"},{"S","2"}},{{"S","bridgetype"},{"S","basic"}},{{"S","bridgevideosourcemode"},{"S","none"}},{{"S","channel"},{"S","SIP/314-00007a99"}},{{"S","channelstate"},{"S","6"}},{{"S","channelstatedesc"},{"S","Up"}},{{"S","calleridnum"},{"S","88142555505"}},{{"S","calleridname"},{"S","<unknown>"}},{{"S","context"},{"S","macro-dialout-trunk"}},{{"S","connectedlinenum"},{"S","782491"}},{{"S","connectedlinename"},{"S","CID:88142555505"}},{{"S","language"},{"S","ru"}},{{"S","accountcode"},{"S",""}},{{"S","exten"},{"S","s"}},{{"S","Переменные"},{"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{4,{{"S","CDR(linkedid)"},{"S","1542279821.79399"}},{{"S","DIALEDPEERNUMBER"},{"S","BRI765017/782491"}},{{"S","BLKVM_CHANNEL"},{"S",""}},{{"S","BRIDGEPEER"},{"S","SIP/BRI765017-00007a9a"}}}}},{{"S","priority"},{"S","32"}},{{"S","uniqueid"},{"S","1542279821.79399"}},{{"S","linkedid"},{"S","1542279821.79399"}},{{"S","host"},{"S","asterisk.pcs.loc"}}}} [BridgeLeave] {"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{25,{{"S","event"},{"S","BridgeLeave"}},{{"S","bridgename"},{"S","<unknown>"}},{{"S","privilege"},{"S","call,all"}},{{"S","bridgeuniqueid"},{"S","484e83bb-4a6d-419b-96b1-9b4a3a7e05aa"}},{{"S","bridgetechnology"},{"S","simple_bridge"}},{{"S","bridgecreator"},{"S","<unknown>"}},{{"S","bridgenumchannels"},{"S","1"}},{{"S","bridgetype"},{"S","basic"}},{{"S","bridgevideosourcemode"},{"S","none"}},{{"S","channel"},{"S","SIP/BRI765017-00007a9a"}},{{"S","channelstate"},{"S","6"}},{{"S","channelstatedesc"},{"S","Up"}},{{"S","calleridnum"},{"S","782491"}},{{"S","calleridname"},{"S","CID:88142555505"}},{{"S","context"},{"S","from-trunk"}},{{"S","connectedlinenum"},{"S","88142555505"}},{{"S","connectedlinename"},{"S","<unknown>"}},{{"S","language"},{"S","ru"}},{{"S","accountcode"},{"S",""}},{{"S","exten"},{"S",""}},{{"S","Переменные"},{"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{4,{{"S","CDR(linkedid)"},{"S",""}},{{"S","DIALEDPEERNUMBER"},{"S",""}},{{"S","BLKVM_CHANNEL"},{"S",""}},{{"S","BRIDGEPEER"},{"S",""}}}}},{{"S","priority"},{"S","1"}},{{"S","uniqueid"},{"S","1542279822.79400"}},{{"S","linkedid"},{"S","1542279821.79399"}},{{"S","host"},{"S","asterisk.pcs.loc"}}}} [BridgeLeave] {"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{25,{{"S","event"},{"S","BridgeLeave"}},{{"S","bridgename"},{"S","<unknown>"}},{{"S","privilege"},{"S","call,all"}},{{"S","bridgeuniqueid"},{"S","484e83bb-4a6d-419b-96b1-9b4a3a7e05aa"}},{{"S","bridgetechnology"},{"S","simple_bridge"}},{{"S","bridgecreator"},{"S","<unknown>"}},{{"S","bridgenumchannels"},{"S","0"}},{{"S","bridgetype"},{"S","basic"}},{{"S","bridgevideosourcemode"},{"S","none"}},{{"S","channel"},{"S","SIP/314-00007a99"}},{{"S","channelstate"},{"S","6"}},{{"S","channelstatedesc"},{"S","Up"}},{{"S","calleridnum"},{"S","88142555505"}},{{"S","calleridname"},{"S","<unknown>"}},{{"S","context"},{"S","macro-dialout-trunk"}},{{"S","connectedlinenum"},{"S","782491"}},{{"S","connectedlinename"},{"S","CID:88142555505"}},{{"S","language"},{"S","ru"}},{{"S","accountcode"},{"S",""}},{{"S","exten"},{"S","s"}},{{"S","Переменные"},{"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{4,{{"S","CDR(linkedid)"},{"S","1542279821.79399"}},{{"S","DIALEDPEERNUMBER"},{"S","BRI765017/782491"}},{{"S","BLKVM_CHANNEL"},{"S",""}},{{"S","BRIDGEPEER"},{"S",""}}}}},{{"S","priority"},{"S","32"}},{{"S","uniqueid"},{"S","1542279821.79399"}},{{"S","linkedid"},{"S","1542279821.79399"}},{{"S","host"},{"S","asterisk.pcs.loc"}}}} [Hangup] {"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{19,{{"S","event"},{"S","Hangup"}},{{"S","channelstate"},{"S","6"}},{{"S","privilege"},{"S","call,all"}},{{"S","channel"},{"S","SIP/BRI765017-00007a9a"}},{{"S","channelstatedesc"},{"S","Up"}},{{"S","calleridnum"},{"S","782491"}},{{"S","context"},{"S","from-trunk"}},{{"S","calleridname"},{"S","CID:88142555505"}},{{"S","connectedlinenum"},{"S","88142555505"}},{{"S","connectedlinename"},{"S","<unknown>"}},{{"S","language"},{"S","ru"}},{{"S","accountcode"},{"S",""}},{{"S","exten"},{"S",""}},{{"S","priority"},{"S","1"}},{{"S","uniqueid"},{"S","1542279822.79400"}},{{"S","linkedid"},{"S","1542279821.79399"}},{{"S","cause_txt"},{"S","Normal Clearing"}},{{"S","cause"},{"S","16"}},{{"S","host"},{"S","asterisk.pcs.loc"}}}} [Hangup] {"#",3d48feae-a9c6-4c5a-a099-9eb6477630c6,{19,{{"S","event"},{"S","Hangup"}},{{"S","channelstate"},{"S","6"}},{{"S","privilege"},{"S","call,all"}},{{"S","channel"},{"S","SIP/314-00007a99"}},{{"S","channelstatedesc"},{"S","Up"}},{{"S","calleridnum"},{"S","88142555505"}},{{"S","context"},{"S","from-internal"}},{{"S","calleridname"},{"S","<unknown>"}},{{"S","connectedlinenum"},{"S","782491"}},{{"S","connectedlinename"},{"S","CID:88142555505"}},{{"S","language"},{"S","ru"}},{{"S","accountcode"},{"S",""}},{{"S","exten"},{"S","h"}},{{"S","priority"},{"S","1"}},{{"S","uniqueid"},{"S","1542279821.79399"}},{{"S","linkedid"},{"S","1542279821.79399"}},{{"S","cause_txt"},{"S","Normal Clearing"}},{{"S","cause"},{"S","16"}},{{"S","host"},{"S","asterisk.pcs.loc"}}}} |
Периодически в логе появляется ошибка:
Скрытый текст | ||
---|---|---|
|
После этой ошибки панель телефонии перестаёт отображать изменения.
Подскажите что предпринять чтобы исправить проблему.