zane9362 wrote:
So what is it that this string does in the Class.RateEngine.php file.
"* 1000" does exactly what it says; it multiplies by 1,000 (thereby converting seconds into milliseconds).
Quote:
Will this affect the billing?
Yes, as "timeout" intimates, this is how we tell Asterisk the maximum duration of the call.
Quote:
If I take the "* 1000" out of the string then the call will connect for 2 sec and terminate. WHY?
The changes you have made are incorrect in some way. If the call only lasts 1/1,000th as long as funds should permit, it's very likely you're still using L() rather than S().
Quote:
$dialparams = str_replace("%timeout%", min($timeout , $max_long), $A2B->agiconfig['dialcommand_param']);
$dialparams = str_replace("%timeout%", min($timeout * 1000, $max_long), $A2B->agiconfig['dialcommand_param']);
I'm grasping at straws here, but you must
replace the existing code rather than copy & paste it then change the 2nd copy.
Quote:
I have tried the following and have no idea if it is correct.
As stated several times already in this thread, the correct setting would be:
Code:
dialcommand_param = "|60|gS(%timeout%)"
I hope borisat2billing doesn't mind me editing his post to correct his typo; it seems to be leading folks astray.