Each of us knows, that the variant will be more acceptable, when possible duration of a call will be calculated BEFORE Setup will be sent . This value of possible call duration (let it will be CurrentCallDurationLimit) we can transfer this value to GNUGK instead of DefaultCallDurationLimit or to leave DefaultCallDurationLimit if the calculated limit appears more then default one. In this case GNUGK should interrupt a call on the timer, having sent ReleaseComplete to both sides with the DisconnectCause NormalCallClearing or smth else. Then the need in sending of AcctUpdate in general disappears. Certainly there will be other problems: 1) It Is necessary to create the table with codes of destinations (preffixes) and the appropriate tariffs 2) It Is necessary to have the program module built - in in gnugk or external, which before sending Setup will calculate CurrentCallDurationLimit 3) This module also should solve, whether there is an opportunity to serve the given call. That is whether there are enough money to conversation of minimally possible duration. 4) After the end of current call this module must to calculate the session coast, must sent this coast to GNUGK, and GNUGK must sent update of CurrentAmount instead of EndSession or Stop message to RADIUS-server. Here, on this stage, we can apply that minimal an interval of tariffing, whether it be second, minute or whole days. It seems to me, this way on much easier in realization, is much more transparent for understanding that occurs and what it is necessary for. Let alone that such program module can be made external to GNUGK and can be start on other box together with RADIUS-server, thus essentially having lowered loading either on RADIUS box and on GNUGK box. Business for small, who will undertake it? I can try to write Perl-script for dialogue with RADIUS and MySQL-DB. But the interface between this script and GNUGK outside of my understanding, I do not know C++. Igor Prokhorov. On 7 Январь 2004 23:40, P. P. wrote: > If you set it to one, I think you'll get lots of problems. For each caller > there wlll be issued an msg to radius EVERY second, then radius probably > will make one or more querries to your database, or even try to write to a > file... Predstav' rasklad esli u tebya budet > 50 odnovremenno > protekajushih zvonkov - shatkaya sistema navernyaka dast osechku. I highly > doubt that it's a good idea to set it to anything less than 10. However, > you can modify source code, of course, if you want to. > > My opinoin is that there is a problem in your design (it's only an > opinion!) unless you are sure what you are doing. Good luck ;) > > > Hello. > > > > Why i can't set AcctUpdateInterval < 10? I have not found any comments > > about it in docs, but i've saw "m_acctUpdateInterval = > > PMAX)m_acctUpdateInterval,10)" string in sources of gnugk. > > > > What was reason of it? And can i set this parameter to 1? > > > > Best regards, > > Anton Chubatov. > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > _______________________________________________ > > List: Openh323gk-users@lists.sourceforge.net > > Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549 > > Homepage: http://www.gnugk.org/ > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > List: Openh323gk-users@lists.sourceforge.net > Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549 > Homepage: http://www.gnugk.org/ -- С уважением, Прохоров Игорь ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ List: Openh323gk-users@lists.sourceforge.net Archive: http://sourceforge.net/mailarchive/forum.php?forum_id┘49 Homepage: http://www.gnugk.org/