Commit d53e3d91 authored by Thomas Klausner's avatar Thomas Klausner

Add more rules. Sort a bit.

parent 1304d2fa
......@@ -10382,6 +10382,20 @@ static int dict_dcca_3gpp_entry(char * conffile)
PARSE_loc_rules(rules, ccr);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
vpa.avp_vendor = 10415;
vpa.avp_name = "Address-Domain";
CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp);
struct local_rules_definition rules[] =
{
{ { .avp_vendor = 10415, .avp_name = "Domain-Name" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "3GPP-IMSI-MCC-MNC" }, RULE_OPTIONAL, -1, 1 },
};
PARSE_loc_rules(rules, rule_avp);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
......@@ -10396,6 +10410,22 @@ static int dict_dcca_3gpp_entry(char * conffile)
PARSE_loc_rules(rules, rule_avp);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
vpa.avp_vendor = 10415;
vpa.avp_name = "Destination-Interface";
CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp);
struct local_rules_definition rules[] =
{
{ { .avp_vendor = 10415, .avp_name = "Interface-Id" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Interface-Text" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Interface-Port" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Interface-Type" }, RULE_OPTIONAL, -1, 1 },
};
PARSE_loc_rules(rules, rule_avp);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
......@@ -10482,6 +10512,20 @@ static int dict_dcca_3gpp_entry(char * conffile)
PARSE_loc_rules(rules, rule_avp);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
vpa.avp_vendor = 10415;
vpa.avp_name = "Message-Class";
CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp);
struct local_rules_definition rules[] =
{
{ { .avp_vendor = 10415, .avp_name = "Class-Identifier" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Token-Text" }, RULE_OPTIONAL, -1, 1 },
};
PARSE_loc_rules(rules, rule_avp);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
......@@ -10543,22 +10587,6 @@ static int dict_dcca_3gpp_entry(char * conffile)
PARSE_loc_rules(rules, rule_avp);
}
{
/* Used-Service-Unit */
/* additional allowed AVPs */
struct dict_object *rule_avp;
struct dict_avp_request vpa;
vpa.avp_vendor = 0;
vpa.avp_name = "Used-Service-Unit";
CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp);
struct local_rules_definition rules[] =
{
{ { .avp_vendor = 10415, .avp_name = "Reporting-Reason" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Event-Charging-TimeStamp" }, RULE_OPTIONAL, -1, -1 },
};
PARSE_loc_rules(rules, rule_avp);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
......@@ -10590,6 +10618,22 @@ static int dict_dcca_3gpp_entry(char * conffile)
PARSE_loc_rules(rules, rule_avp);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
vpa.avp_vendor = 10415;
vpa.avp_name = "Originator-Interface";
CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp);
struct local_rules_definition rules[] =
{
{ { .avp_vendor = 10415, .avp_name = "Interface-Id" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Interface-Text" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Interface-Port" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Interface-Type" }, RULE_OPTIONAL, -1, 1 },
};
PARSE_loc_rules(rules, rule_avp);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
......@@ -10679,6 +10723,38 @@ static int dict_dcca_3gpp_entry(char * conffile)
PARSE_loc_rules(rules, rule_avp);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
vpa.avp_vendor = 10415;
vpa.avp_name = "Recipient-Info";
CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp);
struct local_rules_definition rules[] =
{
{ { .avp_vendor = 10415, .avp_name = "Destination-Interface" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Recipient-Address" }, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Recipient-Received-Address" }, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Recipient-SCCP-Address" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "SM-Protocol-ID" }, RULE_OPTIONAL, -1, 1 },
};
PARSE_loc_rules(rules, rule_avp);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
vpa.avp_vendor = 10415;
vpa.avp_name = "Recipient-Received-Address";
CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp);
struct local_rules_definition rules[] =
{
{ { .avp_vendor = 10415, .avp_name = "Address-Type" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Address-Data" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Address-Domain" }, RULE_OPTIONAL, -1, 1 },
};
PARSE_loc_rules(rules, rule_avp);
}
{
struct dict_object *rule_avp;
struct dict_avp_request vpa;
......@@ -10785,6 +10861,22 @@ static int dict_dcca_3gpp_entry(char * conffile)
PARSE_loc_rules(rules, rule_avp);
}
{
/* Used-Service-Unit */
/* additional allowed AVPs */
struct dict_object *rule_avp;
struct dict_avp_request vpa;
vpa.avp_vendor = 0;
vpa.avp_name = "Used-Service-Unit";
CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp);
struct local_rules_definition rules[] =
{
{ { .avp_vendor = 10415, .avp_name = "Reporting-Reason" }, RULE_OPTIONAL, -1, 1 },
{ { .avp_vendor = 10415, .avp_name = "Event-Charging-TimeStamp" }, RULE_OPTIONAL, -1, -1 },
};
PARSE_loc_rules(rules, rule_avp);
}
/* OMA */
{
struct dict_object *rule_avp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment