Changeset 1078

Show
Ignore:
Timestamp:
09/26/08 10:46:54 (2 months ago)
Author:
rach
Message:

Authorize to cutomize the IVR to play sound files for the cents for a specific currency

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/common/lib/Class.A2Billing.php

    r1032 r1078  
    551551                } 
    552552 
    553                 if(!isset($this->config["agi-conf$idconfig"]['currency_association_minor']))   $this->config["agi-conf$idconfig"]['currency_association_minor'] = 'all:prepaid-cents'; 
    554                 $this->config["agi-conf$idconfig"]['currency_association_minor'] = explode(",",$this->config["agi-conf$idconfig"]['currency_association_minor']); 
    555  
    556                 foreach($this->config["agi-conf$idconfig"]['currency_association_minor'] as $cur_val) { 
     553                if(!isset($this->config["agi-conf$idconfig"]['currency_cents_association']))   $this->config["agi-conf$idconfig"]['currency_cents_association'] = ''; 
     554                $this->config["agi-conf$idconfig"]['currency_cents_association'] = explode(",",$this->config["agi-conf$idconfig"]['currency_cents_association']); 
     555 
     556                foreach($this->config["agi-conf$idconfig"]['currency_cents_association'] as $cur_val) { 
    557557                        $cur_val = explode(":",$cur_val); 
    558                         $this->config["agi-conf$idconfig"]['currency_association_minor_internal'][$cur_val[0]]=$cur_val[1]; 
     558                        $this->config["agi-conf$idconfig"]['currency_cents_association_internal'][$cur_val[0]]=$cur_val[1]; 
    559559                } 
    560560 
     
    13771377                } 
    13781378                 
    1379                 if (isset($this->agiconfig['currency_association_minor_internal'][strtolower($this->currency)])){ 
    1380                         $cents_audio = $this->agiconfig['currency_association_minor_internal'][strtolower($this->currency)]; 
     1379                if (isset($this->agiconfig['currency_cents_association_internal'][strtolower($this->currency)])){ 
     1380                        $cents_audio = $this->agiconfig['currency_cents_association_internal'][strtolower($this->currency)]; 
    13811381                }else{ 
    1382                         $cents_audio = $this->agiconfig['currency_association_minor_internal']['all']; 
    1383                 } 
    1384                 switch ($cents_audio) { 
    1385                 case 'prepaid-cents': 
    1386                         $cent_audio = 'prepaid-cent';  break; 
     1382                        $cents_audio = "prepaid-cents"; 
     1383                } 
     1384                switch ($cents_audio) {  
    13871385                case 'prepaid-pence': 
    13881386                        $cent_audio = 'prepaid-penny';  break; 
    13891387                default: 
    1390                         $cent_audio = $cents_audio
     1388                        $cent_audio = substr($cents_audio,0,-1)
    13911389                } 
    13921390 
  • trunk/DataBase/mysql-5.x/UPDATE-a2billing-v1.3.0-to-v1.4.0-mysql.sql

    r1066 r1078  
    11431143) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; 
    11441144 
    1145  
     1145INSERT INTO cc_config (config_title ,config_key ,config_value ,config_description ,config_valuetype ,config_group_id ,config_listvalues) 
     1146VALUES ('Cents Currency Associated', 'currency_cents_association', '', 'Define all the audio (without file extensions) that you want to play according to cents currency (use , to separate, ie "amd:lumas").By default the file used is "prepaid-cents" .Use plural to define the cents currency sound, but import two sounds but cents currency defined : ending by ''s'' and not ending by ''s'' (i.e. for lumas , add 2 files : ''lumas'' and ''luma'') ', '0', '11', NULL); 
     1147 


Google