I’m trying ASTPP 5 to allow calls via calling card system.
I want to allow customers to use all the card balance, example, 1dollar per minute and a 5dollars card allows 5 minutes, a customer talks 3minutes and 15 seconds, but for the next call the system only allows 1 minute instead 1 minute and 45seconds
I have configured all the tariffs to bill every second as tariff cycle.
Customer calls to the inbound DID
After the welcome message and the card id and pin be inserted, the message only says full minutes.
The tariff configuration
I though the same at first documentation read, but actually, i have configured all the tariff to be second by second but the freeswitch cli log show that’s not enough balance to make a call with minutes and seconds.
Attached some screenshots about the basic (really basic) configuration of my astpp to test the calling card functionality
This calling card starts with 3$, the tariff is 1$ per minute
After 2 calls with a total of 2minutes and 30seconds
The rest balance is 0.5$, this is sufficient to place a 30seconds call, but the astpp lua says the message of not enough balance
but if the cost per minute, i understand that’s it for the allowed minutes to call
at the same message, i make a call with 1$ and 45cents to make a call, and the system only allows 1 minute for the call instead 1 minute and 20 seconds
That’s means than the origin calls are billed by minutes and the termination calls by seconds???
if i change the origination rate to 0$ per minute, the calling cards are going to work and bill every second???
@pyazfrnymqffqscbwq If Origination rate is 1.000$ then it will ask in account for another 1.000 $ to complete the call of 45 seconds.
Customer has 2$ balance, call connects, from calling card 1 minute deducted then 45 seconds remains, then again it will ask for 1.000 as call per minute but will deduct charges from 1.000$ as per 45 seconds only.
with this explanation, my theory for this opened message it’s correct
i need the full minute cost to allow a call, and it’s imposible to allow calls with minutes and seconds, ONLY with full minutes
based on your explananation
with a calling card with 3$, and 1$ per minute, the total of possible call is 3 full minutes
a customer makes a call with the 3$, the system says that the call can make a 3 minutes of duration
the customer hangs up after 45seconds
The calling card still have 2$ and 25cents as balance
a new call from the same customer with the same card, with 2$ and 25cents, the system ONLY allow 2 minutes
where goes the rest of 25seconds???
That’s really means that the calling card only allows the initial call with FULL minutes???
if it’s really possible to allow to initiate a call with minutes and seconds, how i need to configure the origination rates and termination rates???
i tested with 0$ for the origination, and the call it’s converted to free one
edit: if the termination rate is higher than the origination one, the system never allows the call
@pyazfrnymqffqscbwq , with 0 it will take free calls only and if termination rates are higher then the origination rates then call will never connected due to the logic that origination rates are always bigger then the termination rates.