[OpenSER-Users] OpenSER+freeradius+billing problem
Norman Brandinger
norm at goes.com
Fri Aug 17 22:02:18 CEST 2007
You don't appear to have the Canonical-URI attribute defined in any of
your dictionaries.
Some of your options are:
1) Define the attribute yourself in a custom dictionary (then add this
dictionary via another $INCLUDE line).
2) Edit one of the existing dictionaries and add the attribute.
3) Find another RADIUS dictionary file that includes this attribute
(then add this dictionary via another $INCLUDE line).
For item 3 above you might want to take a look at CDRTool.
This product has the Canonical-URI attribute defined in the following
dictionary: CDRTool/setup/radius/OpenSER/dictionary.ser
Regards,
Norm
ram wrote:
>
> Hi
> check my replies inline.
>
>
>
> You might have a line such as the following:
>
> modparam("acc", "radius_config",
> "/usr/local/etc/radiusclient-ng/radiusclient.conf")
>
>
> yes its correct.
>
> In this case, OpenSER will read the "dictionary" setting from
> /usr/local/etc/radiusclient-ng/radiusclient.conf.
>
>
> yes
>
>
> For example:
>
> # dictionary of allowed attributes and values
> # just like in the normal RADIUS distributions
> dictionary /usr/local/etc/radiusclient-ng/dictionary
>
>
> this line is there.
>
>
> So, off we go to /usr/local/etc/radiusclient-ng/dictionary
>
> For example:
> #
> $INCLUDE /usr/local/etc/radiusclient-ng/dictionary.sip
> $INCLUDE /usr/local/etc/openser/dictionary.radius
> #
> # Following are the proper new names. Use these.
> #
> ATTRIBUTE User-Name 1 string
> ATTRIBUTE Password 2 string
> ATTRIBUTE CHAP-Password 3 string
> ATTRIBUTE NAS-IP-Address 4 ipaddr
>
> The $INCLUDE files do exactly what you would expect.
>
> Again, the root of your problem is that the Canonical-URI attribute
> cannot be located. You should follow the path to the radius
> dictionary
> to determine why the attribute cannot be found.
>
>
>
> my files
>
> more /usr/local/etc/radiusclient-ng/dictionary
>
>
> #
> $INCLUDE /usr/local/share/freeradius/dictionary.openser
> $INCLUDE /usr/local/etc/radiusclient-ng/dictionary.radius
>
> #
> # Following are the proper new names. Use these.
> #
> ATTRIBUTE User-Name 1 string
> ATTRIBUTE Password 2 string
> ATTRIBUTE CHAP-Password 3 string
> ATTRIBUTE NAS-IP-Address 4 ipaddr
> ATTRIBUTE NAS-Port-Id 5 integer
> ATTRIBUTE Service-Type 6 integer
> ATTRIBUTE Framed-Protocol 7 integer
> ATTRIBUTE Framed-IP-Address 8 ipaddr
> ATTRIBUTE Framed-IP-Netmask 9 ipaddr
> ATTRIBUTE Framed-Routing 10 integer
> ATTRIBUTE Filter-Id 11 string
> ATTRIBUTE Framed-MTU 12 integer
> ATTRIBUTE Framed-Compression 13 integer
> ATTRIBUTE Login-IP-Host 14 ipaddr
> ATTRIBUTE Login-Service 15 integer
> ATTRIBUTE Login-TCP-Port 16 integer
> ATTRIBUTE Reply-Message 18 string
> ATTRIBUTE Callback-Number 19 string
> ATTRIBUTE Callback-Id 20 string
> ATTRIBUTE Framed-Route 22 string
> ATTRIBUTE Framed-IPX-Network 23 ipaddr
> ATTRIBUTE State 24 string
> ATTRIBUTE Class 25 string
> ATTRIBUTE Vendor-Specific 26 string
> ATTRIBUTE Session-Timeout 27 integer
> ATTRIBUTE Idle-Timeout 28 integer
> ATTRIBUTE Termination-Action 29 integer
> ATTRIBUTE Called-Station-Id 30 string
> ATTRIBUTE Calling-Station-Id 31 string
> ATTRIBUTE NAS-Identifier 32 string
> ATTRIBUTE Proxy-State 33 string
> ATTRIBUTE Login-LAT-Service 34 string
> ATTRIBUTE Login-LAT-Node 35 string
> ATTRIBUTE Login-LAT-Group 36 string
> ATTRIBUTE Framed-AppleTalk-Link 37 integer
> ATTRIBUTE Framed-AppleTalk-Network 38 integer
> ATTRIBUTE Framed-AppleTalk-Zone 39 string
> ATTRIBUTE Acct-Status-Type 40 integer
> ATTRIBUTE Acct-Delay-Time 41 integer
> ATTRIBUTE Acct-Input-Octets 42 integer
> ATTRIBUTE Acct-Output-Octets 43 integer
> ATTRIBUTE Acct-Session-Id 44 string
> ATTRIBUTE Acct-Authentic 45 integer
> ATTRIBUTE Acct-Session-Time 46 integer
> ATTRIBUTE Acct-Input-Packets 47 integer
> ATTRIBUTE Acct-Output-Packets 48 integer
> ATTRIBUTE Acct-Terminate-Cause 49 integer
> ATTRIBUTE Acct-Multi-Session-Id 50 string
> ATTRIBUTE Acct-Link-Count 51 integer
> ATTRIBUTE Event-Timestamp 55 integer
> ATTRIBUTE CHAP-Challenge 60 string
> ATTRIBUTE NAS-Port-Type 61 integer
> ATTRIBUTE Port-Limit 62 integer
> ATTRIBUTE Login-LAT-Port 63 integer
> ATTRIBUTE Connect-Info 77 string
>
> #
> # RFC3162 IPv6 attributes
> #
> ATTRIBUTE NAS-IPv6-Address 95 string
> ATTRIBUTE Framed-Interface-Id 96 string
> ATTRIBUTE Framed-IPv6-Prefix 97 string
> ATTRIBUTE Login-IPv6-Host 98 string
> ATTRIBUTE Framed-IPv6-Route 99 string
> ATTRIBUTE Framed-IPv6-Pool 100 string
>
> #
> # Experimental Non Protocol Attributes used by Cistron-Radiusd
> #
> ATTRIBUTE Huntgroup-Name 221 string
> ATTRIBUTE User-Category 1029 string
> ATTRIBUTE Group-Name 1030 string
> ATTRIBUTE Simultaneous-Use 1034 integer
> ATTRIBUTE Strip-User-Name 1035 integer
> ATTRIBUTE Fall-Through 1036 integer
> ATTRIBUTE Add-Port-To-IP-Address 1037 integer
> ATTRIBUTE Exec-Program 1038 string
> ATTRIBUTE Exec-Program-Wait 1039 string
> ATTRIBUTE Hint 1040 string
>
> #
> # Non-Protocol Attributes
> # These attributes are used internally by the server
> #
> ATTRIBUTE Expiration 21 date
> ATTRIBUTE Auth-Type 1000 integer
> ATTRIBUTE Menu 1001 string
> ATTRIBUTE Termination-Menu 1002 string
> ATTRIBUTE Prefix 1003 string
> ATTRIBUTE Suffix 1004 string
> ATTRIBUTE Group 1005 string
> ATTRIBUTE Crypt-Password 1006 string
> ATTRIBUTE Connect-Rate 1007 integer
>
> #
> # Integer Translations
> #
>
> # User Types
>
> VALUE Service-Type Login-User 1
> VALUE Service-Type Framed-User 2
> VALUE Service-Type Callback-Login-User 3
> VALUE Service-Type Callback-Framed-User 4
> VALUE Service-Type Outbound-User 5
> VALUE Service-Type Administrative-User 6
> VALUE Service-Type NAS-Prompt-User 7
>
> # Framed Protocols
>
> VALUE Framed-Protocol PPP 1
> VALUE Framed-Protocol SLIP 2
>
> # Framed Routing Values
>
> VALUE Framed-Routing None 0
> VALUE Framed-Routing Broadcast 1
> VALUE Framed-Routing Listen 2
> VALUE Framed-Routing Broadcast-Listen 3
>
> # Framed Compression Types
>
> VALUE Framed-Compression None 0
> VALUE Framed-Compression Van-Jacobson-TCP-IP 1
>
> # Login Services
>
> VALUE Login-Service Telnet 0
> VALUE Login-Service Rlogin 1
> VALUE Login-Service TCP-Clear 2
> VALUE Login-Service PortMaster 3
>
> # Status Types
>
> VALUE Acct-Status-Type Start 1
> VALUE Acct-Status-Type Stop 2
> VALUE Acct-Status-Type Alive 3
> VALUE Acct-Status-Type Accounting-On 7
> VALUE Acct-Status-Type Accounting-Off 8
>
> # Authentication Types
>
> VALUE Acct-Authentic RADIUS 1
> VALUE Acct-Authentic Local 2
> VALUE Acct-Authentic PowerLink128 100
>
> # Termination Options
>
> VALUE Termination-Action Default 0
> VALUE Termination-Action RADIUS-Request 1
>
> # NAS Port Types, available in 3.3.1 and later
>
> VALUE NAS-Port-Type Async 0
> VALUE NAS-Port-Type Sync 1
> VALUE NAS-Port-Type ISDN 2
> VALUE NAS-Port-Type ISDN-V120 3
> VALUE NAS-Port-Type ISDN-V110 4
>
> # Acct Terminate Causes, available in 3.3.2 and later
>
> VALUE Acct-Terminate-Cause User-Request 1
> VALUE Acct-Terminate-Cause Lost-Carrier 2
> VALUE Acct-Terminate-Cause Lost-Service 3
> VALUE Acct-Terminate-Cause Idle-Timeout 4
> VALUE Acct-Terminate-Cause Session-Timeout 5
> VALUE Acct-Terminate-Cause Admin-Reset 6
> VALUE Acct-Terminate-Cause Admin-Reboot 7
> VALUE Acct-Terminate-Cause Port-Error 8
> VALUE Acct-Terminate-Cause NAS-Error 9
> VALUE Acct-Terminate-Cause NAS-Request 10
> VALUE Acct-Terminate-Cause NAS-Reboot 11
> VALUE Acct-Terminate-Cause Port-Unneeded 12
> VALUE Acct-Terminate-Cause Port-Preempted 13
> VALUE Acct-Terminate-Cause Port-Suspended 14
> VALUE Acct-Terminate-Cause Service-Unavailable 15
> VALUE Acct-Terminate-Cause Callback 16
> VALUE Acct-Terminate-Cause User-Error 17
> VALUE Acct-Terminate-Cause Host-Request 18
>
> #
> # Non-Protocol Integer Translations
> #
>
> VALUE Auth-Type Local 0
> VALUE Auth-Type System 1
> VALUE Auth-Type SecurID 2
> VALUE Auth-Type Crypt-Local 3
> VALUE Auth-Type Reject 4
>
> #
> # Cistron extensions
> #
> VALUE Auth-Type Pam 253
> VALUE Auth-Type Accept 254
>
> #
> # Experimental Non-Protocol Integer Translations for Cistron-Radiusd
> #
> VALUE Fall-Through No 0
> VALUE Fall-Through Yes 1
> VALUE Add-Port-To-IP-Address No 0
> VALUE Add-Port-To-IP-Address Yes 1
>
> #
> # Configuration Values
> # uncomment these two lines to turn account expiration on
> #
>
> #VALUE Server-Config Password-Expiration 30
> #VALUE Server-Config Password-Warning 5
>
>
>
> more /usr/local/share/freeradius/dictionary.openser
> #$Id: dictionary.radius,v 1.1.1.1 <http://1.1.1.1> 2005/06/13 16:47:30
> bogdan_iancu Exp $
> #
> # SIP RADIUS attributes
> #
> # Schulzrinne indicates attributes according to
> # draft-schulzrinne-sipping-radius-accounting-00
> #
> # Sterman indicates attributes according to
> # draft-sterman-aaa-sip-00
> #
> # Proprietary indicates an attribute that hasn't
> # been standardized
> #
> # Check out http://www.iana.org/assignments/radius-types
> # for up-to-date list of standard RADIUS attributes
> # and values
> #
>
> #
> # NOTE: All standard (IANA registered) attributes are
> # commented out except those that are missing in
> # the default dictionary of the radiusclient-ng
> # library.
> #
>
>
> #### Attributes ###
> ATTRIBUTE User-Name 1 string # RFC2865
> ATTRIBUTE Service-Type 6 integer # RFC2865
> ATTRIBUTE Called-Station-Id 30 string # RFC2865, acc
> ATTRIBUTE Calling-Station-Id 31 string # RFC2865, acc
> ATTRIBUTE Acct-Status-Type 40 integer # RFC2865, acc
> ATTRIBUTE Acct-Session-Id 44 string # RFC2865, acc
> 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-Translated-Request-URI 107 string # Proprietary, acc
> 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 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 SIP-AVP 225 string # Proprietary, avp_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
>
> ### CISCO Vendor Specific Attributes ###
> #VENDOR Cisco 9
> #ATTRIBUTE Cisco-AVPair 1 string Cisco # VSA, auth_radius
>
> ### 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
>
> VALUE Sip-Method INVITE 1 # Proprietary, acc
> VALUE Sip-Method CANCEL 2 # Proprietary, acc
> VALUE Sip-Method ACK 4 # Proprietary, acc
> VALUE Sip-Method BYE 8 # Proprietary, acc
> #
> 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 Other 8192
>
> more /usr/local/etc/radiusclient-ng/dictionary.radius
> #
> # SIP RADIUS attributes
> #
> # Schulzrinne indicates attributes according to
> # draft-schulzrinne-sipping-radius-accounting-00
> #
> # Sterman indicates attributes according to
> # draft-sterman-aaa-sip-00
> #
> # Proprietary indicates an attribute that hasn't
> # been standardized
> #
> # Check out http://www.iana.org/assignments/radius-types
> <http://www.iana.org/assignments/radius-types>
> # for up-to-date list of standard RADIUS attributes
> # and values
> #
>
> #
> # NOTE: All standard (IANA registered) attributes are
> # commented out except those that are missing in
> # the default dictionary of the radiusclient-ng
> # library.
> #
>
>
> #### Attributes ###
> #ATTRIBUTE User-Name 1 string # RFC2865
> #ATTRIBUTE Service-Type 6 integer # RFC2865
> #ATTRIBUTE Called-Station-Id 30 string # RFC2865, acc
> #ATTRIBUTE Calling-Station-Id 31 string # RFC2865, acc
> #ATTRIBUTE Acct-Status-Type 40 integer # RFC2865, acc
> #ATTRIBUTE Acct-Session-Id 44 string # RFC2865, acc
> 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-Translated-Request-URI 107 string # Proprietary, acc
> 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 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 SIP-AVP 225 string # Proprietary, avp_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
>
> ### CISCO Vendor Specific Attributes ###
> #VENDOR Cisco 9
> #ATTRIBUTE Cisco-AVPair 1 string Cisco # VSA, auth_radius
>
> ### 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
>
> VALUE Sip-Method INVITE 1 # Proprietary, acc
> VALUE Sip-Method CANCEL 2 # Proprietary, acc
> VALUE Sip-Method ACK 4 # Proprietary, acc
> VALUE Sip-Method BYE 8 # Proprietary, acc
>
>
>
> p.s. You did install radiusclient-ng didn't you ?
>
>
> iam able to registered users and make calls with freeradius
>
>
> ram
>
More information about the Users
mailing list