Spin off of
I have been using a custom [sub-record-check] that I placed in:
etc/asterisk/extensions_override_freepbx.conf but when we were required to switch to on demand recording (*1) instead of every call, the customization disappeared.
I found that *1 uses /var/lib/asterisk/bin/one_touch_record.php and the the filename variables are set there.
I tried to add the variable for CID name right after CID Number
$realCallerIdNum = getVariable($channel, "REALCALLERIDNUM"); // CID NAME added by miahac $cidName = getVariable($channel, "CALLERID(name)");
and on the line wher ethe callFileName is set
$callFileName = "ondemand-$dst-$fromExten-$cidName-$timestr-$uniqueid";
But this just gave me a –
Am I on the right path at all?
Any suggestions would be great. Not a PHP pro and do not know where the all caps VARIABLES are loaded from in /one_touch_record.php so I was trying to use the channel variable syntax from asterisk to and define the php variable.