Folks,
for any of you using (or having interest in using) prepaid authentication based on CDRTool through FreeRADIUS Authorization methods, I announce the release 1.1 available to be downloaded from SourceForge.net.
Changelog from version 1.0 to present:
!Version 1.1 - 05.12.2007 by Dan-Cristian Bogos [dan@itsyscom.com]
* Replaced MAXDUR setting with SESSION_MAXDUR to be more descriptive * Introducing experimental support for multiple cdrtool engines by setting MULTIPLE_PREPAID_ENGINES=True * Simplified way of testing memcached connection (simple test against response list). * Fixed BUG with sending non supported methods to CDRTool (eg: REGISTER and MESSAGE). * Automatic mark of authenticated packets by returning third sip-avp "authentic#1". * Return USERLOCK instead of REJECT when the account is locked. * Added authenticate() function to comply with freeradius internals - not really necessary to be used. * Fixed BUG which was failing accounting if Acct-Type was not fix positioned inside parameter tuple coming from FreeRADIUS. * Introduced Acct-Authentic attribute dependency in order to fix double accounting in case of Yate(Cisco CDR with two leg accounting type). OpenSER should send Acct-Authentic attribute as radius_extra param with the value 1 for RADIUS or 3 for Remote. * Fixed BUG which was emptying destination-uri in case of empty Canonical-URI. * Forcing timeout for the keys in memcache based on SESSION_MAXDUR, for the case when no more accounting packets will arive after authorizaiton ones. * Introduced support for Acct-Session-Time attribute which will produce more aqurate session time then automatic generated based on timestamps ones. * Introduced support for combined accounting to fix the problems OpenSER has when no BYE packet arrives (eg: authorization generated by openser and accounting by Yate). * Introduced support for newer cdrtool response 'Not Prepaid' derived from old 'NotPrepaid' * Proper detection in case of Stop packets without Start being recorded inside memcached. * Updated README-txt file to reflect the changes necessary in the configuration of OpenSER plus simplified way of installing freeradius with "./configure --with-experimental-modules"
I am at your disposal if any question might pop-up.
Project link: https://sourceforge.net/projects/frad-cdrtool
DanB