{"id":652,"date":"2014-08-06T12:41:13","date_gmt":"2014-08-06T10:41:13","guid":{"rendered":"http:\/\/bos-info.com\/?p=652"},"modified":"2016-07-23T13:25:34","modified_gmt":"2016-07-23T11:25:34","slug":"realtime-queues","status":"publish","type":"post","link":"https:\/\/bos-info.com\/?p=652","title":{"rendered":"Realtime Queues"},"content":{"rendered":"<p>\u041f\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 \u043a\u043e\u043b-\u0446\u0435\u043d\u0442\u0440\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c Queues(\u043e\u0447\u0435\u0440\u0435\u0434\u0438). \u041a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u043e\u0432 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043d\u043e <a href=\"https:\/\/bos-info.com\/asterisk\/%d0%be%d1%87%d0%b5%d1%80%d0%b5%d0%b4%d0%b8queues.html\" title=\"\u041e\u0447\u0435\u0440\u0435\u0434\u0438(queues)\" target=\"_blank\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u041d\u043e \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043a\u043e\u0435-\u043a\u0430\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 \u0411\u0414(MySQL). \u041e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0442\u0435\u043d\u044c\u043a\u043e \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0438\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u0441\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0443\u043f\u0443\u0441\u0442\u0438\u043b \u043f\u0438\u0448\u0438\u0442\u0435. \u0421\u043f\u0430\u0441\u0438\u0431\u043e.<br \/>\n1. Realtime Queue log<br \/>\n2. Realtime Queues config<br \/>\n3. Realtime Queues Members<br \/>\n<!--more--><\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043c\u0430\u043b\u043e\u0433\u043e,\u043d\u043e \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0432\u0430\u0436\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u043e\u0432 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043b\u043b \u0446\u0435\u043d\u0442\u0440\u0430! \u0421 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u0445-\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043b\u043b \u0446\u0435\u043d\u0442\u0440\u0430! <\/p>\n<p>1.Queues LOG Realtime<br \/>\n\u0418\u0442\u0430\u043a \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u043b\u043e\u0433\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043b-\u0446\u0435\u043d\u0442\u0440\u0430 \u0432 \u0411\u0414<br \/>\n\u0415\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0438\u0441\u0430\u043b\u0438\u0441\u044c \u0432 \u043f\u043e\u043b\u044f data1-5, \u0430 \u043d\u0435 \u0432 data \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u043c |, \u0422\u041e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c<br \/>\nqueue_adaptive_realtime=yes \u0432 logger.conf \u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u044f\u0442\u044c queue_log = yes<br \/>\n\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<br \/>\n<code><br \/>\nCREATE TABLE IF NOT EXISTS `queue_log` (<br \/>\n  `time` varchar(32) DEFAULT NULL,<br \/>\n  `callid` char(64) DEFAULT NULL,<br \/>\n  `queuename` char(64) DEFAULT NULL,<br \/>\n  `agent` char(64) DEFAULT NULL,<br \/>\n  `event` char(32) DEFAULT NULL,<br \/>\n  `data` char(64) DEFAULT NULL,<br \/>\n  `data1` char(64) DEFAULT NULL,<br \/>\n  `data2` char(64) DEFAULT NULL,<br \/>\n  `data3` char(64) DEFAULT NULL,<br \/>\n  `data4` char(64) DEFAULT NULL,<br \/>\n  `data5` char(64) DEFAULT NULL<br \/>\n) ENGINE=InnoDB DEFAULT CHARSET=utf8;<br \/>\n<\/code><br \/>\n\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044f.<br \/>\ntime \u2014 \u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f. \u0421 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u0440 \u043a \u0434\u0430\u0442\u0435 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0447\u043a\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u0443\u0436\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c SQL \u0444\u043e\u0440\u043c\u0430\u0442\u0430 datetime, \u043c\u0435\u043d\u044f\u0435\u043c \u0444\u043e\u0440\u043c\u0430\u0442 \u043f\u043e\u043b\u044f \u043d\u0430 varchar.<br \/>\ncallid \u2014 \u00abREALTIME\u00bb, \u00abNONE\u00bb, \u0438\u043b\u0438 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043a\u0430\u043d\u0430\u043b\u0430.<br \/>\nqueuename \u2014 \u0418\u043c\u044f \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442\u043e\u0439 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043f\u043e\u043a\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 queues.conf<br \/>\nagent \u2014 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u0433\u0435\u043d\u0442\u0430 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0434\u0430\u043d\u043d\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435<br \/>\nevent- \u041e\u0434\u043d\u043e \u0438\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 ADDMEMBER, REMOVEMEMBER, RINGNOANSWER, EXITEMPTY, TRANSFER, AGENTDUMP, ABANDON, SYSCOMPAT, CONNECT, COMPLETECALLER, COMPLETEAGENT, AUSEALL, UNPAUSEALL, PAUSE, UNPAUSE, PENALTY, ENTERQUEUE, EXITWITHTIMEOUT, EXITEMPTY, EXITWITHKEY, \u0438\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c.<br \/>\ndata \u2026 data5 \u2014 \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u043c \u0432 \u043f\u043e\u043b\u0435 event.<br \/>\nABANDON(position|origposition|waittime) \u2014 \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u0434\u043e\u043b\u0431\u0430\u043b\u0441\u044f \u0436\u0434\u0430\u0442\u044c \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0438 \u0443\u0448\u0435\u043b. position \u2014 \u041f\u043e\u0437\u0438\u0446\u0438\u044f \u0441 \u043a\u0430\u043a\u043e\u0439 \u043e\u043d \u0443\u0448\u0435\u043b \u0438\u0437 \u043e\u0447\u0435\u0440\u0435\u0434\u0438, origposition \u2014 \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043f\u0430\u043b \u0437\u0432\u043e\u043d\u044f\u0449\u0438\u0439, waittime \u2014 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0434\u0430\u043b \u0437\u0432\u043e\u043d\u044f\u0449\u0438\u0439 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0443\u0448\u0435\u043b.<br \/>\nADDMEMBER \u2014 \u0447\u043b\u0435\u043d \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d. \u0418\u043c\u044f \u0441\u0431\u0440\u0438\u0434\u0436\u0435\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043a\u0430\u043d\u0430\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e\u0433\u043e \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c.<br \/>\nAGENTDUMP \u2014 \u0410\u0433\u0435\u043d\u0442 \u0441\u0431\u0440\u043e\u0441\u0438\u043b \u0437\u0432\u043e\u043d\u044f\u0449\u0435\u0433\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u0438.<br \/>\nAGENTLOGIN(channel) \u2014 \u0410\u0433\u0435\u043d\u0442 \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0438\u043b\u0441\u044f. \u041a\u0430\u043d\u0430\u043b \u0437\u0430\u043f\u0438\u0441\u0430\u043d.<br \/>\nAGENTLOGOFF(channel|logintime) \u2014 \u0430\u0433\u0435\u043d\u0442 \u0432\u044b\u0448\u0435\u043b.<br \/>\nCOMPLETEAGENT(holdtime|calltime|origposition) \u2014 \u0410\u0431\u043e\u043d\u0435\u043d\u0442 \u0431\u044b\u043b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d \u0441 \u0430\u0433\u0435\u043d\u0442\u043e\u043c, \u0438 \u0437\u0432\u043e\u043d\u043e\u043a \u0431\u044b\u043b \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d \u0430\u0433\u0435\u043d\u0442\u043e\u043c. \u0412\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u043e\u043c \u0438 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0437\u0432\u043e\u043d\u044f\u0449\u0435\u0433\u043e \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. (data1,data2,data3)<br \/>\nCOMPLETECALLER(holdtime|calltime|origposition) \u2014 \u0410\u0431\u043e\u043d\u0435\u043d\u0442 \u0431\u044b\u043b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d \u0441 \u0430\u0433\u0435\u043d\u0442\u043e\u043c, \u0438 \u0437\u0432\u043e\u043d\u043e\u043a \u0431\u044b\u043b \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u043e\u043c. \u0412\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u043e\u043c \u0438 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0437\u0432\u043e\u043d\u044f\u0449\u0435\u0433\u043e \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. (data1,data2,data3)<br \/>\nCONFIGRELOAD \u2014 \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 asterisk -rx reload)<br \/>\nCONNECT(holdtime|bridgedchanneluniqueid|ringtime) \u2014 \u0410\u0431\u043e\u043d\u0435\u043d\u0442 \u0431\u044b\u043b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d \u0441 \u0430\u0433\u0435\u043d\u0442\u043e\u043c. Holdtime \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0434\u0430\u043b \u0430\u0431\u043e\u043d\u0435\u043d\u0442. bridgedchanneluniqueID  \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 unique ID \u0430\u0433\u0435\u043d\u0442\u0430 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0442\u0438\u043b \u043d\u0430 \u0437\u0432\u043e\u043d\u043e\u043a. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0437\u0432\u043e\u043d\u043a\u0443 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. Ringtime \u0412\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u044f \u0442\u0440\u0443\u0431\u043a\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c(\u0432\u0438\u0434\u0438\u043c\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043a\u043e\u0433\u0434\u0430 \u0438\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0434\u043e\u043b\u0433\u043e \u043f\u0438\u043b\u0438\u043a\u0430\u0435\u0442).<br \/>\nENTERQUEUE(url|callerid) \u2014 \u0417\u0432\u043e\u043d\u043e\u043a \u043f\u0440\u0438\u0448\u0435\u043b \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c. \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f URL (\u0435\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u043d) \u0438 Caller*ID.<br \/>\nEXITEMPTY(position|origposition|waittime) \u2014 \u0410\u0431\u043e\u043d\u0435\u043d\u0442 \u0432\u044b\u0448\u0435\u043b \u0438\u0437 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0430\u0433\u0435\u043d\u0442\u043e\u0432, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435. position \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0441 \u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0432\u044b\u043a\u0438\u043d\u0443\u043b\u043e \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0430, origposition &#8211; \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438,  waittime \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0430\u0431\u043e\u043d\u0435\u043d\u0442 \u0436\u0434\u0430\u043b \u043f\u043e\u043a\u0430 \u0435\u0433\u043e \u043d\u0435 \u0432\u044b\u043a\u0438\u043d\u0443\u043b\u043e.<br \/>\nEXITWITHKEY(key|position|origposition|waittime) \u2014 \u0410\u0431\u043e\u043d\u0435\u043d\u0442 \u043d\u0430\u0436\u0430\u043b \u043a\u043d\u043e\u043f\u043a\u0443 \u0432\u044b\u0445\u043e\u0434\u0430 \u0438\u0437 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043d\u043e\u043f\u043a\u0430 \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0432\u044b\u0445\u043e\u0434\u0430, \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0438 \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438.<br \/>\nEXITWITHTIMEOUT(position|origposition|waittime) \u2014 \u0410\u0431\u043e\u043d\u0435\u043d\u0442 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u043e\u0448\u0435\u043d \u0438\u0437 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043f\u043e \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0443(\u043e\u0447\u0435\u043d\u044c \u0434\u043e\u043b\u0433\u043e \u0436\u0434\u0430\u043b). \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0432\u044b\u0445\u043e\u0434\u0430, \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0438 \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f.<br \/>\nQUEUESTART \u2014 \u041e\u0447\u0435\u0440\u0435\u0434\u0438 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438.<br \/>\nREMOVEMEMBER \u2014 \u0410\u0433\u0435\u043d\u0442 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0437 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u041f\u043e\u043b\u0435 \u043a\u0430\u043d\u0430\u043b\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043c\u044f \u0430\u0433\u0435\u043d\u0442\u0430 \u0443\u0448\u0435\u0434\u0448\u0435\u0433\u043e \u0438\u0437 \u043e\u0447\u0435\u0440\u0435\u0434\u0438.<br \/>\nRINGNOANSWER(ringtime) \u2014 \u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0434\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u043c\u0443 \u0430\u0433\u0435\u043d\u0442\u0443(\u0432 \u043c\u0441), \u0430\u0433\u0435\u043d\u0442 \u043d\u0435 \u0432\u0437\u044f\u043b \u0442\u0440\u0443\u0431\u043e\u0447\u043a\u0443. \u041f\u043b\u043e\u0445\u043e\u0439 \u0430\u0433\u0435\u043d\u0442!;)<br \/>\nSYSCOMPAT -\u0417\u0432\u043e\u043d\u043e\u043a \u043e\u0442\u0432\u0435\u0447\u0435\u043d \u0430\u0433\u0435\u043d\u0442\u043e\u043c, \u043d\u043e \u0437\u0432\u043e\u043d\u043e\u043a \u0431\u044b\u043b \u0441\u0431\u0440\u043e\u0448\u0435\u043d \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u0430\u043d\u0430\u043b\u044b \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b.<br \/>\nTRANSFER(extension|context|holdtime|calltime|origposition) \u2014 \u0417\u0432\u043e\u043d\u044f\u0449\u0438\u0439 \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u043e\u0432\u0430\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u044d\u043a\u0441\u0442\u0435\u043d\u0448\u0435\u043d. \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438 \u044d\u043a\u0441\u0442\u0435\u043d\u0448\u0435\u043d. \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0412\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0438 \u043e\u0431\u0449\u0430\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0437\u0432\u043e\u043d\u043a\u0430, \u0442\u0430\u043a\u0436\u0435 \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0437\u043e\u043d\u044f\u0449\u0435\u0433\u043e \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438. \u041f\u0430\u0416\u0430\u041b\u0443\u0419\u0441\u0422\u0430 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u0447\u0442\u043e \u0442\u0440\u0430\u043d\u0441\u0444\u0435\u0440 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044b\u0439 SIP UA \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0440\u0435\u0438\u043d\u0432\u0430\u0439\u0442\u043e\u0432 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u0438\u0434\u0438\u043c \u0430\u0441\u0442\u0435\u0440\u0443. \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0442\u044c \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u043c \u043d\u0430 100% \u0447\u0442\u043e \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0442\u0440\u0430\u043d\u0441\u0444\u0435\u0440\u0430 \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0430\u0441\u0442\u0435\u0440\u0430.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 extconfig.conf<br \/>\nqueue_log => odbc,asterisk<br \/>\n\u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043a\u0435 module reload \u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0447\u043d\u0443\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 MySQL \u0442\u0430\u0431\u043b\u0438\u0446\u0435 queue_log.<\/p>\n<p>2. Realtime queues<br \/>\n\u041c\u043e\u0436\u043d\u043e \u0441\u043e\u0432\u043c\u0435\u0449\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439. \u0415\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u043d\u0430 \u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c, \u0442\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u043d\u0438\u0435 \u043e\u0442\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439. \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0430\u0433\u0435\u043d\u0442\u043e\u0432(\u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0448\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0438\u0437 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0430 \u043d\u0438\u043a\u0430\u043a)<\/p>\n<p>\u041f\u0440\u0430\u0432\u0438\u043c extconfig.conf<br \/>\nqueues => odbc,asterisk<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443<br \/>\n<code><br \/>\nCREATE TABLE IF NOT EXISTS `queues` (<br \/>\n  `name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `musiconhold` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `announce` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `context` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `timeout` int(11) DEFAULT NULL,<br \/>\n  `monitor_type` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `monitor_format` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `queue_youarenext` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `queue_thereare` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `queue_callswaiting` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `queue_holdtime` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `queue_minutes` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `queue_seconds` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `queue_lessthan` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `queue_thankyou` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `queue_reporthold` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `announce_frequency` tinyint(2) DEFAULT NULL,<br \/>\n  `announce_round_seconds` int(11) DEFAULT NULL,<br \/>\n  `announce_holdtime` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `retry` tinyint(2) DEFAULT NULL,<br \/>\n  `wrapuptime` int(11) DEFAULT NULL,<br \/>\n  `maxlen` int(11) DEFAULT NULL,<br \/>\n  `servicelevel` int(11) DEFAULT NULL,<br \/>\n  `strategy` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `joinempty` tinyint(1) DEFAULT '0',<br \/>\n  `leavewhenempty` tinyint(1) DEFAULT '1',<br \/>\n  `eventmemberstatus` tinyint(1) DEFAULT NULL,<br \/>\n  `eventwhencalled` varchar(6) COLLATE utf8_unicode_ci DEFAULT 'vars',<br \/>\n  `reportholdtime` tinyint(1) DEFAULT NULL,<br \/>\n  `memberdelay` int(11) DEFAULT NULL,<br \/>\n  `weight` int(11) DEFAULT NULL,<br \/>\n  `timeoutrestart` tinyint(1) DEFAULT NULL,<br \/>\n  `periodic_announce` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,<br \/>\n  `periodic_announce_frequency` int(11) DEFAULT NULL,<br \/>\n  `ringinuse` tinyint(1) DEFAULT NULL,<br \/>\n  `setinterfacevar` tinyint(1) DEFAULT NULL,<br \/>\n  `setqueuevar` tinyint(1) NOT NULL,<br \/>\n  `setqueueentryvar` tinyint(1) NOT NULL,<br \/>\n  PRIMARY KEY (`name`)<br \/>\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;<br \/>\n<\/code><\/p>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0435\u0439 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435.<\/p>\n<p>\u0423\u0447\u0442\u0438\u0442\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<br \/>\nqueue reload parameters<\/p>\n<p>3. Realtime Queues Members<br \/>\n\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 extconfig.conf<br \/>\nqueue_members => odbc,asterisk<br \/>\n\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443<br \/>\n<code><br \/>\nCREATE TABLE `queue_members` (<br \/>\n `uniqueid` int(10) unsigned NOT NULL AUTO_INCREMENT,<br \/>\n `membername` varchar(40) DEFAULT NULL,<br \/>\n `queue_name` varchar(128) DEFAULT NULL,<br \/>\n `interface` varchar(128) DEFAULT NULL,<br \/>\n `penalty` int(11) DEFAULT NULL,<br \/>\n `paused` int(11) DEFAULT NULL,<br \/>\n PRIMARY KEY (`uniqueid`),<br \/>\n UNIQUE KEY `queue_interface` (`queue_name`,`interface`)<br \/>\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci<br \/>\n<\/code><br \/>\n\u041d\u0430\u043f\u043e\u043c\u043d\u044e \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0430, \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u043c \u0432 \u0432\u0438\u0434\u0435 INSERT\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443! <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 \u043a\u043e\u043b-\u0446\u0435\u043d\u0442\u0440\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c Queues(\u043e\u0447\u0435\u0440\u0435\u0434\u0438). \u041a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u043e\u0432 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0437\u0434\u0435\u0441\u044c. \u041d\u043e \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043a\u043e\u0435-\u043a\u0430\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 \u0411\u0414(MySQL). \u041e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0442\u0435\u043d\u044c\u043a\u043e \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0438\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u0441\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0443\u043f\u0443\u0441\u0442\u0438\u043b \u043f\u0438\u0448\u0438\u0442\u0435. \u0421\u043f\u0430\u0441\u0438\u0431\u043e. 1. Realtime Queue log 2. Realtime Queues &hellip; <a href=\"https:\/\/bos-info.com\/?p=652\">\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438 \u0447\u0438\u0442\u0430\u043d\u043d\u044f <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/posts\/652"}],"collection":[{"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bos-info.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=652"}],"version-history":[{"count":5,"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/posts\/652\/revisions"}],"predecessor-version":[{"id":889,"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/posts\/652\/revisions\/889"}],"wp:attachment":[{"href":"https:\/\/bos-info.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bos-info.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bos-info.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}