short version…
I have agi debuging enabled ( agi set debug on ) but $agi->conlog() does not do what it used to do…
long version…
I migrated from 12.x to 13.x ( I think I was at 12.x… not 100% sure )
I have some code in my script that I use for debuging…
// display message in log ( if phpagi debug is enabled.
function pr($data)
{
global $agi;
$RC = $agi->conlog(print_r($data,1));
return $RC;
}
I used to get things in the /var/log/asterisk/full that had something like:
AGI Object
(
[request] => Array
(
[agi_request] => callscreener.agi
[agi_channel] => Motif/+18175551212-da0a
[agi_language] => en
[agi_type] => Motif
[agi_uniqueid] => 1461236941.2
[agi_version] => 13.8.0
[agi_callerid] => 8175551212
[agi_calleridname] => Daddy Cell
[agi_callingpres] => 0
[agi_callingani2] => 0
[agi_callington] => 0
[agi_callingtns] => 0
[agi_dnid] => unknown
[agi_rdnis] => unknown
[agi_context] => callscreener
[agi_extension] => s
[agi_priority] => 2
[agi_enhanced] => 0.0
[agi_accountcode] =>
[agi_threadid] => 140639512794880
)
[config] => Array
(
[festival] => Array
(
[text2wave] => /usr/src/festival/bin/text2wave
[tempdir] => /var/lib/asterisk/sounds/tmp/
)
[phpagi] => Array
(
[error_handler] => 1
[debug] =>
[admin] =>
[tempdir] => /tmp
)
)
[asmanager] =>
.
.
.
which is a result of:
$agi->conlog(print_r($data,1));
now with 13.x ( latest ) and agi set debug on
I only get:
pbx.c: Executing [s@callscreener:2] AGI("Motif/+18175551212-da0a", "callscreener.agi") in new stack
res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/callscreener.agi
res_agi.c: <Motif/+18176017338-da0a>AGI Tx >> agi_request: callscreener.agi
res_agi.c: <Motif/+18176017338-da0a>AGI Tx >> agi_channel: Motif/+18176017338-da0a
res_agi.c: <Motif/+18176017338-da0a>AGI Tx >> agi_language: en
res_agi.c: <Motif/+18176017338-da0a>AGI Tx >> agi_type: Motif
res_agi.c: <Motif/+18176017338-da0a>AGI Tx >> agi_uniqueid: 1461236941.2
res_agi.c: <Motif/+18176017338-da0a>AGI Tx >> agi_version: 13.8.0
res_agi.c: <Motif/+18176017338-da0a>AGI Tx >> agi_callerid: 8175551212
res_agi.c: <Motif/+18176017338-da0a>AGI Tx >> agi_calleridname: Daddy Cell
… so I ‘see’ the effect of agi set debug on… BUT I don’t get the
$agi->conlog()
executing like it used too.
What am I missing. I vaguely recall a web page setting for the agi debug stuff on or off with the older version of freepbx but I can’t find that any more.
Thanks - jack