Revision: 2133
http://astpp.svn.sourceforge.net/astpp/?rev=2133&view=rev
Author: darrenkw
Date: 2007-09-22 00:12:03 -0700 (Sat, 22 Sep 2007)
Log Message:
-----------
Resolve Bug 324: Callingcard charging previous call answered time
We now reset the Asterisk variables after writing the cdr the the asterisk cdr database.
Modified Paths:
--------------
trunk/astpp-callingcards.agi
Modified: trunk/astpp-callingcards.agi
===================================================================
--- trunk/astpp-callingcards.agi 2007-09-22 06:11:53 UTC (rev 2132)
+++ trunk/astpp-callingcards.agi 2007-09-22 07:12:03 UTC (rev 2133)
@@ -413,6 +413,9 @@
. $astpp_db->quote( $reseller ) . ", "
. $astpp_db->quote( $uniqueid ) . ")";
$cdr_db->do($sql);
+ $AGI->set_variable( "\"ANSWEREDTIME\"", "0" );
+ $AGI->set_variable( "\"DIALEDTIME\"", "0" );
+ $AGI->set_variable( "\"DIALSTATUS\"", "NO ANSWER" );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|