Changeset 290:7842bed901ca in freeDiameter
- Timestamp:
- May 7, 2010, 4:33:12 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
INSTALL
r234 r290 13 13 make tests 14 14 15 Note: instead of passing options on the command line, you can use a CMake front-end (for example c make-gui)15 Note: instead of passing options on the command line, you can use a CMake front-end (for example ccmake or cmake-gui) 16 16 or edit the CCmakeCache.txt file directly. 17 17 … … 19 19 See the specific INSTALL.distro files matching your situation. 20 20 21 make install has not been tested yet and will probably not behave as expected !21 make install has not been tested yet and will probably not behave as expected. 22 22 23 23 You can configure which extensions to build with CMake: 24 24 IGNORE_ALL_EXTENSIONS:BOOL=OFF (or the following are ignored) 25 BUILD_APP_TEST:BOOL=ON26 BUILD_RT_ANY:BOOL=ON27 BUILD_RT_DEBUG:BOOL=ON28 BUILD_RT_DEFAULT:BOOL=ON29 25 BUILD_SAMPLE:BOOL=ON 26 BUILD_DICT_NASREQ:BOOL=ON 27 BUILD_APP_RADGW:BOOL=ON 28 ... 30 29 31 30 You can change the default configuration file pathname: -
INSTALL.FreeBSD
r249 r290 49 49 50 50 51 ------------------------------ 52 app_acct test ADDITIONAL STEPS 53 ------------------------------ 54 Here is additional steps in order to run the test for app_acct 51 55 56 1) Install the required packages 57 # pkg_add -v -r postgresql84-client 58 # pkg_add -v -r postgresql84-server 59 60 2) Prepare access to the database: 61 # echo postgresql_enable=YES >> /etc/rc.conf 62 # /usr/local/etc/rc.d/postgresql initdb 63 # su - pgsql 64 > /usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start 65 > /usr/local/bin/createuser root 66 Shall the new user be allowed to create databases? (y/n) y 67 > logout 68 # /usr/local/bin/createdb root 69 # /usr/local/bin/psql root 70 root=# CREATE TABLE incoming_test ( 71 root(# recorded_on timestamp with time zone NOT NULL, 72 root(# "Accounting-Record-Type" integer, 73 root(# "Session-Id" bytea, " 74 root(# "Accounting-Record-Number" integer, 75 root(# "Route-Record1" bytea, 76 root(# "Route-Record2" bytea, 77 root(# "Route-Record3" bytea, 78 root(# "Route-Record4" bytea ); 79 root=# \q 80 81 3) configure the sources 82 # ccmake . 83 BUILD_APP_ACCT:BOOL=ON 84 TEST_APP_ACCT:BOOL=ON 85 TEST_APP_ACCT_CONNINFO:STRING="user=root dbname=root" 86 87 4) run the test 88 # freeDiameter/tests/testappacct -d 89 or 90 # make test 91 92 -
INSTALL.Ubuntu
r234 r290 6 6 Additionnaly, these ones may be useful: 7 7 mercurial gdb 8 9 In order to build app_acct extension, you will also need the package libpq-dev. 8 10 9 10 Tested working: Ubuntu Intrepid, Jaunty, Karmic. Debian Lenny. 11 Tested not working: Ubuntu Hardy. 11 Tested not working: Ubuntu Hardy (too old). 12 Tested working: Ubuntu Intrepid, Jaunty, Karmic, Lucid. Debian Lenny. -
doc/app_acct.conf.sample
r284 r290 47 47 # search. This behavior can be changed quite easily if needed. 48 48 49 # The following list is informative only. 50 # You may also consult RFC4005 sections 10.2.1 and 10.2.2 for other examples 51 # "Origin-Host"; 52 # "Origin-Realm"; 53 # "Destination-Realm"; 54 # "Destination-Host"; 55 # "Session-Id"; 56 # "Origin-State-Id"; 57 # "Accounting-Record-Type"; 58 # "Accounting-Record-Number"; 59 # "User-Name"; 60 # "Event-Timestamp"; 61 # "Acct-Application-Id"; 62 # "Accounting-Sub-Session-Id"; 63 # "Acct-Session-Id"; 64 # "Acct-Multi-Session-Id"; 65 # "Origin-AAA-Protocol"; 66 # "Acct-Delay-Time"; 67 # "NAS-Identifier"; 68 # "NAS-IP-Address"; 69 # "NAS-IPv6-Address"; 70 # "NAS-Port"; 71 # "NAS-Port-Id"; 72 # "NAS-Port-Type"; 73 # "Service-Type"; 74 # "Termination-Cause"; 75 # "Accounting-Input-Octets"; 76 # "Accounting-Input-Packets"; 77 # "Accounting-Output-Octets"; 78 # "Accounting-Output-Packets"; 79 # "Acct-Authentic"; 80 # "Acct-Link-Count"; 81 # "Acct-Session-Time"; 82 # "Acct-Tunnel-Connection"; 83 # "Acct-Tunnel-Packets-Lost"; 84 # "Callback-Id"; 85 # "Callback-Number"; 86 # "Called-Station-Id"; 87 # "Calling-Station-Id"; 88 # "Connect-Info"; 89 # "Originating-Line-Info"; 90 # "Authorization-Lifetime"; 91 # "Session-Timeout"; 92 # "Idle-Timeout"; 93 # "Port-Limit"; 94 # "Accounting-Realtime-Required"; 95 # "Acct-Interim-Interval"; 96 # "Filter-Id"; 97 # "NAS-Filter-Rule"; 98 # "Qos-Filter-Rule"; 99 # "Login-IP-Host"; 100 # "Login-IPv6-Host"; 101 # "Login-LAT-Group"; 102 # "Login-LAT-Node"; 103 # "Login-LAT-Port"; 104 # "Login-LAT-Service"; 105 # "Login-Service"; 106 # "Login-TCP-Port"; 107 # "Route-Record" = { multi=5; }; # Record the last 5 hops of the message 108 109 # This is the database table corresponding to this list: 110 # CREATE TABLE app_acct ( 111 # "recorded_on" timestamp with time zone NOT NULL, 112 # "Origin-Host" bytea NOT NULL, 113 # "Origin-Realm" bytea NOT NULL, 114 # "Destination-Realm" bytea, 115 # "Destination-Host" bytea, 116 # "Session-Id" bytea NOT NULL, 117 # "Origin-State-Id" integer, 118 # "Accounting-Record-Type" integer NOT NULL, 119 # "Accounting-Record-Number" integer NOT NULL, 120 # "User-Name" bytea, 121 # "Event-Timestamp" bytea, 122 # "Acct-Application-Id" integer, 123 # "Accounting-Sub-Session-Id" bigint, 124 # "Acct-Session-Id" bytea, 125 # "Acct-Multi-Session-Id" bytea, 126 # "Origin-AAA-Protocol" integer, 127 # "Acct-Delay-Time" integer, 128 # "NAS-Identifier" bytea, 129 # "NAS-IP-Address" bytea, 130 # "NAS-IPv6-Address" bytea, 131 # "NAS-Port" integer, 132 # "NAS-Port-Id" bytea, 133 # "NAS-Port-Type" integer, 134 # "Service-Type" integer, 135 # "Termination-Cause" integer, 136 # "Accounting-Input-Octets" bigint, 137 # "Accounting-Input-Packets" bigint, 138 # "Accounting-Output-Octets" bigint, 139 # "Accounting-Output-Packets" bigint, 140 # "Acct-Authentic" integer, 141 # "Acct-Link-Count" integer, 142 # "Acct-Session-Time" integer, 143 # "Acct-Tunnel-Connection" bytea, 144 # "Acct-Tunnel-Packets-Lost" integer, 145 # "Callback-Id" bytea, 146 # "Callback-Number" bytea, 147 # "Called-Station-Id" bytea, 148 # "Calling-Station-Id" bytea, 149 # "Connect-Info" bytea, 150 # "Originating-Line-Info" bytea, 151 # "Authorization-Lifetime" integer, 152 # "Session-Timeout" integer, 153 # "Idle-Timeout" integer, 154 # "Port-Limit" integer, 155 # "Accounting-Realtime-Required" integer, 156 # "Acct-Interim-Interval" integer, 157 # "Filter-Id" bytea, 158 # "NAS-Filter-Rule" bytea, 159 # "QoS-Filter-Rule" bytea, 160 # "Login-IP-Host" bytea, 161 # "Login-IPv6-Host" bytea, 162 # "Login-LAT-Group" bytea, 163 # "Login-LAT-Node" bytea, 164 # "Login-LAT-Port" bytea, 165 # "Login-LAT-Service" bytea, 166 # "Login-Service" integer, 167 # "Login-TCP-Port" integer, 168 # "Route-Record1" bytea, 169 # "Route-Record2" bytea, 170 # "Route-Record3" bytea, 171 # "Route-Record4" bytea, 172 # "Route-Record5" bytea 173 # ); 174 175 176 49 177 50 178 ####################### … … 72 200 73 201 202
Note: See TracChangeset
for help on using the changeset viewer.