Navigation


Changeset 1482:8232878f292d in freeDiameter


Ignore:
Timestamp:
Mar 26, 2020, 1:31:54 PM (4 years ago)
Author:
Luke Mewburn <luke@mewburn.net>
Branch:
default
Phase:
public
Message:

dict_dcca_3gpp: fix types of OMA AVPs

Fix AVP types per OMA-DDS-Charging_Data-V1_0-20110201-A.pdf
and 3GPP TS 29.230 V15.7.0 (2019-12):

  • Application-Service-Type (2102) corrected from UTF8String to Enumerated.
  • Application–Session–Id (2103) corrected from UTF8String to Unsigned32.
Location:
extensions/dict_dcca_3gpp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/dict_dcca_3gpp/dict_dcca_3gpp.c

    r1481 r1482  
    1460514605        /*==================================================================*/
    1460614606        /* OMA DDS Charging_Data V1.0 20110201-A                            */
     14607        /* From OMA OMA-DDS-Charging_Data-V1_0-20110201-A.pdf               */
    1460714608        /*==================================================================*/
    1460814609
     
    1462014621        };
    1462114622
    14622         /* Application-Service-Type, UTF8String, code 2102, section 8.4     */
     14623        /* Note: Application-Service-Type (2102) corrected from UTF8String to Enumerated. */
     14624        /* Application-Service-Type, Enumerated, code 2102, section 8.4     */
    1462314625        {
    1462414626                struct dict_avp_data data = {
     
    1462814630                        AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY,    /* Fixed flags */
    1462914631                        AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY,    /* Fixed flag values */
    14630                         AVP_TYPE_OCTETSTRING    /* base type of data */
    14631                 };
    14632                 CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL);
    14633         };
    14634 
    14635         /* Application-Session-Id, UTF8String, code 2103, section 8.4       */
     14632                        AVP_TYPE_INTEGER32      /* base type of data */
     14633                };
     14634                struct dict_object      *type;
     14635                struct dict_type_data    tdata = { AVP_TYPE_INTEGER32, "Enumerated(3GPP/Application-Service-Type)", NULL, NULL, NULL };
     14636                CHECK_dict_new(DICT_TYPE, &tdata, NULL, &type);
     14637                CHECK_dict_new(DICT_AVP, &data, type, NULL);
     14638        };
     14639
     14640        /* Note: Application–Session–Id (2103) corrected from UTF8String to Unsigned32. */
     14641        /* Application-Session-Id, Unsigned32, code 2103, section 8.4       */
    1463614642        {
    1463714643                struct dict_avp_data data = {
     
    1464114647                        AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY,    /* Fixed flags */
    1464214648                        AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY,    /* Fixed flag values */
    14643                         AVP_TYPE_OCTETSTRING    /* base type of data */
    14644                 };
    14645                 CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL);
     14649                        AVP_TYPE_UNSIGNED32     /* base type of data */
     14650                };
     14651                CHECK_dict_new(DICT_AVP, &data, NULL, NULL);
    1464614652        };
    1464714653
  • extensions/dict_dcca_3gpp/dict_dcca_3gpp.csv

    r1481 r1482  
    12711271#=,,,,,,,,
    12721272# OMA DDS Charging_Data V1.0 20110201-A,,,,,,,,
     1273# From OMA OMA-DDS-Charging_Data-V1_0-20110201-A.pdf,,,,,,,,
    12731274#=,,,,,,,,
    12741275#,,,,,,,,
    12751276Application-Server-Id,2101,8.4,UTF8String,"M,V",,,,Y
    1276 Application-Service-Type,2102,8.4,UTF8String,"M,V",,,,Y
    1277 Application-Session-Id,2103,8.4,UTF8String,"M,V",,,,Y
     1277# Note: Application-Service-Type (2102) corrected from UTF8String to Enumerated.,,,,,,,,
     1278Application-Service-Type,2102,8.4,Enumerated,"M,V",,,,Y
     1279# Note: Application–Session–Id (2103) corrected from UTF8String to Unsigned32.,,,,,,,,
     1280Application-Session-Id,2103,8.4,Unsigned32,"M,V",,,,Y
    12781281Content-ID,2116,8.4,UTF8String,"M,V",,,,Y
    12791282Content-provider-ID,2117,8.4,UTF8String,"M,V",,,,Y
Note: See TracChangeset for help on using the changeset viewer.