Displaying 1 result from an estimated 1 matches for "tmp_vm_context".
2005 Jul 10
1
VM Outcall: Rube Goldberg Edition
...email.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 "") {
       exit(0);
     }
     if($tmp_vm_context eq $vm_context) {
       $current_vm_context = $vm_context;
       next;
     }
   } else {
     if($current_vm_context eq $vm_context) {...