[svn-commits] branch oej/cdr_radius r28675 -
/team/oej/cdr_radius/cdr/cdr_radius.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Fri May 19 09:27:11 MST 2006
Author: russell
Date: Fri May 19 11:27:11 2006
New Revision: 28675
URL: http://svn.digium.com/view/asterisk?rev=28675&view=rev
Log:
add a username and session id field so that the server can uniquely track
records (issue #6639, sb)
Modified:
team/oej/cdr_radius/cdr/cdr_radius.c
Modified: team/oej/cdr_radius/cdr/cdr_radius.c
URL: http://svn.digium.com/view/asterisk/team/oej/cdr_radius/cdr/cdr_radius.c?rev=28675&r1=28674&r2=28675&view=diff
==============================================================================
--- team/oej/cdr_radius/cdr/cdr_radius.c (original)
+++ team/oej/cdr_radius/cdr/cdr_radius.c Fri May 19 11:27:11 2006
@@ -237,6 +237,18 @@
}
}
+ /* Setting Acct-Session-Id & User-Name attributes for proper generation
+ of Acct-Unique-Session-Id on server side */
+ /* Channel */
+ if (!rc_avpair_add(rh, send, PW_USER_NAME, &cdr->channel, strlen(cdr->channel), 0)) {
+ ast_log(LOG_WARNING, "Failed to add VALUE PAIR. RADIUS CDR not recorded!\n");
+ return -1;
+ }
+ /* Unique ID */
+ if (!rc_avpair_add(rh, send, PW_ACCT_SESSION_ID, &cdr->uniqueid, strlen(cdr->uniqueid), 0)) {
+ ast_log(LOG_WARNING, "Failed to add VALUE PAIR. RADIUS CDR not recorded!\n");
+ return -1;
+ }
return 0;
}
More information about the svn-commits
mailing list