No problem, I applied the patch and it still hangs up after it plays "Thank 
you". This is my new code block:

 if($correct eq 1) {
       $AGI->hangup_aware();
       if (-1 == $AGI->stream_file('auth-thankyou')) {
             open(fileOUT, ">>/var/log/asterisk/error.log");
             $logtime = gmtime(time);
             print fileOUT "-----------\n";
             print fileOUT "[$logtime]:Finished streaming?!\n";
       }
       $return_code = &validate_pin($pin, $account_code, $userid, $MAC);
       open(fileOUT, ">>/var/log/asterisk/error.log");
       $logtime = gmtime(time);
       print fileOUT "-----------\n";
       print fileOUT "[$logtime]:Return code $return_code\n";

       if($return_code eq 100) {
#         $query = "update associations set PIN = '$pin' where userid = 
'$userid' and MAC = '$MAC'";
#         $stah = $dbh->query($query);
          $AGI->exec('Playback', 'pin-number-accepted');
#           $AGI->hangup();
       }
    }
    else {
          $attempts = $attempts - 1; # Don't count this attempt against them
          &get_pin($account_code, $userid, $MAC);
    }

On Monday 22 November 2004 06:57 pm, Jan Kratochvil wrote:
> Hi,
>
> The last patch was broken (untested...), fixed, sorry.
>
>
> Lace

-- 
Brian Wilkins
Software Engineer
[EMAIL PROTECTED]

Heritage Communications Corporation
  Melbourne, FL     USA     32935
321.308.4000 x33
http://www.hcc.net

Reply via email to