[OpenSIPS-Devel] problem in opensips+radius accounting

happyeveryday1025 happyeveryday1025 at 126.com
Mon Jan 17 07:01:32 CET 2011


Hello:
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 "user-service-type" and "eap-service-type"is present in the log,I dont know what is the matter,how to set user-service-type?your help will be greatly appreciated.
Here is the response of the freeradius:

        Acct-Status-Type = Start
        User-Service-Type = IAPP-Register
        EAP-Key-Name = "\000\000\000\310"
       Error-Cause = Invite
        Attr-55 = 0x4d33d5c7
        Sip-From-Tag = "2c29a446"
        Sip-To-Tag = "1fb68f517efd4f6682a527d79cf5809b"
        Acct-Session-Id = "YzIxMDNjMTRlNTUxYTJiYmRkNzhkYmU4MThmZWM3OWQ."
        User-Name = "3901 at 192.168.118.39"
        Calling-Station-Id = "sip:3901 at 192.168.118.39"
        Called-Station-Id = "sip:3902 at 192.168.118.39"
        Sip-Translated-Request-URI = "sip:192.168.118.41:16591"
        Attr-223 =    0x3c7369703a33393031403139322e3136382e3131382e34313a33323435343e
        NAS-Port = 5060
        Acct-Delay-Time = 0
        NAS-IP-Address = 192.168.118.39

and the config file of opensips related to radius is as fllowed:

 # ----- acc params -----
/* what sepcial events should be accounted ? */
modparam("acc", "early_media", 1)
modparam("acc", "report_ack", 1)
modparam("acc", "report_cancels", 1)
/* by default ww do not adjust the direct of the sequential requests.
   if you enable this parameter, be sure the enable "append_fromtag"
   in "rr" module */
modparam("acc", "detect_direction", 0)
/* account triggers (flags) */
modparam("acc", "failed_transaction_flag", 3)
modparam("acc", "log_flag", 1)
modparam("acc", "log_missed_flag", 2)
/* uncomment the following lines to enable DB accounting also */
#modparam("acc", "db_flag", 1)
#modparam("acc", "db_missed_flag", 2)
modparam("acc","aaa_flag",2)
modparam("acc","aaa_missed_flag",3)
modparam("acc","service_type",15)
#modparam("aaa_radius", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
modparam("acc","aaa_url","radius:/usr/local/etc/radiusclient-ng/radiusclient.conf")
modparam("acc", "aaa_extra",    "User-Name=$Au ;\
                                  Calling-Station-Id=$from;\
                                  Called-Station-Id=$to ;\
                                  Sip-Translated-Request-URI=$ruri;\
                                   Sip-RPid=$avp(s:rpid);\
                                    Canonical-URI=$avp(s:can_uri);\
                                   Billing-Party=$avp(s:billing_party);\
                                   Divert-Reason=$avp(s:divert_reason);\
                                    X-RTP-Stat=$hdr(X-RTP-Stat);\
                                     Contact=$hdr(contact);\
                                      Event=$hdr(event);\
                                     SIP-Proxy-IP=$avp(s:sip_proxy_ip);\
                                     ENUM-TLD=$avp(s:enum_tld)") 





 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20110117/8bcb1422/attachment.htm>


More information about the Devel mailing list