Вы не авторизованы

Вы можете читать сообщения. Если вы хотите создать новую тему или присоединиться к обсуждению, пройдите процедуру регистрации или авторизуйтесь.

RSS
Не работает журнал
 
Собственно, не получается настроить журнал вызовов, вот кусок вывода debug agi
Код
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_request: 1C_CDR.php
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_channel: Local/10000555@miko_ajam-00000042;2
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_language: ru
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_type: Local
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_uniqueid: 1473985759.133
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_version: 1.8.32.3
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_callerid: unknown
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_calleridname: unknown
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_callingpres: 67
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_callingani2: 0
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_callington: 0
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_callingtns: 0
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_dnid: unknown
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_rdnis: unknown
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_context: miko_ajam
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_extension: 10000555
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_priority: 3
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_enhanced: 0.0
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_accountcode:
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> agi_threadid: 34431153152
<Local/10000555@miko_ajam-00000042;2>AGI Tx >>
<Local/10000555@miko_ajam-00000042;2>AGI Rx <<
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 510 Invalid or unknown command
<Local/10000555@miko_ajam-00000042;2>AGI Rx <<
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 510 Invalid or unknown command
<Local/10000555@miko_ajam-00000042;2>AGI Rx << Notice: Undefined index: PATH in /usr/local/share/asterisk/agi-bin/phpagi.php on line 1693
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 510 Invalid or unknown command
<Local/10000555@miko_ajam-00000042;2>AGI Rx <<
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 510 Invalid or unknown command
<Local/10000555@miko_ajam-00000042;2>AGI Rx << Notice: Undefined index: PATH in /usr/local/share/asterisk/agi-bin/phpagi.php on line 1693
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 510 Invalid or unknown command
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE v1
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=1 (SIP/999)
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE v2
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=1 (2016-09-13)
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE v3
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=1 (2016-09-14)
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE ASTVERSION
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=0
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE v4
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=1 (999)
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE CDRDBNAME
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=0
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE AMPDBENGINE
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=1 (mysql)
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE AMPDBHOST
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=1 (127.0.0.1)
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE AMPDBUSER
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=1 (asterisk)
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE AMPDBPASS
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=1 (password)
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE AMPDBFILE
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=0
<Local/10000555@miko_ajam-00000042;2>AGI Rx << GET VARIABLE AMPDBNAME
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=1 (asterisk)
<Local/10000555@miko_ajam-00000042;2>AGI Rx << EXEC UserEvent Refresh1CHistory,chan1c:,Date:
    -- AGI Script Executing Application: (UserEvent) Options: (Refresh1CHistory,chan1c:,Date:)
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=0
<Local/10000555@miko_ajam-00000042;2>AGI Rx << ANSWER
       > Channel Local/10000555@miko_ajam-00000042;1 was answered.
       > Launching NoCDR() on Local/10000555@miko_ajam-00000042;1
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 200 result=-1
[Sep 16 03:29:19] ERROR[-1]: utils.c:1343 ast_carefulwrite: write() returned error: Broken pipe
<Local/10000555@miko_ajam-00000042;2>AGI Rx << ​
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 510 Invalid or unknown command
[Sep 16 03:29:19] ERROR[-1]: utils.c:1343 ast_carefulwrite: write() returned error: Broken pipe
    -- <Local/10000555@miko_ajam-00000042;2>AGI Script 1C_CDR.php completed, returning 4
  == Spawn extension (miko_ajam, 10000555, 3) exited non-zero on 'Local/10000555@miko_ajam-00000042;2'

Судя по EXEC UserEvent Refresh1CHistory,chan1c:,Date: - у него даже переменные не выводятся, либо не определяются
chan1c - определил руками из темы на этом форуме.
В php тоже включил debug
Код
ini_set('display_errors',1);
error_reporting(E_ALL);
Изменено: Алексей Дешевов - 16.09.2016 03:45:03
 
Начните анализ с этих ошибок:
Код
<Local/10000555@miko_ajam-00000042;2>AGI Tx >> 510 Invalid or unknown command <Local/10000555@miko_ajam-00000042;2>AGI Rx << 
И этой ошибки:
Код
otice: Undefined index: PATH in /usr/local/share/asterisk/agi-bin/phpagi.php on line 1693
Примеры скриптов доступны по ссылке
http://wiki.miko.ru/astpanel:dialplan_miko_ajam
Читают тему (гостей: 1)