{"id":639,"date":"2014-07-31T08:48:16","date_gmt":"2014-07-31T06:48:16","guid":{"rendered":"http:\/\/bos-info.com\/?p=639"},"modified":"2014-08-06T10:39:41","modified_gmt":"2014-08-06T08:39:41","slug":"cel","status":"publish","type":"post","link":"https:\/\/bos-info.com\/?p=639","title":{"rendered":"CEL"},"content":{"rendered":"<p>\u041d\u0430 \u043f\u043e\u0432\u0435\u0441\u0442\u043a\u0435 \u0434\u043d\u044f Channel Event Logging!!<br \/>\n<strong>\u041f\u043b\u0430\u043d \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439:<\/strong><br \/>\n CEL \u0441 \u0447\u0435\u043c \u0435\u0433\u043e \u0435\u0434\u044f\u0442<br \/>\n \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<br \/>\n \u041f\u043e\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u043e\u0431\u044b\u0442\u0438\u0439<br \/>\n CELGenUserEvent<br \/>\n cel.conf<br \/>\n cel with ODBC(mysql)<br \/>\n \u041b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430<br \/>\n<!--more--><\/p>\n<p>CEL, \u0438\u043b\u0438 Channel Event Logging, \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043c\u043e\u0447\u044c \u0440\u0435\u0448\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u0432, \u0432 CDR \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0430: &#8220;Start&#8221;, &#8220;Answer&#8221;, &#8220;End&#8221;. Billing time \u044d\u0442\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443  &#8220;Answer&#8221; \u0438 &#8220;End&#8221;, \u043e\u0431\u0449\u0430\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0437\u0432\u043e\u043d\u043a\u0430 \u044d\u0442\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 &#8220;Start&#8221; \u0438 &#8220;End&#8221;. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u0437\u0432\u043e\u043d\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0430 \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u0441\u043e\u0432\u0430\u043d, \u0432\u043a\u043b \u0432 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e \u0438\u0442\u0434. \u041b\u044e\u0434\u0438 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u043b\u0438 \u043a\u043e\u0441\u0442\u044b\u043b\u0438,  \u043d\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f CEL&#8230;<br \/>\n\u0424\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f CEL \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0434\u043b\u044f \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0430 \u0444\u043e\u0440\u043c\u0443.<br \/>\nCDR \u0438 AMI \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439, CEL \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0430. <\/p>\n<p>\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 CEL<br \/>\nCHAN_START &#8211; \u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u0430<br \/>\nCHAN_END   &#8211; \u0412\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u043d\u0430\u043b \u0431\u044b\u043b \u0437\u0430\u043a\u0440\u044b\u0442<br \/>\nANSWER     &#8211; \u0412\u0440\u0435\u043c\u044f \u043e\u0442\u0432\u0435\u0442\u0430 (\u0441\u043d\u044f\u043b\u0438 \u0442\u0440\u0443\u0431\u043a\u0443)<br \/>\nHANGUP     &#8211; \u0412\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u0442\u0440\u0443\u0431\u043a\u0443 \u0431\u0440\u043e\u0441\u0438\u043b\u0438<br \/>\nCONF_ENTER &#8211; \u0412\u0440\u0435\u043c\u044f \u0432\u043a\u043b \u043a\u0430\u043d\u0430\u043b\u0430 \u0432 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e<br \/>\nCONF_EXIT  &#8211; \u0412\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u043d\u0430\u043b \u0431\u044b\u043b \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d \u0438\u0437 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438<br \/>\nCONF_START &#8211; \u0412\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a \u0437\u0430\u0448\u0435\u043b \u0432 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e<br \/>\nCONF_END   &#8211; \u0412\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a \u0432\u044b\u0448\u0435\u043b \u0438\u0437 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438<br \/>\nAPP_START  &#8211; \u0412\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c<br \/>\nAPP_END    &#8211; \u0412\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c<br \/>\nPARK_START &#8211; \u0412\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u0437\u043e\u0432 \u0431\u044b\u043b \u043f\u0440\u0438\u043f\u0430\u0440\u043a\u043e\u0432\u0430\u043d<br \/>\nPARK_END   &#8211; \u0412\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u0437\u043e\u0432 \u0441\u043d\u044f\u043b\u0438 \u0441 \u043f\u0430\u0440\u043a\u043e\u0432\u043a\u0438<br \/>\nBRIDGE_START &#8211; \u0412\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0431\u0440\u0438\u0434\u0436\u043e\u0432\u0430\u043d\u0438\u0435<br \/>\nBRIDGE_END   &#8211; \u0412\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c \u0431\u0440\u0438\u0434\u0436\u043e\u0432\u0430\u043d\u0438\u0435<br \/>\nBRIDGE_UPDATE &#8211; \u0417\u0430\u043c\u0435\u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0430<br \/>\n3WAY_START    &#8211; \u041d\u0430\u0447\u0430\u043b\u043e 3-\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438<br \/>\n3WAY_END      &#8211; \u041a\u043e\u0433\u0434\u0430 1 \u0438\u043b\u0438 \u0432\u0441\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 3-\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0432\u044b\u0448\u0435\u043b.<br \/>\nBLINDTRANSFER &#8211; \u0412\u0440\u0435\u043c\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u0446\u0438\u0438 \u0441\u043b\u0435\u043f\u043e\u0433\u043e \u0442\u0440\u0430\u043d\u0441\u0444\u0435\u0440\u0430<br \/>\nATTENDEDTRANSFER &#8211; \u0412\u0440\u0435\u043c\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u0446\u0438\u0438 \u0442\u0440\u0430\u043d\u0441\u0444\u0435\u0440\u0430 \u0441 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c)<br \/>\nTRANSFER         &#8211; \u041e\u0431\u0449\u0435\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0442\u0440\u0430\u043d\u0441\u0444\u0435\u0440\u0430<br \/>\nPICKUP           &#8211; \u041a\u0430\u043d\u0430\u043b \u0431\u044b\u043b \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d \u043f\u0438\u0440\u043e\u043c<br \/>\nFORWARD          &#8211; \u041a\u0430\u043d\u0430\u043b \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043a\u0443\u0434\u0430-\u0442\u043e \u0435\u0449\u0435<br \/>\nHOOKFLASH        &#8211; \u0421\u043e\u0431\u044b\u0442\u0438\u0435 hookflash \u043d\u0430 DAHDI \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435<br \/>\nLINKEDID_END     &#8211; \u0421\u043e\u0431\u044b\u0442\u0438\u0435 \u043a\u043e\u0433\u0434\u0430 \u0443\u0434\u0430\u043b\u0435\u043d \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043a\u0430\u043d\u0430\u043b \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c linkedid<br \/>\nUSER_DEFINED     &#8211; \u0422\u0440\u0438\u0433\u0433\u0435\u0440 \u0441 \u0434\u0438\u0430\u043b\u043f\u0430\u043d\u0430, \u0438\u043c\u044f \u0437\u0430\u0434\u0430\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c <\/p>\n<p>\u041f\u043e\u043b\u044f \u0422\u0430\u0431\u043b\u0438\u0446\u044b CEL<br \/>\neventtype \u0418\u043c\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f(\u0441\u043c \u0432\u044b\u0448\u0435)<br \/>\neventtime \u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f<br \/>\ncid_name  CID name<br \/>\ncid_num   CID number<br \/>\ncid_ani   CID ANI<br \/>\ncid_rdnis CID RDNIS<br \/>\ncid_dnid  CID DNID<br \/>\nexten     extension \u0432 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0435<br \/>\ncontext   context \u0432 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0435<br \/>\nchanname  \u0418\u043c\u044f \u043a\u0430\u043d\u0430\u043b\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 \/>\nappname   \u0418\u043c\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<br \/>\nappdata   \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<br \/>\namaflags  AMA \u0444\u043b\u0430\u0433\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c, \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c<br \/>\naccountcode \u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c.<br \/>\npeeraccount \u0417\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c, \u043f\u0438\u0440\u0443.<br \/>\nuniqueid    \u041a\u0430\u0436\u0434\u044b\u0435 \u043a\u0430\u043d\u0430\u043b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 unique ID, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f  \u0441 \u043d\u0438\u043c.<br \/>\nlinkedid    id \u0437\u0432\u043e\u043d\u043a\u0430, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0439<br \/>\nuserfield   \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c<br \/>\npeer        \u0414\u043b\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0434\u0432\u0443\u0445\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0442\u0443\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u044f \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430<br \/>\nuserdeftype \u0418\u043c\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c<br \/>\nextra       \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441 \u044d\u0442\u0438\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c.<\/p>\n<p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 CELGenUserEvent(eventname,extra) \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 CEL<br \/>\n\u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0438\u043c\u0435\u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a \u0434\u0430\u0436\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0443\u0433\u0430\u0442\u044c\u0441\u044f, \u0430 \u043c\u043e\u043b\u0447\u0430 \u0437\u0430\u043f\u0438\u0448\u0435\u0442 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435, \u0434\u0440\u0443\u0433\u0438\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u0432 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043d\u0435\u0442)<br \/>\nextra \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0435.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0433\u043b\u044f\u043d\u0435\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 cel.conf<br \/>\n<code><br \/>\n[general]<br \/>\n;\u0432\u043a\u043b cel<br \/>\nenable=yes<br \/>\n;\u0438\u0437 \u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c all.<br \/>\napps=dial,park<br \/>\n;\u043a\u0430\u043a\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c all. \u0415\u0441\u043b\u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0432\u043e\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c USER_DEFINED!!<br \/>\nevents=APP_START,CHAN_START,CHAN_END,ANSWER,HANGUP,BRIDGE_START,BRIDGE_END,USER_DEFINED<br \/>\n;\u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u0442\u044b, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u044b.\u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043d\u0430\u0447\u0430\u043b\u0430 \u044d\u043f\u043e\u0445\u0438,<br \/>\n; \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0434\u0430\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0442\u0430\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \"2009-06-23 17:02:35\"<br \/>\ndateformat = %F %T<\/p>\n<p>;\u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 AMI<br \/>\n[manager]<br \/>\n;\u0432\u043a\u043b\\\u0432\u044b\u043a\u043b<br \/>\nenabled=no<br \/>\n; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \"USER_DEFINED\" \u0432 EventName \u0445\u0438\u0434\u0435\u0440, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0435\u0442<br \/>\nshow_user_defined=yes<\/p>\n<p>;cel \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e radius<br \/>\n[radius]<br \/>\n;\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 GMT<br \/>\n;usegmtime=yes<br \/>\n;\u041c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u0430 radiusclient-ng<br \/>\n; \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \/etc\/radiusclient-ng\/radiusclient.conf<br \/>\n;radiuscfg => \/usr\/local\/etc\/radiusclient-ng\/radiusclient.conf<br \/>\n<\/code><\/p>\n<p>\/usr\/local\/etc\/asterisk\/cel_custom.conf &#8211; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0430 CSV \u0444\u0430\u0439\u043b\u0430. <\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 CEL \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0442\u043e\u0447\u0435\u043d \u043f\u043e\u0434 \u0411\u0414, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c cel_odbc. <a href=\"https:\/\/bos-info.com\/asterisk\/mysqlasterisk.html\" title=\"MySQL+Asterisk\">\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c ODBC<\/a><br \/>\n\u043f\u0440\u0430\u0432\u0438\u043c \/usr\/local\/etc\/asterisk\/cel_odbc.conf:<br \/>\n<code><br \/>\n[asterisk]<br \/>\nconnection=asterisk<br \/>\ntable=cel<br \/>\nloguniqueid=yes<br \/>\n<\/code><\/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 `cel` (<br \/>\n  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,<br \/>\n  `eventtype` varchar(30) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `eventtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,<br \/>\n  `userdeftype` varchar(255) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `cid_name` varchar(80) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `cid_num` varchar(80) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `cid_ani` varchar(80) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `cid_rdnis` varchar(80) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `cid_dnid` varchar(80) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `exten` varchar(80) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `context` varchar(80) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `channame` varchar(80) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `appname` varchar(80) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `appdata` varchar(80) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `amaflags` int(11) NOT NULL,<br \/>\n  `accountcode` varchar(20) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `peeraccount` varchar(20) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `uniqueid` varchar(150) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `linkedid` varchar(150) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `userfield` varchar(255) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  `peer` varchar(80) COLLATE utf8_unicode_ci NOT NULL,<br \/>\n  UNIQUE KEY `id` (`id`)<br \/>\n) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;<br \/>\n<\/code><br \/>\n\u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c cel:<br \/>\n<code><br \/>\nmodule reload cel_odbc.so<br \/>\n<\/code><\/p>\n<p>\u041b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430:<br \/>\nhttps:\/\/wiki.asterisk.org\/wiki\/pages\/viewpage.action?pageId=5242932<br \/>\nhttp:\/\/subnets.ru\/blog\/?p=4872<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430 \u043f\u043e\u0432\u0435\u0441\u0442\u043a\u0435 \u0434\u043d\u044f Channel Event Logging!! \u041f\u043b\u0430\u043d \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439: CEL \u0441 \u0447\u0435\u043c \u0435\u0433\u043e \u0435\u0434\u044f\u0442 \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u041f\u043e\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u043e\u0431\u044b\u0442\u0438\u0439 CELGenUserEvent cel.conf cel with ODBC(mysql) \u041b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430<\/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":[61,36,35,34],"_links":{"self":[{"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/posts\/639"}],"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=639"}],"version-history":[{"count":5,"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/posts\/639\/revisions"}],"predecessor-version":[{"id":659,"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/posts\/639\/revisions\/659"}],"wp:attachment":[{"href":"https:\/\/bos-info.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bos-info.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bos-info.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}