Вот дебаг:
Скрытый текст |
---|
-- Executing [10000555@miko_ajam:1] NoCDR("Local/10000555@miko_ajam-00000017;2", "") in new stack -- Executing [10000555@miko_ajam:2] NoOp("Local/10000555@miko_ajam-00000017;2", "internal calling application: 10000555 1C_CDR") in new stack -- Executing [10000555@miko_ajam:3] AGI("Local/10000555@miko_ajam-00000017;2", "1C_CDR.php") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/1C_CDR.php <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_request: 1C_CDR.php <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_channel: Local/10000555@miko_ajam-00000017;2 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_language: en <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_type: Local <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_uniqueid: 1543405938.47 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_version: 11.20.0 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_callerid: unknown <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_calleridname: unknown <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_callingpres: 67 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_callingani2: 0 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_callington: 0 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_callingtns: 0 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_dnid: unknown <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_rdnis: unknown <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_context: miko_ajam <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_extension: 10000555 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_priority: 3 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_enhanced: 0.0 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_accountcode: <Local/10000555@miko_ajam-00000017;2>AGI Tx >> agi_threadid: 140012013995776 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE v1 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=1 (SIP/102) <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE v2 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=1 (2018-11-27) <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE v3 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=1 (2018-11-28) <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE ASTVERSION <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=1 (11.20.0) <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE v4 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=1 (102) <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE CDRDBNAME <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=1 (asteriskcdrdb) <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE AMPDBENGINE <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=1 (mysql) <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE AMPDBHOST <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=1 (localhost) <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE AMPDBUSER <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=1 (asteriskuser) <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE AMPDBPASS <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=1 (Synteth1c) <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE AMPDBFILE <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=0 <Local/10000555@miko_ajam-00000017;2>AGI Rx << GET VARIABLE AMPDBNAME <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=1 (asterisk) <Local/10000555@miko_ajam-00000017;2>AGI Rx << EXEC UserEvent FromCDR,Channel:SIP/102,Date:2018-11-27,Lines:2018-11-27\ 08:13:04@.@102@.@136@.@SIP/102-00000000@.@SIP/136-00000001@.@0@.@NO\ ANSWER@ -- AGI Script Executing Application: (UserEvent) Options: (FromCDR,Channel:SIP/102,Date:2018-11-27,Lines:2018-11-27 08:13:04@.@102@.@136@.@SIP/102-00000000@.@SIP/136-00000001@.@0@.@NO ANSWER@ <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=0 <Local/10000555@miko_ajam-00000017;2>AGI Rx << EXEC UserEvent Refresh1CHistory,Channel:SIP/102,Date:2018-11-27 -- AGI Script Executing Application: (UserEvent) Options: (Refresh1CHistory,Channel:SIP/102,Date:2018-11-27) <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=0 <Local/10000555@miko_ajam-00000017;2>AGI Rx << ANSWER > Channel Local/10000555@miko_ajam-00000017;1 was answered. > Launching NoCDR() on Local/10000555@miko_ajam-00000017;1 <Local/10000555@miko_ajam-00000017;2>AGI Tx >> 200 result=-1 -- <Local/10000555@miko_ajam-00000017;2>AGI Script 1C_CDR.php completed, returning 4 == Spawn extension (miko_ajam, 10000555, 3) exited non-zero on 'Local/10000555@miko_ajam-00000017;2' -- Executing [h@miko_ajam:1] ExecIf("Local/10000555@miko_ajam-00000017;2", "0?Set(CDR(userfield)=)") in new stack -- Executing [h@miko_ajam:2] ExecIf("Local/10000555@miko_ajam-00000017;2", "0?Set(CDR(recordingfile)=)") in new stack |