Displaying 1 result from an estimated 1 matches for "vm_conf_line".
2005 Jul 10
1
VM Outcall: Rube Goldberg Edition
...ontext="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) == 0)) {
next;
}
($tmp_vm_context) = $vm_conf_line =~ /\[(.*)\]/;
if(defined($tmp_vm_context)) {
if($current_vm_context ne "") {...