[Astpp-commit] SF.net SVN: astpp: [2159] trunk/astpp-refill.agi
Brought to you by:
darrenkw
|
From: <dar...@us...> - 2007-11-17 22:28:24
|
Revision: 2159
http://astpp.svn.sourceforge.net/astpp/?rev=2159&view=rev
Author: darrenkw
Date: 2007-11-17 14:28:28 -0800 (Sat, 17 Nov 2007)
Log Message:
-----------
Cleaned up some duplicated code.
Modified Paths:
--------------
trunk/astpp-refill.agi
Modified: trunk/astpp-refill.agi
===================================================================
--- trunk/astpp-refill.agi 2007-11-17 21:42:32 UTC (rev 2158)
+++ trunk/astpp-refill.agi 2007-11-17 22:28:28 UTC (rev 2159)
@@ -207,21 +207,6 @@
$retries++;
}
}
-$cardstatus = &check_card_status( $astpp_db, $sourcecardinfo );
-# This subroutine returns the status of the card:
-if ( $cardstatus == 1 ) {
- $AGI->stream_file($sound->{card_inuse});
- $AGI->stream_file($sound->{goodbye});
- exit(0);
-} elsif ( $cardstatus == 2 ) {
- $AGI->stream_file($sound->{card_has_expired});
- $AGI->stream_file($sound->{goodbye});
- exit(0)
-} elsif ( $cardstatus == 3 ) {
- $AGI->stream_file($sound->{card_is_empty});
- $AGI->stream_file($sound->{goodbye});
- exit(0)
-}
$retries = 0;
while ( $sourcecardinfo->{pin} != $sourcepin && $retries < $config->{pin_retries} ) {
$sourcepin = $AGI->get_data( $sound->{astpp_please_pin_card_empty}, $input_timeout );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|