There might be a bug in the dialplan. ASTPP is not supposed to process any call where the termination rate (cost) is higher than the origination rate as you would be losing money that way. However, in my tests, it completely ignores the high termination cost. Is there a special setting that I missed? Has anyone else noticed that?
In the code I see two lua scripts used for the same rate check. Both /scripts/astpp.dialplan.lua and
astpp.callingcard.functions.lua check if the termination rate is > origination rate. Which one do we use to block the call if the rate is too high? Why would it not work for me? Are there any special settings that I missed?