[OpenSIPS-Users] RADIUS AVP related Error

vishu gaddi vishugaddi at gmail.com
Mon May 3 13:20:53 CEST 2010


I have not defined Bcontact anywhere..

*Here is my opensips.cfg*


modparam("acc", "aaa_extra",           "Digest-User-Name=$Au; \
                                       Calling-Station-Id=$from; \
                                       Called-Station-Id=$to; \
                                       Sip-Translated-Request-URI=$ru; \
                                       Sip-RPid=$avp(s:rpid); \
                                       Source-IP=$avp(s:source_ip); \
                                       Source-Port=$avp(s:source_port); \
                                       SIP-Proxy-IP=$avp(s:sip_proxy_ip); \
                                       Canonical-URI=$avp(s:can_uri); \
                                       Billing-Party=$avp(billing_party); \
                                       Divert-Reason=$avp(s:divert_reason);
\
                                       User-Agent=$hdr(user-agent); \
                                       Contact=$hdr(contact); \
                                       Event=$hdr(event); \
                                       ENUM-TLD=$avp(s:enum_tld)")
modparam("acc", "aaa_extra","via=$hdr(Via[*]); email=$avp(s:email);
Bcontact=$ct / reply")




*and here is dictionary.opensips*

### SIP Attributes ###
ATTRIBUTE Sip-Method                   101  integer    # Schulzrinne, acc
ATTRIBUTE Sip-Response-Code            102  integer    # Schulzrinne, acc
ATTRIBUTE Sip-Cseq                     103  string     # Schulzrinne, acc
ATTRIBUTE Sip-To-Tag                   104  string     # Schulzrinne, acc
ATTRIBUTE Sip-From-Tag                 105  string     # Schulzrinne, acc
ATTRIBUTE Sip-Branch-ID                106  string
ATTRIBUTE Sip-Translated-Request-URI   107  string     # Proprietary, acc
ATTRIBUTE Sip-Uri-User                 208  string     # Proprietary,
auth_radius
ATTRIBUTE Sip-Group                    211  string     # Proprietary,
group_radius
ATTRIBUTE Sip-Rpid                     213  string     # Proprietary,
auth_radius
ATTRIBUTE Billing-Party                218  string
ATTRIBUTE SIP-AVP                      225  string     # Proprietary,
avp_radius

### Sip-Method Values ###
VALUE Sip-Method         Undefined      0
VALUE Sip-Method         Invite         1
VALUE Sip-Method         Cancel         2
VALUE Sip-Method         Ack            4
VALUE Sip-Method         Bye            8
VALUE Sip-Method         Info           16
VALUE Sip-Method         Options        32
VALUE Sip-Method         Update         64
VALUE Sip-Method         Register       128
VALUE Sip-Method         Message        256
VALUE Sip-Method         Subscribe      512
VALUE Sip-Method         Notify         1024
VALUE Sip-Method         Prack          2048
VALUE Sip-Method         Refer          4096
VALUE Sip-Method         Publish        8192
VALUE Sip-Method         Other          16384

### Sip-Response-Code Values ###
VALUE Sip-Response-Code  Undefined      0
VALUE Sip-Response-Code  Invite         1
VALUE Sip-Response-Code  Cancel         2
VALUE Sip-Response-Code  Ack            4
VALUE Sip-Response-Code  Bye            8
VALUE Sip-Response-Code  Info           16
VALUE Sip-Response-Code  Options        32
VALUE Sip-Response-Code  Update         64
VALUE Sip-Response-Code  Register       128
VALUE Sip-Response-Code  Message        256
VALUE Sip-Response-Code  Subscribe      512
VALUE Sip-Response-Code  Notify         1024
VALUE Sip-Response-Code  Prack          2048
VALUE Sip-Response-Code  Refer          4096
VALUE Sip-Response-Code  Publish        8192
VALUE Sip-Response-Code  Other          16384

### Acct-Status-Type Values ###
VALUE Acct-Status-Type     Start             1         # RFC2866, acc
VALUE Acct-Status-Type     Stop              2         # RFC2866, acc
VALUE Acct-Status-Type     Failed           15         # RFC2866, acc

### Service-Type Values ###
VALUE Service-Type         Call-Check       10         # RFC2865, uri_radius
VALUE Service-Type         Group-Check      12         # Proprietary,
group_radius
VALUE Service-Type         Sip-Session      15         # Schulzrinne, acc,
auth_radius
VALUE Service-Type         SIP-Caller-AVPs  30         # Proprietary,
avp_radius
VALUE Service-Type         SIP-Callee-AVPs  31         # Proprietary,
avp_radius

### Attributes added by AG Projects ###
ATTRIBUTE       Source-IP              214     string
ATTRIBUTE       Source-Port            215     string
ATTRIBUTE       Canonical-URI          216     string
ATTRIBUTE       Delay-Time             217     string
ATTRIBUTE       Divert-Reason          219     string
ATTRIBUTE       X-RTP-Stat             220     string
ATTRIBUTE       From-Header            221     string
ATTRIBUTE       User-Agent             222     string
ATTRIBUTE       Contact                223     string
ATTRIBUTE       Event                  224     string
#ATTRIBUTE       Event-Timestamp       230     string
ATTRIBUTE       SIP-Proxy-IP           231     string
ATTRIBUTE       ENUM-TLD               232     string


ATTRIBUTE       Sip-Src-IP             108  string     # Proprietary, acc
ATTRIBUTE       Sip-Src-Port           109  string     # Proprietary, acc
ATTRIBUTE       Digest-Response        206  string     # Sterman,
auth_radius
ATTRIBUTE       Digest-Realm           1063  string    # Sterman,
auth_radius
ATTRIBUTE       Digest-Nonce           1064  string    # Sterman,
auth_radius
ATTRIBUTE       Digest-Method          1065  string    # Sterman,
auth_radius
ATTRIBUTE       Digest-URI             1066  string    # Sterman,
auth_radius
ATTRIBUTE       Digest-QOP             1067  string    # Sterman,
auth_radius
ATTRIBUTE       Digest-Algorithm       1068  string    # Sterman,
auth_radius
ATTRIBUTE       Digest-Body-Digest     1069  string    # Sterman,
auth_radius
ATTRIBUTE       Digest-CNonce          1070  string    # Sterman,
auth_radius
ATTRIBUTE       Digest-Nonce-Count     1071  string    # Sterman,
auth_radius
ATTRIBUTE       Digest-User-Name       1072  string    # Sterman,
auth_radius


If i remove aaa_extra parameters, all goes fine but only few parameters
inserted into database..

I couldn't find anywhere, how AVPs defines and relates in opensips.cfg and
in dictionary.opensips to insert extra data in radacct table..

BOGDAN: Can u pls brief for us.

Thanks again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100503/e62de159/attachment.htm 


More information about the Users mailing list