we want to limit the total outgoing call time on our trixbox server. we have 2 gsm to voip converter. and the gsm company is making a deal for 40 usd for 500 minutes. but after exeeding the 500 minutes it starts to charge on normal rate. so want to be able to a limitation on each sip trunk so we will not exeed the 500 minutes. the counter should work with 30 second charging period.
ex : 70 seconds is counted as 90 seconds 55 secounds is counted as 60 secounds PER CALL. so when keeping for the total time, it should be 30 seconds time intervals. system should send warning email before the trunk reaches its 500 minute limit.
the timer should start when the called party answers the phone. other case counter will be wrong.
also the buget was chosen wrong now it is correct butget.