Joined: Sun Apr 15, 2007 12:08 am Posts: 5
|
Hi guys,
I installed a2billing for some one and they want that if trunk 1 has used over 3400 minutes then to start using trunk x. I was thinking of just queering asterisk but it didn't seem to do the trick. I was thinking of doing:
select `sessiontime` from `cc_call` where `id_trunk` = '".$x."'; but even if I got the total I would need a way to tell the system to start using the new trunk. I was thinking of just adding something in to a2billing where it would make it's own entry into my own db for every call. Anyone know where in the agi I can do it ?
Thanks.
Dovid
|
|