Displaying 1 result from an estimated 1 matches for "call_file_handl".
Did you mean:
call_file_handle
2005 Jul 10
1
VM Outcall: Rube Goldberg Edition
...box then don't
do anything.
# If there isn't already a .call file then create it.
#$call_file_name = "/tmp/" . $vm_box . ".call";
$call_file_name = "/var/spool/asterisk/outgoing/" . $vm_box .
".call";
if(!sysopen($call_file_handle, "$call_file_name",
O_WRONLY|O_CREAT|O_EXCL)) {
exit(0);
}
flock($call_file_handle, LOCK_EX);
# Set the access and modification times to be 10 years in the
future so
# Asterisk will ignore this file while we are doing stuff with it....