Show
Ignore:
Timestamp:
07/24/08 17:40:11 (4 years ago)
Author:
areski
Message:

New Feature : to switch the Callplan from a customer, callplan_deck_minute_threshold

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/AGI/a2billing.php

    r817 r895  
    170170                        $A2B -> debug( VERBOSE | WRITELOG, $agi, __FILE__, __LINE__, '[CHANNEL STATUS : '.$stat_channel["result"].' = '.$stat_channel["data"].']'. 
    171171                                                   "\n[CREDIT : ".$A2B-> credit."][CREDIT MIN_CREDIT_2CALL : ".$A2B->agiconfig['min_credit_2call']."]"); 
    172  
     172                         
    173173                        // CHECK IF THE CHANNEL IS UP 
    174174                        //if ($stat_channel["status"]!= "6" && $stat_channel["status"]!= "1"){ 
     
    181181                        // CREATE A DIFFERENT UNIQUEID FOR EACH TRY 
    182182                        if ($i>0){ 
    183                                 $A2B-> uniqueid = $A2B-> uniqueid + 1000000000 ; 
    184                         } 
    185  
     183                                $A2B-> uniqueid = $A2B-> uniqueid + 1000000000; 
     184                        } 
     185                         
     186                        // Feature to switch the Callplan from a customer : callplan_deck_minute_threshold  
     187                        $A2B-> deck_switch($agi); 
     188                         
    186189                        if( $A2B->credit < $A2B->agiconfig['min_credit_2call'] && $A2B -> typepaid==0 && $A2B->agiconfig['jump_voucher_if_min_credit']==1) { 
    187190 
     
    194197                                } 
    195198                        } 
    196  
     199                         
    197200                        if( $A2B->credit < $A2B->agiconfig['min_credit_2call'] && $A2B -> typepaid==0) { 
    198201