<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">user-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 user-service-type?</FONT>your 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> User-Service-Type = IAPP-Register<BR> EAP-Key-Name = "\000\000\000\310"<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:3901@192.168.118.39"<BR> Called-Station-Id = "sip:3902@192.168.118.39"<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">and 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/radiusclient-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> Sip-RPid=$avp(s:rpid);\<BR> 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> Contact=$hdr(contact);\<BR> Event=$hdr(event);\<BR> SIP-Proxy-IP=$avp(s:sip_proxy_ip);\<BR> ENUM-TLD=$avp(s:enum_tld)") <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>