Brian Waters | 13d9601 | 2017-12-08 16:53:31 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 Sprint |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | /**************** |
| 18 | Generated By: fdtool enhancements to diafuzzer |
| 19 | License: same as freeDiameter |
| 20 | ****************/ |
| 21 | |
| 22 | |
| 23 | /* |
| 24 | * Dictionary definitions of objects specified in CxDx (e10). |
| 25 | */ |
| 26 | #include <freeDiameter/extension.h> |
| 27 | |
| 28 | #define PROTO_VER "e10" |
| 29 | #define GEN_DATE 1506697212.25 |
| 30 | |
| 31 | const char *cxdx_proto_ver = PROTO_VER; |
| 32 | const double cxdx_gen_date = GEN_DATE; |
| 33 | |
| 34 | /* The content of this file follows the same structure as dict_base_proto.c */ |
| 35 | |
| 36 | #define CHECK_dict_new( _type, _data, _parent, _ref ) \ |
| 37 | { \ |
| 38 | int _ret = fd_dict_new( fd_g_config->cnf_dict, (_type), (_data), (_parent), (_ref) ); \ |
| 39 | if ( _ret != 0 && _ret != EEXIST ) \ |
| 40 | return _ret; \ |
| 41 | } |
| 42 | |
| 43 | #define CHECK_dict_search( _type, _criteria, _what, _result ) \ |
| 44 | CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, (_type), (_criteria), (_what), (_result), ENOENT) ); |
| 45 | |
| 46 | struct local_rules_definition { |
| 47 | struct dict_avp_request avp_vendor_plus_name; |
| 48 | enum rule_position position; |
| 49 | int min; |
| 50 | int max; |
| 51 | }; |
| 52 | |
| 53 | #define RULE_ORDER( _position ) ((((_position) == RULE_FIXED_HEAD) || ((_position) == RULE_FIXED_TAIL)) ? 1 : 0 ) |
| 54 | |
| 55 | /* Attention! This version of the macro uses AVP_BY_NAME_AND_VENDOR, in contrast to most other copies! */ |
| 56 | #define PARSE_loc_rules( _rulearray, _parent) { \ |
| 57 | int __ar; \ |
| 58 | for (__ar=0; __ar < sizeof(_rulearray) / sizeof((_rulearray)[0]); __ar++) { \ |
| 59 | struct dict_rule_data __data = { NULL, \ |
| 60 | (_rulearray)[__ar].position, \ |
| 61 | 0, \ |
| 62 | (_rulearray)[__ar].min, \ |
| 63 | (_rulearray)[__ar].max}; \ |
| 64 | __data.rule_order = RULE_ORDER(__data.rule_position); \ |
| 65 | CHECK_FCT( fd_dict_search( \ |
| 66 | fd_g_config->cnf_dict, \ |
| 67 | DICT_AVP, \ |
| 68 | AVP_BY_NAME_AND_VENDOR, \ |
| 69 | &(_rulearray)[__ar].avp_vendor_plus_name, \ |
| 70 | &__data.rule_avp, 0 ) ); \ |
| 71 | if ( !__data.rule_avp ) { \ |
| 72 | TRACE_DEBUG(INFO, "AVP Not found: '%s'", (_rulearray)[__ar].avp_vendor_plus_name.avp_name); \ |
| 73 | return ENOENT; \ |
| 74 | } \ |
| 75 | { \ |
| 76 | int _ret = fd_dict_new( fd_g_config->cnf_dict, DICT_RULE, &(__data), (_parent), NULL ); \ |
| 77 | if ( _ret != 0 && _ret != EEXIST ) { \ |
| 78 | TRACE_DEBUG(INFO, "Error on rule with AVP '%s'", \ |
| 79 | (_rulearray)[__ar].avp_vendor_plus_name.avp_name); \ |
| 80 | return EINVAL; \ |
| 81 | } \ |
| 82 | } \ |
| 83 | } \ |
| 84 | } |
| 85 | |
| 86 | #define CHECK_vendor_new( _data ) { \ |
| 87 | struct dict_object * vendor_found; \ |
| 88 | if (fd_dict_search(fd_g_config->cnf_dict,DICT_VENDOR,VENDOR_BY_ID,&_data.vendor_id,&vendor_found,ENOENT) == ENOENT) { \ |
| 89 | CHECK_FCT(fd_dict_new(fd_g_config->cnf_dict, DICT_VENDOR, &_data, NULL, NULL)); \ |
| 90 | } \ |
| 91 | } |
| 92 | |
| 93 | #define enumval_def_u32( _val_, _str_ ) \ |
| 94 | { _str_, { .u32 = _val_ }} |
| 95 | |
| 96 | #define enumval_def_os( _len_, _val_, _str_ ) \ |
| 97 | { _str_, { .os = { .data = (unsigned char *)_val_, .len = _len_ }}} |
| 98 | |
| 99 | |
| 100 | static int dict_cxdx_load_defs(char * conffile) |
| 101 | { |
| 102 | TRACE_ENTRY("%p", conffile); |
| 103 | struct dict_object * app_id16777216; |
| 104 | |
| 105 | /* Application Section */ |
| 106 | { |
| 107 | { |
| 108 | struct dict_object * vendor; |
| 109 | CHECK_dict_search(DICT_VENDOR, VENDOR_BY_NAME, "3GPP", &vendor) |
| 110 | struct dict_application_data data = { 16777216, "CxDx" }; |
| 111 | CHECK_dict_new( DICT_APPLICATION, &data, vendor, &app_id16777216) |
| 112 | } |
| 113 | /* Result codes */ |
| 114 | { |
| 115 | struct dict_object *type; |
| 116 | CHECK_dict_search(DICT_TYPE, TYPE_BY_NAME, "Enumerated(Result-Code)",&type); |
| 117 | struct dict_enumval_data t_1 = { "Discovery_of_supported_interface_versions", { .u32=1 }}; |
| 118 | struct dict_enumval_data t_2 = { "Supported_features", { .u32=2 }}; |
| 119 | struct dict_enumval_data t_3 = { "Interface_versions", { .u32=3 }}; |
| 120 | struct dict_enumval_data t_4 = { "Application_ID_value", { .u32=4 }}; |
| 121 | struct dict_enumval_data t_5 = { "Special_Requirements", { .u32=7 }}; |
| 122 | |
| 123 | CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL); |
| 124 | CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL); |
| 125 | CHECK_dict_new( DICT_ENUMVAL, &t_3, type, NULL); |
| 126 | CHECK_dict_new( DICT_ENUMVAL, &t_4, type, NULL); |
| 127 | CHECK_dict_new( DICT_ENUMVAL, &t_5, type, NULL); |
| 128 | |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | |
| 133 | /* AVP section */ |
| 134 | { |
| 135 | struct dict_object * Address_type; |
| 136 | struct dict_object * UTF8String_type; |
| 137 | struct dict_object * DiameterIdentity_type; |
| 138 | struct dict_object * DiameterURI_type; |
| 139 | struct dict_object * Time_type; |
| 140 | struct dict_object * IPFilterRule_type; |
| 141 | |
| 142 | CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "Address", &Address_type); |
| 143 | CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "UTF8String", &UTF8String_type); |
| 144 | CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "DiameterIdentity", &DiameterIdentity_type); |
| 145 | CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "DiameterURI", &DiameterURI_type); |
| 146 | CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "Time", &Time_type); |
| 147 | CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "IPFilterRule", &IPFilterRule_type); |
| 148 | |
| 149 | |
| 150 | } |
| 151 | |
| 152 | /* Commands section */ |
| 153 | { |
| 154 | /* User-Authorization-Request */ |
| 155 | { |
| 156 | struct dict_object* cmd; |
| 157 | struct dict_cmd_data data = { |
| 158 | 300, /* Code */ |
| 159 | "User-Authorization-Request", /* Name */ |
| 160 | CMD_FLAG_REQUEST | CMD_FLAG_ERROR, /* Fixed flags */ |
| 161 | CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 162 | }; |
| 163 | |
| 164 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 165 | } |
| 166 | /* User-Authorization-Answer */ |
| 167 | { |
| 168 | struct dict_object* cmd; |
| 169 | struct dict_cmd_data data = { |
| 170 | 300, /* Code */ |
| 171 | "User-Authorization-Answer", /* Name */ |
| 172 | CMD_FLAG_REQUEST, /* Fixed flags */ |
| 173 | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 174 | }; |
| 175 | |
| 176 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 177 | } |
| 178 | /* Server-Assignment-Request */ |
| 179 | { |
| 180 | struct dict_object* cmd; |
| 181 | struct dict_cmd_data data = { |
| 182 | 301, /* Code */ |
| 183 | "Server-Assignment-Request", /* Name */ |
| 184 | CMD_FLAG_REQUEST | CMD_FLAG_ERROR, /* Fixed flags */ |
| 185 | CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 186 | }; |
| 187 | |
| 188 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 189 | } |
| 190 | /* Server-Assignment-Answer */ |
| 191 | { |
| 192 | struct dict_object* cmd; |
| 193 | struct dict_cmd_data data = { |
| 194 | 301, /* Code */ |
| 195 | "Server-Assignment-Answer", /* Name */ |
| 196 | CMD_FLAG_REQUEST, /* Fixed flags */ |
| 197 | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 198 | }; |
| 199 | |
| 200 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 201 | } |
| 202 | /* Location-Info-Request */ |
| 203 | { |
| 204 | struct dict_object* cmd; |
| 205 | struct dict_cmd_data data = { |
| 206 | 302, /* Code */ |
| 207 | "Location-Info-Request", /* Name */ |
| 208 | CMD_FLAG_REQUEST | CMD_FLAG_ERROR, /* Fixed flags */ |
| 209 | CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 210 | }; |
| 211 | |
| 212 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 213 | } |
| 214 | /* Location-Info-Answer */ |
| 215 | { |
| 216 | struct dict_object* cmd; |
| 217 | struct dict_cmd_data data = { |
| 218 | 302, /* Code */ |
| 219 | "Location-Info-Answer", /* Name */ |
| 220 | CMD_FLAG_REQUEST, /* Fixed flags */ |
| 221 | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 222 | }; |
| 223 | |
| 224 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 225 | } |
| 226 | /* Multimedia-Auth-Request */ |
| 227 | { |
| 228 | struct dict_object* cmd; |
| 229 | struct dict_cmd_data data = { |
| 230 | 303, /* Code */ |
| 231 | "Multimedia-Auth-Request", /* Name */ |
| 232 | CMD_FLAG_REQUEST | CMD_FLAG_ERROR, /* Fixed flags */ |
| 233 | CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 234 | }; |
| 235 | |
| 236 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 237 | } |
| 238 | /* Multimedia-Auth-Answer */ |
| 239 | { |
| 240 | struct dict_object* cmd; |
| 241 | struct dict_cmd_data data = { |
| 242 | 303, /* Code */ |
| 243 | "Multimedia-Auth-Answer", /* Name */ |
| 244 | CMD_FLAG_REQUEST, /* Fixed flags */ |
| 245 | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 246 | }; |
| 247 | |
| 248 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 249 | } |
| 250 | /* Registration-Termination-Request */ |
| 251 | { |
| 252 | struct dict_object* cmd; |
| 253 | struct dict_cmd_data data = { |
| 254 | 304, /* Code */ |
| 255 | "Registration-Termination-Request", /* Name */ |
| 256 | CMD_FLAG_REQUEST | CMD_FLAG_ERROR, /* Fixed flags */ |
| 257 | CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 258 | }; |
| 259 | |
| 260 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 261 | } |
| 262 | /* Registration-Termination-Answer */ |
| 263 | { |
| 264 | struct dict_object* cmd; |
| 265 | struct dict_cmd_data data = { |
| 266 | 304, /* Code */ |
| 267 | "Registration-Termination-Answer", /* Name */ |
| 268 | CMD_FLAG_REQUEST, /* Fixed flags */ |
| 269 | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 270 | }; |
| 271 | |
| 272 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 273 | } |
| 274 | /* Push-Profile-Request */ |
| 275 | { |
| 276 | struct dict_object* cmd; |
| 277 | struct dict_cmd_data data = { |
| 278 | 305, /* Code */ |
| 279 | "Push-Profile-Request", /* Name */ |
| 280 | CMD_FLAG_REQUEST | CMD_FLAG_ERROR, /* Fixed flags */ |
| 281 | CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 282 | }; |
| 283 | |
| 284 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 285 | } |
| 286 | /* Push-Profile-Answer */ |
| 287 | { |
| 288 | struct dict_object* cmd; |
| 289 | struct dict_cmd_data data = { |
| 290 | 305, /* Code */ |
| 291 | "Push-Profile-Answer", /* Name */ |
| 292 | CMD_FLAG_REQUEST, /* Fixed flags */ |
| 293 | CMD_FLAG_PROXIABLE, /* Fixed flag values */ |
| 294 | }; |
| 295 | |
| 296 | CHECK_dict_new( DICT_COMMAND, &data , app_id16777216, &cmd) |
| 297 | } |
| 298 | |
| 299 | } |
| 300 | |
| 301 | return 0; |
| 302 | } |
| 303 | |
| 304 | static int dict_cxdx_load_rules(char * conffile) |
| 305 | { |
| 306 | /* Grouped AVP section */ |
| 307 | { |
| 308 | |
| 309 | } |
| 310 | |
| 311 | /* Commands section */ |
| 312 | { |
| 313 | /* User-Authorization-Request */ |
| 314 | { |
| 315 | struct dict_object* cmd; |
| 316 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "User-Authorization-Request", &cmd) |
| 317 | struct local_rules_definition rules[] = |
| 318 | { |
| 319 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 320 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 321 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 322 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 323 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 324 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 325 | { { .avp_vendor = 0, .avp_name = "Destination-Host"}, RULE_OPTIONAL, -1, -1 }, |
| 326 | { { .avp_vendor = 0, .avp_name = "Destination-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 327 | { { .avp_vendor = 0, .avp_name = "User-Name"}, RULE_REQUIRED, -1, -1 }, |
| 328 | { { .avp_vendor = 0, .avp_name = "OC-Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 329 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 330 | { { .avp_vendor = 10415, .avp_name = "Public-Identity"}, RULE_REQUIRED, -1, -1 }, |
| 331 | { { .avp_vendor = 10415, .avp_name = "Visited-Network-Identifier"}, RULE_REQUIRED, -1, -1 }, |
| 332 | { { .avp_vendor = 10415, .avp_name = "User-Authorization-Type"}, RULE_OPTIONAL, -1, -1 }, |
| 333 | { { .avp_vendor = 10415, .avp_name = "UAR-Flags"}, RULE_OPTIONAL, -1, -1 }, |
| 334 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 335 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 336 | }; |
| 337 | PARSE_loc_rules(rules, cmd); |
| 338 | } |
| 339 | /* User-Authorization-Answer */ |
| 340 | { |
| 341 | struct dict_object* cmd; |
| 342 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "User-Authorization-Answer", &cmd) |
| 343 | struct local_rules_definition rules[] = |
| 344 | { |
| 345 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 346 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 347 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 348 | { { .avp_vendor = 0, .avp_name = "Result-Code"}, RULE_OPTIONAL, -1, -1 }, |
| 349 | { { .avp_vendor = 0, .avp_name = "Experimental-Result"}, RULE_OPTIONAL, -1, -1 }, |
| 350 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 351 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 352 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 353 | { { .avp_vendor = 0, .avp_name = "OC-Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 354 | { { .avp_vendor = 0, .avp_name = "OC-OLR"}, RULE_OPTIONAL, -1, -1 }, |
| 355 | { { .avp_vendor = 0, .avp_name = "Load"}, RULE_OPTIONAL, -1, -1 }, |
| 356 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 357 | { { .avp_vendor = 10415, .avp_name = "Server-Name"}, RULE_OPTIONAL, -1, -1 }, |
| 358 | { { .avp_vendor = 10415, .avp_name = "Server-Capabilities"}, RULE_OPTIONAL, -1, -1 }, |
| 359 | { { .avp_vendor = 0, .avp_name = "Failed-AVP"}, RULE_OPTIONAL, -1, -1 }, |
| 360 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 361 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 362 | }; |
| 363 | PARSE_loc_rules(rules, cmd); |
| 364 | } |
| 365 | /* Server-Assignment-Request */ |
| 366 | { |
| 367 | struct dict_object* cmd; |
| 368 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "Server-Assignment-Request", &cmd) |
| 369 | struct local_rules_definition rules[] = |
| 370 | { |
| 371 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 372 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 373 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 374 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 375 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 376 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 377 | { { .avp_vendor = 0, .avp_name = "Destination-Host"}, RULE_OPTIONAL, -1, -1 }, |
| 378 | { { .avp_vendor = 0, .avp_name = "Destination-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 379 | { { .avp_vendor = 0, .avp_name = "User-Name"}, RULE_OPTIONAL, -1, -1 }, |
| 380 | { { .avp_vendor = 0, .avp_name = "OC-Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 381 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 382 | { { .avp_vendor = 10415, .avp_name = "Public-Identity"}, RULE_OPTIONAL, -1, -1 }, |
| 383 | { { .avp_vendor = 10415, .avp_name = "Wildcarded-Public-Identity"}, RULE_OPTIONAL, -1, -1 }, |
| 384 | { { .avp_vendor = 10415, .avp_name = "Server-Name"}, RULE_REQUIRED, -1, -1 }, |
| 385 | { { .avp_vendor = 10415, .avp_name = "Server-Assignment-Type"}, RULE_REQUIRED, -1, -1 }, |
| 386 | { { .avp_vendor = 10415, .avp_name = "User-Data-Already-Available"}, RULE_REQUIRED, -1, -1 }, |
| 387 | { { .avp_vendor = 10415, .avp_name = "SCSCF-Restoration-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 388 | { { .avp_vendor = 10415, .avp_name = "Multiple-Registration-Indication"}, RULE_OPTIONAL, -1, -1 }, |
| 389 | { { .avp_vendor = 10415, .avp_name = "Session-Priority"}, RULE_OPTIONAL, -1, -1 }, |
| 390 | { { .avp_vendor = 10415, .avp_name = "SAR-Flags"}, RULE_OPTIONAL, -1, -1 }, |
| 391 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 392 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 393 | }; |
| 394 | PARSE_loc_rules(rules, cmd); |
| 395 | } |
| 396 | /* Server-Assignment-Answer */ |
| 397 | { |
| 398 | struct dict_object* cmd; |
| 399 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "Server-Assignment-Answer", &cmd) |
| 400 | struct local_rules_definition rules[] = |
| 401 | { |
| 402 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 403 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 404 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 405 | { { .avp_vendor = 0, .avp_name = "Result-Code"}, RULE_OPTIONAL, -1, -1 }, |
| 406 | { { .avp_vendor = 0, .avp_name = "Experimental-Result"}, RULE_OPTIONAL, -1, -1 }, |
| 407 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 408 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 409 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 410 | { { .avp_vendor = 0, .avp_name = "User-Name"}, RULE_OPTIONAL, -1, -1 }, |
| 411 | { { .avp_vendor = 0, .avp_name = "OC-Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 412 | { { .avp_vendor = 0, .avp_name = "OC-OLR"}, RULE_OPTIONAL, -1, -1 }, |
| 413 | { { .avp_vendor = 0, .avp_name = "Load"}, RULE_OPTIONAL, -1, -1 }, |
| 414 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 415 | { { .avp_vendor = 10415, .avp_name = "User-Data"}, RULE_OPTIONAL, -1, -1 }, |
| 416 | { { .avp_vendor = 10415, .avp_name = "Charging-Information"}, RULE_OPTIONAL, -1, -1 }, |
| 417 | { { .avp_vendor = 10415, .avp_name = "Associated-Identities"}, RULE_OPTIONAL, -1, -1 }, |
| 418 | { { .avp_vendor = 10415, .avp_name = "Loose-Route-Indication"}, RULE_OPTIONAL, -1, -1 }, |
| 419 | { { .avp_vendor = 10415, .avp_name = "SCSCF-Restoration-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 420 | { { .avp_vendor = 10415, .avp_name = "Associated-Registered-Identities"}, RULE_OPTIONAL, -1, -1 }, |
| 421 | { { .avp_vendor = 10415, .avp_name = "Server-Name"}, RULE_OPTIONAL, -1, -1 }, |
| 422 | { { .avp_vendor = 10415, .avp_name = "Wildcarded-Public-Identity"}, RULE_OPTIONAL, -1, -1 }, |
| 423 | { { .avp_vendor = 10415, .avp_name = "Priviledged-Sender-Indication"}, RULE_OPTIONAL, -1, -1 }, |
| 424 | { { .avp_vendor = 10415, .avp_name = "Allowed-WAF-WWSF-Identities"}, RULE_OPTIONAL, -1, -1 }, |
| 425 | { { .avp_vendor = 0, .avp_name = "Failed-AVP"}, RULE_OPTIONAL, -1, -1 }, |
| 426 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 427 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 428 | }; |
| 429 | PARSE_loc_rules(rules, cmd); |
| 430 | } |
| 431 | /* Location-Info-Request */ |
| 432 | { |
| 433 | struct dict_object* cmd; |
| 434 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "Location-Info-Request", &cmd) |
| 435 | struct local_rules_definition rules[] = |
| 436 | { |
| 437 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 438 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 439 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 440 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 441 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 442 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 443 | { { .avp_vendor = 0, .avp_name = "Destination-Host"}, RULE_OPTIONAL, -1, -1 }, |
| 444 | { { .avp_vendor = 0, .avp_name = "Destination-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 445 | { { .avp_vendor = 10415, .avp_name = "Originating-Request"}, RULE_OPTIONAL, -1, -1 }, |
| 446 | { { .avp_vendor = 0, .avp_name = "OC-Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 447 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 448 | { { .avp_vendor = 10415, .avp_name = "Public-Identity"}, RULE_REQUIRED, -1, -1 }, |
| 449 | { { .avp_vendor = 10415, .avp_name = "User-Authorization-Type"}, RULE_OPTIONAL, -1, -1 }, |
| 450 | { { .avp_vendor = 10415, .avp_name = "Session-Priority"}, RULE_OPTIONAL, -1, -1 }, |
| 451 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 452 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 453 | }; |
| 454 | PARSE_loc_rules(rules, cmd); |
| 455 | } |
| 456 | /* Location-Info-Answer */ |
| 457 | { |
| 458 | struct dict_object* cmd; |
| 459 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "Location-Info-Answer", &cmd) |
| 460 | struct local_rules_definition rules[] = |
| 461 | { |
| 462 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 463 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 464 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 465 | { { .avp_vendor = 0, .avp_name = "Result-Code"}, RULE_OPTIONAL, -1, -1 }, |
| 466 | { { .avp_vendor = 0, .avp_name = "Experimental-Result"}, RULE_OPTIONAL, -1, -1 }, |
| 467 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 468 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 469 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 470 | { { .avp_vendor = 0, .avp_name = "OC-Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 471 | { { .avp_vendor = 0, .avp_name = "OC-OLR"}, RULE_OPTIONAL, -1, -1 }, |
| 472 | { { .avp_vendor = 0, .avp_name = "Load"}, RULE_OPTIONAL, -1, -1 }, |
| 473 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 474 | { { .avp_vendor = 10415, .avp_name = "Server-Name"}, RULE_OPTIONAL, -1, -1 }, |
| 475 | { { .avp_vendor = 10415, .avp_name = "Server-Capabilities"}, RULE_OPTIONAL, -1, -1 }, |
| 476 | { { .avp_vendor = 10415, .avp_name = "Wildcarded-Public-Identity"}, RULE_OPTIONAL, -1, -1 }, |
| 477 | { { .avp_vendor = 10415, .avp_name = "LIA-Flags"}, RULE_OPTIONAL, -1, -1 }, |
| 478 | { { .avp_vendor = 0, .avp_name = "Failed-AVP"}, RULE_OPTIONAL, -1, -1 }, |
| 479 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 480 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 481 | }; |
| 482 | PARSE_loc_rules(rules, cmd); |
| 483 | } |
| 484 | /* Multimedia-Auth-Request */ |
| 485 | { |
| 486 | struct dict_object* cmd; |
| 487 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "Multimedia-Auth-Request", &cmd) |
| 488 | struct local_rules_definition rules[] = |
| 489 | { |
| 490 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 491 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 492 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 493 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 494 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 495 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 496 | { { .avp_vendor = 0, .avp_name = "Destination-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 497 | { { .avp_vendor = 0, .avp_name = "Destination-Host"}, RULE_OPTIONAL, -1, -1 }, |
| 498 | { { .avp_vendor = 0, .avp_name = "User-Name"}, RULE_REQUIRED, -1, -1 }, |
| 499 | { { .avp_vendor = 0, .avp_name = "OC-Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 500 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 501 | { { .avp_vendor = 10415, .avp_name = "Public-Identity"}, RULE_REQUIRED, -1, -1 }, |
| 502 | { { .avp_vendor = 10415, .avp_name = "SIP-Auth-Data-Item"}, RULE_REQUIRED, -1, -1 }, |
| 503 | { { .avp_vendor = 10415, .avp_name = "SIP-Number-Auth-Items"}, RULE_REQUIRED, -1, -1 }, |
| 504 | { { .avp_vendor = 10415, .avp_name = "Server-Name"}, RULE_REQUIRED, -1, -1 }, |
| 505 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 506 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 507 | }; |
| 508 | PARSE_loc_rules(rules, cmd); |
| 509 | } |
| 510 | /* Multimedia-Auth-Answer */ |
| 511 | { |
| 512 | struct dict_object* cmd; |
| 513 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "Multimedia-Auth-Answer", &cmd) |
| 514 | struct local_rules_definition rules[] = |
| 515 | { |
| 516 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 517 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 518 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 519 | { { .avp_vendor = 0, .avp_name = "Result-Code"}, RULE_OPTIONAL, -1, -1 }, |
| 520 | { { .avp_vendor = 0, .avp_name = "Experimental-Result"}, RULE_OPTIONAL, -1, -1 }, |
| 521 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 522 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 523 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 524 | { { .avp_vendor = 0, .avp_name = "User-Name"}, RULE_OPTIONAL, -1, -1 }, |
| 525 | { { .avp_vendor = 0, .avp_name = "OC-Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 526 | { { .avp_vendor = 0, .avp_name = "OC-OLR"}, RULE_OPTIONAL, -1, -1 }, |
| 527 | { { .avp_vendor = 0, .avp_name = "Load"}, RULE_OPTIONAL, -1, -1 }, |
| 528 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 529 | { { .avp_vendor = 10415, .avp_name = "Public-Identity"}, RULE_OPTIONAL, -1, -1 }, |
| 530 | { { .avp_vendor = 10415, .avp_name = "SIP-Number-Auth-Items"}, RULE_OPTIONAL, -1, -1 }, |
| 531 | { { .avp_vendor = 10415, .avp_name = "SIP-Auth-Data-Item"}, RULE_OPTIONAL, -1, -1 }, |
| 532 | { { .avp_vendor = 0, .avp_name = "Failed-AVP"}, RULE_OPTIONAL, -1, -1 }, |
| 533 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 534 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 535 | }; |
| 536 | PARSE_loc_rules(rules, cmd); |
| 537 | } |
| 538 | /* Registration-Termination-Request */ |
| 539 | { |
| 540 | struct dict_object* cmd; |
| 541 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "Registration-Termination-Request", &cmd) |
| 542 | struct local_rules_definition rules[] = |
| 543 | { |
| 544 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 545 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 546 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 547 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 548 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 549 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 550 | { { .avp_vendor = 0, .avp_name = "Destination-Host"}, RULE_REQUIRED, -1, -1 }, |
| 551 | { { .avp_vendor = 0, .avp_name = "Destination-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 552 | { { .avp_vendor = 0, .avp_name = "User-Name"}, RULE_REQUIRED, -1, -1 }, |
| 553 | { { .avp_vendor = 10415, .avp_name = "Associated-Identities"}, RULE_OPTIONAL, -1, -1 }, |
| 554 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 555 | { { .avp_vendor = 10415, .avp_name = "Public-Identity"}, RULE_OPTIONAL, -1, -1 }, |
| 556 | { { .avp_vendor = 10415, .avp_name = "Deregistration-Reason"}, RULE_REQUIRED, -1, -1 }, |
| 557 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 558 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 559 | }; |
| 560 | PARSE_loc_rules(rules, cmd); |
| 561 | } |
| 562 | /* Registration-Termination-Answer */ |
| 563 | { |
| 564 | struct dict_object* cmd; |
| 565 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "Registration-Termination-Answer", &cmd) |
| 566 | struct local_rules_definition rules[] = |
| 567 | { |
| 568 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 569 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 570 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 571 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 572 | { { .avp_vendor = 0, .avp_name = "Result-Code"}, RULE_OPTIONAL, -1, -1 }, |
| 573 | { { .avp_vendor = 0, .avp_name = "Experimental-Result"}, RULE_OPTIONAL, -1, -1 }, |
| 574 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 575 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 576 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 577 | { { .avp_vendor = 10415, .avp_name = "Associated-Identities"}, RULE_OPTIONAL, -1, -1 }, |
| 578 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 579 | { { .avp_vendor = 10415, .avp_name = "Identity-with-Emergency-Registration"}, RULE_OPTIONAL, -1, -1 }, |
| 580 | { { .avp_vendor = 0, .avp_name = "Failed-AVP"}, RULE_OPTIONAL, -1, -1 }, |
| 581 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 582 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 583 | }; |
| 584 | PARSE_loc_rules(rules, cmd); |
| 585 | } |
| 586 | /* Push-Profile-Request */ |
| 587 | { |
| 588 | struct dict_object* cmd; |
| 589 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "Push-Profile-Request", &cmd) |
| 590 | struct local_rules_definition rules[] = |
| 591 | { |
| 592 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 593 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 594 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 595 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 596 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 597 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 598 | { { .avp_vendor = 0, .avp_name = "Destination-Host"}, RULE_REQUIRED, -1, -1 }, |
| 599 | { { .avp_vendor = 0, .avp_name = "Destination-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 600 | { { .avp_vendor = 0, .avp_name = "User-Name"}, RULE_REQUIRED, -1, -1 }, |
| 601 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 602 | { { .avp_vendor = 10415, .avp_name = "User-Data"}, RULE_OPTIONAL, -1, -1 }, |
| 603 | { { .avp_vendor = 10415, .avp_name = "Charging-Information"}, RULE_OPTIONAL, -1, -1 }, |
| 604 | { { .avp_vendor = 10415, .avp_name = "SIP-Auth-Data-Item"}, RULE_OPTIONAL, -1, -1 }, |
| 605 | { { .avp_vendor = 10415, .avp_name = "Allowed-WAF-WWSF-Identities"}, RULE_OPTIONAL, -1, -1 }, |
| 606 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 607 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 608 | }; |
| 609 | PARSE_loc_rules(rules, cmd); |
| 610 | } |
| 611 | /* Push-Profile-Answer */ |
| 612 | { |
| 613 | struct dict_object* cmd; |
| 614 | CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "Push-Profile-Answer", &cmd) |
| 615 | struct local_rules_definition rules[] = |
| 616 | { |
| 617 | { { .avp_vendor = 0, .avp_name = "Session-Id"}, RULE_FIXED_HEAD, -1, -1 }, |
| 618 | { { .avp_vendor = 0, .avp_name = "DRMP"}, RULE_OPTIONAL, -1, -1 }, |
| 619 | { { .avp_vendor = 0, .avp_name = "Vendor-Specific-Application-Id"}, RULE_REQUIRED, -1, -1 }, |
| 620 | { { .avp_vendor = 0, .avp_name = "Result-Code"}, RULE_OPTIONAL, -1, -1 }, |
| 621 | { { .avp_vendor = 0, .avp_name = "Experimental-Result"}, RULE_OPTIONAL, -1, -1 }, |
| 622 | { { .avp_vendor = 0, .avp_name = "Auth-Session-State"}, RULE_REQUIRED, -1, -1 }, |
| 623 | { { .avp_vendor = 0, .avp_name = "Origin-Host"}, RULE_REQUIRED, -1, -1 }, |
| 624 | { { .avp_vendor = 0, .avp_name = "Origin-Realm"}, RULE_REQUIRED, -1, -1 }, |
| 625 | { { .avp_vendor = 10415, .avp_name = "Supported-Features"}, RULE_OPTIONAL, -1, -1 }, |
| 626 | { { .avp_vendor = 0, .avp_name = "Failed-AVP"}, RULE_OPTIONAL, -1, -1 }, |
| 627 | { { .avp_vendor = 0, .avp_name = "Proxy-Info"}, RULE_OPTIONAL, -1, -1 }, |
| 628 | { { .avp_vendor = 0, .avp_name = "Route-Record"}, RULE_OPTIONAL, -1, -1 } |
| 629 | }; |
| 630 | PARSE_loc_rules(rules, cmd); |
| 631 | } |
| 632 | |
| 633 | } |
| 634 | |
| 635 | LOG_D( "Extension 'Dictionary definitions for CxDx (e10)' initialized"); |
| 636 | return 0; |
| 637 | } |
| 638 | |
| 639 | int dict_entry(char * conffile) |
| 640 | { |
| 641 | dict_cxdx_load_defs(conffile); |
| 642 | return dict_cxdx_load_rules(conffile); |
| 643 | } |
| 644 | |
| 645 | const char* dict_cxdx_proto_ver(char * conffile) { |
| 646 | return cxdx_proto_ver; |
| 647 | } |
| 648 | |
| 649 | const double dict_cxdx_gen_ts(char * conffile) { |
| 650 | return cxdx_gen_date; |
| 651 | } |
| 652 | |
| 653 | EXTENSION_ENTRY2("dict_cxdx", dict_cxdx_load_defs, dict_cxdx_load_rules, "dict_ts29229_avps", "dict_draftload_avps", "dict_rfc4590_avps", "dict_rfc7683_avps", "dict_rfc7155_avps", "dict_etsi283034_avps", "dict_rfc7944_avps"); |
| 654 | |
| 655 | |
| 656 | |