<DIV> </DIV>
<DIV> </DIV>
<DIV> Hello:</DIV>
<DIV>I am doing accounting with opensips+freeradius+radiusclient-ng.Now when i make a call using X-Lite,the radius server has response,but the accounting message is not right,the attribute "<FONT color="#f00000">service-type</FONT>" and "<FONT color="#f00000">eap-service-type</FONT>"is present in the log,I dont know what is the matter,<FONT color="#f00000">how to set service-type?</FONT><FONT color="#000000">Y</FONT>our timely help will be greatly appreciated.</DIV>
<DIV><FONT color="#f00000">Here is the response of the freeradius:</FONT></DIV>
<P> Acct-Status-Type = Start<BR><FONT color="#f00000"> User-Service-Type = IAPP-Register<BR> EAP-Key-Name = "\000\000\000\310"</FONT><BR> <FONT color="#f00000">Error-Cause = Invite<BR></FONT> Attr-55 = 0x4d33d5c7<BR> Sip-From-Tag = "2c29a446"<BR> Sip-To-Tag = "1fb68f517efd4f6682a527d79cf5809b"<BR> Acct-Session-Id = "YzIxMDNjMTRlNTUxYTJiYmRkNzhkYmU4MThmZWM3OWQ."<BR> User-Name = "<A href="mailto:3901@192.168.118.39">3901@192.168.118.39</A>"<BR> Calling-Station-Id = "sip:<A href="mailto:3901@192.168.118.39">3901@192.168.118.39</A>"<BR> &!
nbsp; Called-Station-Id = "sip:<A href="mailto:3902@192.168.118.39">3902@192.168.118.39</A>"<BR> Sip-Translated-Request-URI = "sip:192.168.118.41:16591"<BR> Attr-223 = 0x3c7369703a33393031403139322e3136382e3131382e34313a33323435343e<BR> NAS-Port = 5060<BR> Acct-Delay-Time = 0<BR> NAS-IP-Address = 192.168.118.39</P>
<P><FONT color="#f00000">The config file of opensips related to radius is as fllowed:</FONT></P>
<P> # ----- acc params -----<BR>/* what sepcial events should be accounted ? */<BR>modparam("acc", "early_media", 1)<BR>modparam("acc", "report_ack", 1)<BR>modparam("acc", "report_cancels", 1)<BR>/* by default ww do not adjust the direct of the sequential requests.<BR> if you enable this parameter, be sure the enable "append_fromtag"<BR> in "rr" module */<BR>modparam("acc", "detect_direction", 0)<BR>/* account triggers (flags) */<BR>modparam("acc", "failed_transaction_flag", 3)<BR>modparam("acc", "log_flag", 1)<BR>modparam("acc", "log_missed_flag", 2)<BR>/* uncomment the following lines to enable DB accounting also */<BR>#modparam("acc", "db_flag", 1)<BR>#modparam("acc", "db_missed_flag", 2)<BR>modparam("acc","aaa_flag",2)<BR>modparam("acc","aaa_missed_flag",3)<BR>modparam("acc","service_type",15)<BR>#modparam("aaa_radius", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf") <BR>modparam("acc","aaa_url","radius:/usr/local/etc/rad!
iusclient-ng/radiusclient.conf")<BR>modparam("acc", "aaa_extra", "User-Name=$Au ;\<BR> Calling-Station-Id=$from;\<BR> Called-Station-Id=$to ;\<BR> Sip-Translated-Request-URI=$ruri;\<BR> &n!
bsp; Sip-RPid=$avp(s:rpid);\<BR> &nb
sp; Canonical-URI=$avp(s:can_uri);\<BR> Billing-Party=$avp(s:billing_party);\<BR> Divert-Reason=$avp(s:divert_reason);\<BR> X-RTP-Stat=$hdr(X-RTP-Stat);\<BR> &nbs!
p; Contact=$hdr(contact);\<BR> Event=$hdr(event);\<BR> SIP-Proxy-IP=$avp(s:sip_proxy_ip);\<BR> ENUM-TLD=$avp(s:enum_tld)") </P>
<P><FONT color="#f00000">The dictionary file of opensips is as followed:</FONT></P>
<P><FONT color="#f00000"></FONT> #### Attributes ###<BR>ATTRIBUTE Sip-Uri-User 208 string # Proprietary, auth_radius<BR>ATTRIBUTE Sip-Group 211 string # Proprietary, group_radius<BR>ATTRIBUTE Sip-Rpid 213 string # Proprietary, auth_radius<BR>ATTRIBUTE SIP-AVP 225 string # Proprietary, avp_radius<BR>ATTRIBUTE Sip-Call-Duration 227 integer<BR>ATTRIBUTE Sip-Call-Setuptime 228 integer</P>
<P>###lines add###<BR>ATTRIBUTE Sip-Method 101 integer <BR>ATTRIBUTE Sip-Response-Code 102 integer # Schulzrinne, acc <BR>ATTRIBUTE Sip-To-Tag 104 string # Schulzrinne, acc <BR>ATTRIBUTE Sip-From-Tag 105 string # Schulzrinne, acc <BR>ATTRIBUTE Sip-Translated-Request-URI 107 string # Proprietary, acc</P>
<P>ATTRIBUTE Source-IP 214 string <BR>ATTRIBUTE Source-Port 215 string <BR>ATTRIBUTE Sip-Src-IP 108 string # Proprietary, acc <BR>ATTRIBUTE Sip-Src-Port 109 string # Proprietary, acc <BR>ATTRIBUTE Digest-Response 206 string # Sterman, auth_radius</P>
<P>ATTRIBUTE Sip-Uri-User 208 string # Proprietary, auth_radius <BR>ATTRIBUTE Sip-Group 211 string # Proprietary, group_radius <BR>ATTRIBUTE Sip-Rpid 213 string # Proprietary, auth_radius <BR>ATTRIBUTE SIP-AVP 225 string # Proprietary, avp_radius <BR>ATTRIBUTE Digest-Realm 1063 st!
ring # Sterman, auth_radius <BR>ATTRIBUTE Digest-Nonce 1064 string # Sterman, auth_radius <BR>ATTRIBUTE Digest-Method 1065 string # Sterman, auth_radius <BR>ATTRIBUTE Digest-URI 1066 string # Sterman, auth_radius <BR>ATTRIBUTE Digest-QOP 1067 string # Sterman, auth_radius <BR>ATTRIBUTE Digest-Algorithm 1068 string # Sterman, auth_radius <BR>ATT!
RIBUTE Digest-Body-Digest &nb
sp; 1069 string # Sterman, auth_radius <BR>ATTRIBUTE Digest-CNonce 1070 string # Sterman, auth_radius <BR>ATTRIBUTE Digest-Nonce-Count 1071 string # Sterman, auth_radius <BR>ATTRIBUTE Digest-User-Name 1072 string # Sterman, auth_radius </P>
<P>ATTRIBUTE User-Name 1 string<BR>ATTRIBUTE Called-Station-Id 30 string<BR>ATTRIBUTE Calling-Station-Id 31 string<BR>ATTRIBUTE Canonical-URI 216 string <BR>ATTRIBUTE Delay-Time 217 string <BR>ATTRIBUTE Divert-Reason 219 string <BR>ATTRIBUTE X-RTP-Stat 220 string <BR>ATTRIBUTE From-Header 221 string <BR>ATTRIBUTE !
User-Agent 222 string <BR>ATTRIBUTE Contact 223 string <BR>ATTRIBUTE Event 224 string <BR>ATTRIBUTE SIP-Proxy-IP 231 string <BR>ATTRIBUTE ENUM-TLD 232 string<BR>ATTRIBUTE Billing-Party  !
; 218 string<BR>ATTRIBUTE Acct-Status-Ty
pe 40 integer<BR>ATTRIBUTE Event-Timestamp 230 string <BR>ATTRIBUTE Acct-Session-Id 44 string</P>
<P>### Service-Type Values ###<BR>VALUE Service-Type Group-Check 12 # Proprietary, group_radius<BR>VALUE Service-Type SIP-Caller-AVPs 30 # Proprietary, avp_radius<BR>VALUE Service-Type SIP-Callee-AVPs 31 # Proprietary, avp_radius<BR>VALUE Service-Type Login-User 1 <BR>VALUE Service-Type Framed-User 2 <BR>VALUE Service-Type Callback-Login-User 3 &!
nbsp; <BR>VALUE Service-Type Callback-Framed-User 4 <BR>VALUE Service-Type Outbound-User 5 <BR>VALUE Service-Type Administrative-User 6 <BR>VALUE Service-Type NAS-Prompt-User 7 <BR>VALUE Service-Type Authenticate-Only 8 <BR>VALUE Service-Type Call-Check 10<BR>VALUE &nb!
sp; Service-Type SIP-S
ession 15</P>
<P>### Sip-Method Values ###<BR>#VALUE Sip-Method Undefined 0<BR>VALUE Sip-Method Invite 1<BR>VALUE Sip-Method Cancel 2<BR>VALUE Sip-Method Ack 4<BR>VALUE Sip-Method Bye 8<BR>VALUE Sip-Method Info 16<BR>VALUE Sip-Method Options 32<BR>VALUE Sip-Method !
Update 64<BR>VALUE Sip-Method Register 128<BR>VALUE Sip-Method Message 256<BR>VALUE Sip-Method Subscribe 512<BR>VALUE Sip-Method Notify 1024<BR>VALUE Sip-Method Prack 2048<BR>VALUE Sip-Method Refer 4096<BR>VALUE Sip-Method Other 8192<BR>####acct-status#####<BR>VALUE Acct-Status-Type&nb!
sp; Start &
nbsp; 1 # RFC2866, acc <BR>VALUE Acct-Status-Type Stop 2 # RFC2866, acc <BR>VALUE Acct-Status-Type Failed 15 # RFC2866, acc<BR><BR></P>
<P><BR><BR><BR> </P><SPAN title="neteasefooter"><SPAN id="netease_mail_footer"></SPAN></SPAN><BR><BR><SPAN title="neteasefooter"><SPAN id="netease_mail_footer"></SPAN></SPAN><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>