11-28-2002 05:09 PM - edited 03-12-2019 09:45 PM
Hi,
In cisco tcl v2, to get credit time, we do:
set creditTimeLeft [infotag get leg_settlement_time leg_outgoing]
But, when I try to get credit amount (as in access-accept by the radius server)
set creditAmount [infotag get aaa_avpair h323-credit-amount]
//-1//TCL2:HN00A48010:/TclInterpDriver: Tcl_Eval Failed in action=act_Authenticated code=1
code=ERROR
IVR TCL script failure
Result:
Radius Param AV Pair h323-credit-amount Not Found
IVR TCL script failure errorInfo:
Radius Param AV Pair h323-credit-amount Not Found
while executing
"infotag get aaa_avpair h323-credit-amount"
invoked from within
"set creditAmount [infotag get aaa_avpair h323-credit-amount]..."
I suspect that cisco is looking for the h323-credit-amount in the access-request packet (which does not contain credit amt),
instead of in the access-accept packet (which has the credit amt, as replied by the radius server).
Anyone encountered the same problem?
Thanks.
Regards,
Grace
11-29-2002 04:48 AM
Hi, are you sure that your radius server is sending this VSA ? Check this through a debug radius or debug aaa authorization.
To avoid error in script you can use:
if {[infotag get aaa_avpair_exists h323-credit-amount]} {
set amt [infotag get aaa_avpair h323-credit-amount]
}
Regards
Ezequiel
11-29-2002 07:28 AM
Hi,
Thanks for the reply.
I found out that I should not do "aaa authenticate" (tho my radius server did reply with credit-amount"
It works when I changed it to "aaa authorize".
Thanks.
Regards,
Grace
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide