Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

tcl ivr v2 get aaa_avpair h323-credit-amount error

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

2 REPLIES
Community Member

Re: tcl ivr v2 get aaa_avpair h323-credit-amount error

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

Community Member

Re: tcl ivr v2 get aaa_avpair h323-credit-amount error

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

289
Views
0
Helpful
2
Replies
CreatePlease to create content