ok in the syslog i can see:
Jun 19 20:09:35 psip openser: rc_avpair_new: unknown attribute 5
i think some problem with my dictionary file.
i don't understand where is attribute 5 or what is refer.
Ok guys i've solved my problem.
after tried the radius authentication i've saw in the syslog the message:
Jun 22 13:06:07 psip openser: rc_get_seqnbr: fscanf failure:
/var/run/radius.seq
nothing works.. auth or acc.
i'm running openser as root now, so i don't know why about permission
problem with /var/run/radius.seq
changed permission: chmod 777 /var/run/radius.seq
everything work.
now i have another question ;)
how can i send only STOP accounting packet?
modparam("acc", "report_ack", 0)
i set this but START accounting packet are always sent
my billing server doesn't "reassemble" START and STOP packet so i need
only the STOP accounting
with a connect-time and disconnect-time. what i want to accomplish is to
have in the radius acct something like that:
h323-setup-time = '13:05:25 GMT Thu Jun 22 2006'
h323-connect-time = '13:05:53 GMT Thu Jun 22 2006'
h323-disconnect-time = '13:06:09 GMT Thu Jun 22 2006'
h323-disconnect-cause = '10'
it's ok also with timestamp format
ok for add paramater i can use modparam("acc", "radius_extra",
"rad_attr=$si")
but what if i want setup connect and disconnect-time or the cause?
maybe i can store timestamp in avp when i receive an INVITE | ACK | BYE.
so i think i can do this:
modparam("acc", "radius_extra",
"h323-setup-time=$avp($setup_time)")
modparam("acc", "radius_extra",
"h323-connect-time=$avp($connect_time)")
modparam("acc", "radius_extra",
"h323-disconnect-time=$avp($disconnect_time)")
and store in the AVP using the $Ts pseudo-variable
another problem in the accounting request is:
User-Name = '111@mydomain'
Called-Station-Id = 'sip:222@mydomain'
Calling-Station-Id = 'sip:111@mydomain'
is it possible to change this for to be:
User-Name = '111'
Called-Station-Id = '222'
Calling-Station-Id = '111'
best regards,
:tele