Changeset 625
- Timestamp:
- 03/25/08 23:13:42 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.3/A2BCustomer_UI/lib/Class.RateEngine.php
r606 r625 937 937 */ 938 938 function rate_engine_performcall ($agi, $destination, &$A2B, $typecall=0){ 939 $max_long = 2147483647; //Maximum value for long type in C++. This will be used to avoid overflow when sending large numbers to Asterisk 939 940 940 941 $old_destination = $destination; … … 968 969 969 970 if ($typecall==1) $timeout = $A2B -> config["callback"]['predictivedialer_maxtime_tocall']; 970 971 $dialparams = str_replace("%timeout%", $timeout *1000, $A2B->agiconfig['dialcommand_param']);971 972 $dialparams = str_replace("%timeout%", min($timeout * 1000, $max_long), $A2B->agiconfig['dialcommand_param']); 972 973 //$dialparams = "|30|HS($timeout)"; // L(".$timeout*1000.":61000:30000) 973 974 … … 1088 1089 $destination= substr($destination, strlen($removeprefix)); 1089 1090 } 1090 1091 $dialparams = str_replace("%timeout%", $timeout *1000, $A2B->agiconfig['dialcommand_param']);1091 1092 $dialparams = str_replace("%timeout%", min($timeout * 1000, $max_long), $A2B->agiconfig['dialcommand_param']); 1092 1093 1093 1094 if ($pos_dialingnumber !== false){ branches/1.3/A2Billing_AGI/libs_a2billing/Class.RateEngine.php
r606 r625 938 938 */ 939 939 function rate_engine_performcall ($agi, $destination, &$A2B, $typecall=0){ 940 $max_long = 2147483647; //Maximum value for long type in C++. This will be used to avoid overflow when sending large numbers to Asterisk 940 941 941 942 $old_destination = $destination; … … 970 971 if ($typecall==1) $timeout = $A2B -> config["callback"]['predictivedialer_maxtime_tocall']; 971 972 972 $dialparams = str_replace("%timeout%", $timeout *1000, $A2B->agiconfig['dialcommand_param']);973 $dialparams = str_replace("%timeout%", min($timeout * 1000, $max_long), $A2B->agiconfig['dialcommand_param']); 973 974 //$dialparams = "|30|HS($timeout)"; // L(".$timeout*1000.":61000:30000) 974 975 … … 1090 1091 } 1091 1092 1092 $dialparams = str_replace("%timeout%", $timeout *1000, $A2B->agiconfig['dialcommand_param']);1093 $dialparams = str_replace("%timeout%", min($timeout * 1000, $max_long), $A2B->agiconfig['dialcommand_param']); 1093 1094 1094 1095 if ($pos_dialingnumber !== false){ branches/1.3/A2Billing_UI/lib/Class.RateEngine.php
r606 r625 937 937 */ 938 938 function rate_engine_performcall ($agi, $destination, &$A2B, $typecall=0){ 939 $max_long = 2147483647; //Maximum value for long type in C++. This will be used to avoid overflow when sending large numbers to Asterisk 939 940 940 941 $old_destination = $destination; … … 968 969 969 970 if ($typecall==1) $timeout = $A2B -> config["callback"]['predictivedialer_maxtime_tocall']; 970 971 $dialparams = str_replace("%timeout%", $timeout *1000, $A2B->agiconfig['dialcommand_param']);971 972 $dialparams = str_replace("%timeout%", min($timeout * 1000, $max_long), $A2B->agiconfig['dialcommand_param']); 972 973 //$dialparams = "|30|HS($timeout)"; // L(".$timeout*1000.":61000:30000) 973 974 … … 1089 1090 } 1090 1091 1091 $dialparams = str_replace("%timeout%", $timeout *1000, $A2B->agiconfig['dialcommand_param']);1092 $dialparams = str_replace("%timeout%", min($timeout * 1000, $max_long), $A2B->agiconfig['dialcommand_param']); 1092 1093 1093 1094 if ($pos_dialingnumber !== false){
