founding for the new call cost

This commit is contained in:
Radu Ioan Fericean
2015-05-26 10:21:53 +03:00
parent eb8df9892a
commit eeadc8a55e

View File

@@ -433,6 +433,10 @@ func (cd *CallDescriptor) GetCost() (*CallCost, error) {
}
}
cc.Cost = cost
// global rounding
roundingDecimals, roundingMethod := cc.GetLongestRounding()
cc.Cost = utils.Round(cc.Cost, roundingDecimals, roundingMethod)
return cc, nil
}