<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"><title>Re: [OpenSIPS-Users] AAA sets with radius_send_acct()</title>
</head>
<body>
<font face="Tahoma, Verdana, Helvetica, Arial"><span style="font-size:10pt">Irina,<br>
<br>
Alex’s suggestion to use acc_aaa_request() did the trick without having to define any set at all. Thanks, though.<br>
<br>
<br>
<br>
- Jeff<br>
<br>
<br>
<br>
On 10/28/09 6:49 AM, "Irina Stanescu" <<a href="ironmissy@gmail.com">ironmissy@gmail.com</a>> wrote:<br>
<br>
</span></font><blockquote><font face="Tahoma, Verdana, Helvetica, Arial"><span style="font-size:10pt">Hi Jeff,<br>
<br>
Actually, you are getting that error because the brackets are not properly closed. You missed one ')' for sets1.<br>
I see nothing wrong other than that.<br>
<br>
The radius_send_acct function makes acc_aaa_request used with aaa_extra some how redundant. <br>
<br>
Regards, <br>
Irina Stanescu<br>
<br>
<br>
On Wed, Oct 28, 2009 at 10:24 AM, Alex Massover <<a href="alex@jajah.com">alex@jajah.com</a>> wrote:<br>
</span></font><blockquote><font face="Tahoma, Verdana, Helvetica, Arial"><span style="font-size:10pt">Hi!<br>
<br>
You're mixing 2 different functions from 2 different modules:<br>
<br>
aaa_radius::radius_send_acct() which takes parameters from modparam("aaa_radius","sets"....<br>
and<br>
acc::acc_aaa_request() which takes parameters from modparam("acc", "aaa_extra",<br>
<br>
Probably you need to use acc_aaa_request() (and not radius_send_acct()) inside a local route and it will take a parameters from aaa_extra.<br>
<br>
--<br>
Best Regards,<br>
Alex Massover<br>
VoIP R&D TL<br>
Jajah Inc.<br>
> -----Original Message-----<br>
> From: <a href="users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [<a href="mailto:users-">mailto:users-</a><br>
> <a href="bounces@lists.opensips.org">bounces@lists.opensips.org</a>] On Behalf Of Jeff Pyle<br>
> Sent: Wednesday, October 28, 2009 12:05 AM<br>
> To: OpenSIPS users mailling list<br>
> Subject: [OpenSIPS-Users] AAA sets with radius_send_acct()<br>
><br>
> Hello,<br>
><br>
> I am attempting to make use of radius_send_acct() inside local_route to<br>
> account for BYEs generated by the dialog module. I have a question<br>
> about<br>
> the set it references.<br>
><br>
> The documentation does a good job explaining how to create a set. It<br>
> doesn't say whether radius_send_acct() uses the existing aaa_extra<br>
> module<br>
> parameter definitions.<br>
><br>
> I already have the following defined:<br>
><br>
> modparam("acc", "aaa_extra", "User-Name=$Au; \<br>
> Calling-Station-Id=$fu; \<br>
> Called-Station-Id=$tu; \<br>
> Sip-Translated-Request-URI=$ru; \<br>
> Sip-RPid=$avp(s:rpid); \<br>
> Source-IP=$si; \<br>
> Source-Port=$sp; \<br>
> SIP-Proxy-IP=$Ri; \<br>
> Canonical-URI=$avp(s:can_uri); \<br>
> Billing-Party=$avp(s:billing_party); \<br>
> Divert-Reason=$avp(s:divert_reason); \<br>
> User-Agent=$hdr(user-agent); \<br>
> Contact=$hdr(contact); \<br>
> Event=$hdr(event); \<br>
> ENUM-TLD=$avp(s:enum_tld)")<br>
><br>
> Would I need to reference this all again for the new set to be used<br>
> with<br>
> radius_send_acct()? Or, do I create a mostly empty set and all this<br>
> aaa_extra will be there already?<br>
><br>
><br>
> - Jeff<br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
> This mail was received via Mail-SeCure System.<br>
><br>
<br>
<br>
This mail was sent via Mail-SeCure System.<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</span></font></blockquote><font face="Tahoma, Verdana, Helvetica, Arial"><span style="font-size:10pt"><br>
<br>
</span></font></blockquote>
</body>
</html>