Hi, I have a question about triggering my custom billing engine after accounting info is stored in the DB. Does FreeRadius has any event mechanism or somewhere that I can embed a script to trigger my billing calculation? Thanks in advance for your suggestion. Regards, Pete
Pete Kay wrote:
I have a question about triggering my custom billing engine after accounting info is stored in the DB. Does FreeRadius has any event mechanism or somewhere that I can embed a script to trigger my billing calculation?
In 2.0.4, see "man unlang". You can execute any program via the "exec" module, or via using `foo`, just like a shell script. Alan DeKok.
Hi, In the sites-enabled/default file, there is a post-auth section that I can put exec on, but what if I want to run the script only if there is a new recording being added during accounting, something like post-acc, is it possible? Is it possible to post variable to the script being called. That way, I an pass the ID field, so the billing engine knows which entry in the DB table to handle. Thanks alot for all your great help. Regards, Pete On Sat, May 24, 2008 at 11:11 PM, Alan DeKok <aland@deployingradius.com> wrote:
Pete Kay wrote:
I have a question about triggering my custom billing engine after accounting info is stored in the DB. Does FreeRadius has any event mechanism or somewhere that I can embed a script to trigger my billing calculation?
In 2.0.4, see "man unlang".
You can execute any program via the "exec" module, or via using `foo`, just like a shell script.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Pete Kay wrote:
In the sites-enabled/default file, there is a post-auth section that I can put exec on, but what if I want to run the script only if there is a new recording being added during accounting, something like post-acc, is it possible?
You can run it during the "accounting" section.
Is it possible to post variable to the script being called. That way, I an pass the ID field, so the billing engine knows which entry in the DB table to handle.
Yes. See "man unlang". You can pass command-line options to the script. Alan DeKok.
UNCLASSIFIED _____________________________ From: freeradius-users-bounces+frank.ranner=defence.gov.au@lists.freeradius.or g [mailto:freeradius-users-bounces+frank.ranner=defence.gov.au@lists.freer adius.org] On Behalf Of Pete Kay Sent: Sunday, 25 May 2008 01:04 To: freeradius-users@lists.freeradius.org Subject: Triggering of billing engine post-acc Hi, I have a question about triggering my custom billing engine after accounting info is stored in the DB. Does FreeRadius has any event mechanism or somewhere that I can embed a script to trigger my billing calculation? Thanks in advance for your suggestion. Regards, Pete Why not put a trigger script in the database? Regards, Frank Ranner
participants (3)
-
Alan DeKok -
Pete Kay -
Ranner, Frank MR