| 164 |
|
|
| 165 |
$result = asterisk_write_file($callfile, $tmpfname); |
$result = asterisk_write_file($callfile, $tmpfname); |
| 166 |
if ($result === TRUE) { |
if ($result === TRUE) { |
| 167 |
chmod($tmpfname, 0644); |
chmod($tmpfname, 0777); |
| 168 |
$outgoing = CALL_SPOOL_DIR . DIRECTORY_SEPARATOR . basename($tmpfname); |
$outgoing = CALL_SPOOL_DIR . DIRECTORY_SEPARATOR . basename($tmpfname); |
| 169 |
// Move (NOT copy or create in) to outgoing spool. |
// Move (NOT copy or create in) to outgoing spool. |
| 170 |
if (rename($tmpfname, $outgoing)) { |
if (rename($tmpfname, $outgoing)) { |