@@ -67,13 +67,13 @@ |
||
| 67 | 67 | //error_log(print_r($data,true)); |
| 68 | 68 | $logger->log(print_r($data,true)); |
| 69 | 69 | if($data['variables']['calltype']== "CALLINGCARD"){ |
| 70 | - if(isset($data['variables']['originating_leg_uuid'])) |
|
| 71 | - { |
|
| 72 | - process_cdr($data,$db,$logger,$decimal_points); |
|
| 73 | - } |
|
| 74 | - }else{ |
|
| 75 | - process_cdr($data,$db,$logger,$decimal_points); |
|
| 76 | - } |
|
| 70 | + if(isset($data['variables']['originating_leg_uuid'])) |
|
| 71 | + { |
|
| 72 | + process_cdr($data,$db,$logger,$decimal_points); |
|
| 73 | + } |
|
| 74 | + }else{ |
|
| 75 | + process_cdr($data,$db,$logger,$decimal_points); |
|
| 76 | + } |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | //$db->cleanup(); |
@@ -173,7 +173,7 @@ |
||
| 173 | 173 | if($accountinfo['type']==1){ |
| 174 | 174 | $update_array = array('parent_id' => $accountinfo['id'], 'accountid' => 0, 'assign_date' => '0000-00-00 00:00:00', "charge_upto" => "0000-00-00 00:00:00","last_modified_date"=>gmdate("Y-m-d H:i:s"),'call_type'=>'-1','extensions'=>''); |
| 175 | 175 | }else{ |
| 176 | - $update_array = array('parent_id' => 0, 'accountid' => 0, 'assign_date' => '0000-00-00 00:00:00', "charge_upto" => "0000-00-00 00:00:00","last_modified_date"=>gmdate("Y-m-d H:i:s"),'call_type'=>'-1','extensions'=>''); |
|
| 176 | + $update_array = array('parent_id' => 0, 'accountid' => 0, 'assign_date' => '0000-00-00 00:00:00', "charge_upto" => "0000-00-00 00:00:00","last_modified_date"=>gmdate("Y-m-d H:i:s"),'call_type'=>'-1','extensions'=>''); |
|
| 177 | 177 | } |
| 178 | 178 | $where = array('id' => $id); |
| 179 | 179 | $this->db->where($where); |