Ok based on the information that you provided the issue is the following:
For the incoming calls the system is using the native OneTouch monitor feature. (The first *1 in the image https://www.dropbox.com/s/fzfsrjl0dlwegpg/Show%20features.JPG?dl=0)
check the the cli output:
tbagwell > User hit '*1' to record call. filename: wav,auto-1504111732-1504111720.39,m
When You park the call it goes through different contexts and the final context seems to invoke the Dynamic feature apprecord which use the macro-one-touch-record context to attempt the recording.
check the cli output:
tbagwell -- Feature Found: apprecord exten: apprecord
Then the macro-one-touch context use the php script to try to record the call as you can see in your log:
tbagwell Executing [s@macro-one-touch-record:2] System("SIP/4001-0000001b", "/var/lib/asterisk/bin/one_touch_record.php SIP/4001-0000001b") in new stack
The PHP file parse your channel name to gather some variables
....
$callFileName = getVariable($channel, "CALLFILENAME");
.....
$callFileNameParts = explode("-", $callFileName);
$callFileNameExten = $callFileNameParts[1];
$callFileNameType = $callFileNameParts[0];
.....
//Start recording the channel
ot_debug("Recording Channel");
$mixMonDir = getVariable($channel, "MIXMON_DIR");
$year = getVariable($channel, "YEAR");
$month = getVariable($channel, "MONTH");
$day = getVariable($channel, "DAY");
$mixMonFormat = getVariable($channel, "MIXMON_FORMAT");
$mixMonPost = getVariable($channel, "MIXMON_POST");
ot_debug("MIXMON_DIR: {$mixMonDir}");
ot_debug("YEAR: {$year}");
ot_debug("MONTH: {$month}");
ot_debug("DAY: {$day}");
ot_debug("MIXMON_FORMAT: {$mixMonFormat}");
ot_debug("MIXMON_POST: {$mixMonPost}");
// Setting in both channels in case a subsequent park or attended transfer of one
$astman->SetVar($bridgePeer, "ONETOUCH_REC", "RECORDING");
$astman->SetVar($channel, "ONETOUCH_REC", "RECORDING");
$astman->SetVar($bridgePeer, "REC_STATUS", "RECORDING");
$astman->SetVar($channel, "REC_STATUS", "RECORDING");
$astman->SetVar($channel, "AUDIOHOOK_INHERIT(MixMonitor)", "yes");
$astman->SetVar($bridgePeer, "AUDIOHOOK_INHERIT(MixMonitor)", "yes");
But those variables weren't defined by the last context used by the system so when the PHP script tries to record invoking this line:
$astman->mixmonitor($channel, "{$mixMonDir}{$year}/{$month}/{$day}/{$callFileName}.{$mixMonFormat}", "a", $mixMonPost, rand());
Only $mixMonFormat is populated thats why in the cli you see the name as: ///.wav and it produces the error:
tbagwell [2017-08-30 11:50:33] WARNING[17732]: file.c:1230 ast_writefile: Unable to open file ///.wav: Permission denied
So, to solve this you can do:
I cannot tell you the exact solution since I don't have any issabel system to try it .