Displaying 1 result from an estimated 1 matches for "vm_conf_file_handl".
Did you mean:
vm_conf_file_handle
2005 Jul 10
1
VM Outcall: Rube Goldberg Edition
...vm-notify.pl script:
===========================================================================
#!/usr/bin/perl -w
use Fcntl;
use Fcntl ":flock";
$dial_context="local-access";
($vm_box, $vm_context) = $ARGV[1] =~/(.*)\@(.*)/;
$current_vm_context = "";
if(!sysopen($vm_conf_file_handle, "/etc/asterisk/voicemail.conf", O_RDONLY))
{
printf("Cannot open /etc/asterisk/voicemail.conf!\n");
exit(1);
}
while($vm_conf_line = <$vm_conf_file_handle>) {
chomp($vm_conf_line);
if((substr($vm_conf_line,0,1) eq ";") || (length($vm_conf_line) ==...