--- cel_radius.c.org 2011-07-15 00:43:06.000000000 +0430 +++ cel_radius.c 2012-08-01 07:42:09.286135000 +0430 @@ -86,7 +86,7 @@ static rc_handle *rh = NULL; static struct ast_event_sub *event_sub = NULL; -#define ADD_VENDOR_CODE(x,y) (rc_avpair_add(rh, send, x, &y, strlen(y), VENDOR_CODE)) +#define ADD_VENDOR_CODE(x,y) (rc_avpair_add(rh, send, x, y, strlen(y), VENDOR_CODE)) static int build_radius_record(VALUE_PAIR **send, struct ast_cel_event_record *record) { @@ -167,7 +167,7 @@ /* 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, &record->channel_name, + if (!rc_avpair_add(rh, send, PW_USER_NAME, record->channel_name, strlen(record->channel_name), 0)) { return -1; }