Новичок
Сообщений: 10
Авторитет:
60
Регистрация: 19.07.2016
Цитата Портнов Алексей написал: Выполните аналогичные правки. Цифру 4 замените на 7 .
После изменений в панели выходит ошибка, ошибки отправки факса, хотя сам факс отправляется и принимается на обратной стороне.
В истории факсы тоже уже не отображаются:
Код > [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-08-03 09:31:30'},'','','','','','10000444','miko_ajam','Local/10000444@miko_ajam-00000012;1','','',3,'','1470205890.46','1470205890.46','','','')]
> [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-08-03 09:31:30'},'','','','','','10000444','miko_ajam','Local/10000444@miko_ajam-00000012;2','','',3,'','1470205890.47','1470205890.46','','','')]
-- Executing [10000444@miko_ajam:1] NoCDR("Local/10000444@miko_ajam-00000012;2", "") in new stack
-- Executing [10000444@miko_ajam:2] NoOp("Local/10000444@miko_ajam-00000012;2", "internal calling application: 10000444 1C_HistoryFax") in new stack
-- Executing [10000444@miko_ajam:3] AGI("Local/10000444@miko_ajam-00000012;2", "1C_HistoryFax.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/1C_HistoryFax.php
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_request: 1C_HistoryFax.php
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_channel: Local/10000444@miko_ajam-00000012;2
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_language: en
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_type: Local
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_uniqueid: 1470205890.47
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_version: 11.13.0
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_callerid: unknown
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_calleridname: unknown
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_callingpres: 67
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_callingani2: 0
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_callington: 0
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_callingtns: 0
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_dnid: unknown
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_rdnis: unknown
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_context: miko_ajam
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_extension: 10000444
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_priority: 3
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_enhanced: 0.0
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_accountcode:
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> agi_threadid: 47368024934720
<Local/10000444@miko_ajam-00000012;2>AGI Tx >>
<Local/10000444@miko_ajam-00000012;2>AGI Rx << GET VARIABLE v1
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=1 (SIP/113)
<Local/10000444@miko_ajam-00000012;2>AGI Rx << GET VARIABLE v2
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=1 (2016-07-03)
<Local/10000444@miko_ajam-00000012;2>AGI Rx << GET VARIABLE v3
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=1 (2016-08-04)
<Local/10000444@miko_ajam-00000012;2>AGI Rx << GET VARIABLE ASTVERSION
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=1 (11.13.0)
<Local/10000444@miko_ajam-00000012;2>AGI Rx << GET VARIABLE CDRDBNAME
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=0
<Local/10000444@miko_ajam-00000012;2>AGI Rx << GET VARIABLE AMPDBENGINE
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=1 (mysql)
<Local/10000444@miko_ajam-00000012;2>AGI Rx << GET VARIABLE AMPDBHOST
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=1 (localhost)
<Local/10000444@miko_ajam-00000012;2>AGI Rx << GET VARIABLE AMPDBUSER
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=1 (asteriskuser)
<Local/10000444@miko_ajam-00000012;2>AGI Rx << GET VARIABLE AMPDBPASS
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=1 (pass)
<Local/10000444@miko_ajam-00000012;2>AGI Rx << GET VARIABLE AMPDBFILE
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=0
<Local/10000444@miko_ajam-00000012;2>AGI Rx << GET VARIABLE AMPDBNAME
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=1 (asterisk)
<Local/10000444@miko_ajam-00000012;2>AGI Rx << EXEC UserEvent FaxFromCDR,Channel:SIP/113,Date:2016-07-03,Lines:2016-07-26\ 12:04:39@.@375172008625@.@375172008625@.@@.@1469523879.2503@.@Hangup@.@"CID:0001001"\ <375172008625>@.@1469523846.2496@.@.....
-- AGI Script Executing Application: (UserEvent) Options: (FaxFromCDR,Channel:SIP/113,Date:2016-07-03,Lines:2016-07-26 12:04:39@.@375172008625@.@375172008625@.@@.@1469523879.2503@.@Hangup@.@CID:0001001 <375172008625>@.@1469523846.2496@.@.....)
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=0
<Local/10000444@miko_ajam-00000012;2>AGI Rx << EXEC UserEvent Refresh1CFAXES,Channel:SIP/113,Date:2016-07-03
-- AGI Script Executing Application: (UserEvent) Options: (Refresh1CFAXES,Channel:SIP/113,Date:2016-07-03)
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=0
<Local/10000444@miko_ajam-00000012;2>AGI Rx << ANSWER
> Channel Local/10000444@miko_ajam-00000012;1 was answered.
> Launching NoCDR() on Local/10000444@miko_ajam-00000012;1
<Local/10000444@miko_ajam-00000012;2>AGI Tx >> 200 result=-1
> [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('ANSWER',{ts '2016-08-03 09:31:30'},'','','','','','10000444','miko_ajam','Local/10000444@miko_ajam-00000012;2','AGI','1C_HistoryFax.php',3,'','1470205890.47','1470205890.46','','','')]
> [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('ANSWER',{ts '2016-08-03 09:31:30'},'','','','','','10000444','miko_ajam','Local/10000444@miko_ajam-00000012;1','','',3,'','1470205890.46','1470205890.46','','','')]
> [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2016-08-03 09:31:30'},'','','','','','10000444','miko_ajam','Local/10000444@miko_ajam-00000012;1','','',3,'','1470205890.46','1470205890.46','','','')]
> [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2016-08-03 09:31:30'},'','','','','','10000444','miko_ajam','Local/10000444@miko_ajam-00000012;1','','',3,'','1470205890.46','1470205890.46','','','')]
-- <Local/10000444@miko_ajam-00000012;2>AGI Script 1C_HistoryFax.php completed, returning 4
И при попытке скачать старые (ранее отправленные факсы):
Код Файл с фиксимильным сообщением не найден на сервере ASTERISK.
Код -- Executing [10000666@miko_ajam:1] NoCDR("Local/10000666@miko_ajam-0000008b;2", "") in new stack
-- Executing [10000666@miko_ajam:2] NoOp("Local/10000666@miko_ajam-0000008b;2", "internal calling application: 10000666 1C_Download") in new stack
-- Executing [10000666@miko_ajam:3] AGI("Local/10000666@miko_ajam-0000008b;2", "1C_Download.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/1C_Download.php
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_request: 1C_Download.php
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_channel: Local/10000666@miko_ajam-0000008b;2
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_language: en
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_type: Local
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_uniqueid: 1470204811.662
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_version: 11.13.0
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_callerid: unknown
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_calleridname: unknown
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_callingpres: 67
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_callingani2: 0
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_callington: 0
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_callingtns: 0
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_dnid: unknown
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_rdnis: unknown
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_context: miko_ajam
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_extension: 10000666
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_priority: 3
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_enhanced: 0.0
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_accountcode:
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> agi_threadid: 47051207350592
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >>
> [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-08-03 09:13:31'},'','','','','','10000666','miko_ajam','Local/10000666@miko_ajam-0000008b;1','','',3,'','1470204811.661','1470204811.661','','','')]
> [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-08-03 09:13:31'},'','','','','','10000666','miko_ajam','Local/10000666@miko_ajam-0000008b;2','','',3,'','1470204811.662','1470204811.661','','','')]
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE v1
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=1 (SIP/113)
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE v2
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=1 (1469523879)
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE v3
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=0
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE v6
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=1 (FAX)
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE ASTVERSION
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=1 (11.13.0)
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE CDRDBNAME
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=0
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE AMPDBENGINE
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=1 (mysql)
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE AMPDBHOST
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=1 (localhost)
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE AMPDBUSER
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=1 (asteriskuser)
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE AMPDBPASS
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=1 (pass)
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE AMPDBFILE
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=0
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << GET VARIABLE AMPDBNAME
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=1 (asterisk)
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << EXEC UserEvent FailDownloadFax,Channel:SIP/113
-- AGI Script Executing Application: (UserEvent) Options: (FailDownloadFax,Channel:SIP/113)
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=0
<Local/10000666@miko_ajam-0000008b;2>AGI Rx << ANSWER
> Channel Local/10000666@miko_ajam-0000008b;1 was answered.
> Launching NoCDR() on Local/10000666@miko_ajam-0000008b;1
> [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('ANSWER',{ts '2016-08-03 09:13:31'},'','','','','','10000666','miko_ajam','Local/10000666@miko_ajam-0000008b;2','AGI','1C_Download.php',3,'','1470204811.662','1470204811.661','','','')]
<Local/10000666@miko_ajam-0000008b;2>AGI Tx >> 200 result=-1
> [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('ANSWER',{ts '2016-08-03 09:13:31'},'','','','','','10000666','miko_ajam','Local/10000666@miko_ajam-0000008b;1','','',3,'','1470204811.661','1470204811.661','','','')]
> [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2016-08-03 09:13:31'},'','','','','','10000666','miko_ajam','Local/10000666@miko_ajam-0000008b;1','','',3,'','1470204811.661','1470204811.661','','','')]
> [INS ERT IN TO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2016-08-03 09:13:31'},'','','','','','10000666','miko_ajam','Local/10000666@miko_ajam-0000008b;1','','',3,'','1470204811.661','1470204811.661','','','')]
-- <Local/10000666@miko_ajam-0000008b;2>AGI Script 1C_Download.php completed, returning 4
Изменено: Александр Мицкевич - 03.08.2016 09:35:02