Commit 814a49f3 authored by pintar's avatar pintar
Browse files

new global variable used in init function. Some AVPs corrected due to standard...

new global variable used in init function. Some AVPs corrected due to standard flag M and V requirement.
parent 2f66deb1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -64,10 +64,12 @@
            
            vc_hostIPAddress := valueof(f_IPV4or6_String2Address (PX_DIAMETER_RF_ETS_IPADDR));
            
            vc_accountingRecordNumber := mw_accounting_Record_Number(3);
            
            vc_send_hopid:=hex2int('00000100'H);
            vc_send_endid:=hex2int('01000000'H);
            
        } // End of function f_DiameterS9_init
        } // End of function f_DiameterRf_init
        
        /*
        *  @desc    This is a test step that init global variables
+1 −3
Original line number Diff line number Diff line
@@ -497,9 +497,7 @@ module DiameterRfRo_TCFunctions {
                                m_accounting_Record_Type(      // containing an Accounting-Record-Type AVP
                                    EVENT_RECORD_E
                                ),
                                m_accounting_Record_Number(    // containing an Acct-Application-Id AVP
                                    3                           //     indicating the value 3
                                )
                                vc_accountingRecordNumber
                        ))
                    );

+8 −8
Original line number Diff line number Diff line
@@ -2604,14 +2604,14 @@ module DiameterRfRo_Templates {
            template Accounting_Record_Type_AVP mw_accounting_Record_Type(
                                                                          template (present) Acc_Record_Type p_aVP_Data := ?
            ) := {
                aVP_Header          := m_aVP_HeaderVid_Mbit1(c_accounting_Record_Type_AVP_Code, 4, c_vendId3gpp),
                aVP_Header          := m_aVP_HeaderVid_Mbit1(c_accounting_Record_Type_AVP_Code, 4, omit),
                aVP_Data := p_aVP_Data
            } // End of template mw_accounting_Record_Type 
            
            template Accounting_Record_Number_AVP mw_accounting_Record_Number(
                                                                              template (present) UInt32 p_aVP_Data := 3
            ) := {
                aVP_Header          := m_aVP_HeaderVid_Mbit1(c_accounting_Record_Number_AVP_Code, 4, c_vendId3gpp),
                aVP_Header          := m_aVP_HeaderVid_Mbit1(c_accounting_Record_Number_AVP_Code, 4, omit),
                aVP_Data            := p_aVP_Data
            } // End of template mw_accounting_Record__Number
            
@@ -2622,7 +2622,7 @@ module DiameterRfRo_Templates {
            template (present) Accounting_Input_Octets_AVP mw_accounting_Input_Octets_AVP(
                                                                                          template (present) UInt64 p_aVP_Data := ?
            ) := {
                aVP_Header          := m_aVP_HeaderVid_Mbit1(c_accounting_Input_Octets_AVP_Code, 8, c_vendId3gpp),
                aVP_Header          := m_aVP_HeaderVid_Mbit1(c_accounting_Input_Octets_AVP_Code, 8, omit),
                octetsTransmitted   := p_aVP_Data
            } // End of template mw_accounting_Input_Octets_AVP 
            
@@ -2633,7 +2633,7 @@ module DiameterRfRo_Templates {
            template (present) Accounting_Output_Octets_AVP mw_accounting_Output_Octets_AVP(
                                                                                        template (present) UInt64 p_aVP_Data := ?
            ) := {
                aVP_Header          := m_aVP_HeaderVid_Mbit1(c_accounting_Output_Octets_AVP_Code, 8, c_vendId3gpp),
                aVP_Header          := m_aVP_HeaderVid_Mbit1(c_accounting_Output_Octets_AVP_Code, 8, omit),
                octetsTransmitted   := p_aVP_Data
            } // End of template mw_accounting_Output_Octets_AVP 
            
@@ -4535,7 +4535,7 @@ module DiameterRfRo_Templates {
                                                                                 in template (value) UInt64     p_time_to_Live,
                                                                                 in template (value) UTF8String p_method
            ) := {
                aVP_Header  := m_aVP_HeaderVid_Mbit1(c_location_Information_AVP_Code, 20 + f_getUTF8StringLength(valueof(p_method)), c_vendId3gpp),
                aVP_Header  := m_aVP_HeaderVid_Mbit0(c_location_Information_AVP_Code, 20 + f_getUTF8StringLength(valueof(p_method)), omit),
                index           := p_index,
                code            := p_code,
                entity          := p_entity,
@@ -4577,7 +4577,7 @@ module DiameterRfRo_Templates {
                                                                      template (present) UInt8        p_namespace_Id := ?,
                                                                      template (present) UTF8String   p_operator_Name := ?
            ) := {
                aVP_Header  := mw_aVP_HeaderVid_Mbit1(c_location_Information_AVP_Code, ?, c_vendId3gpp),//FIXME mw_aVP_HeaderVid_Mbit0(c_operator_Name_AVP_Code),
                aVP_Header  := mw_aVP_Header_Vbit0Mbit0(c_operator_Name_AVP_Code),
                namespace_Id := p_namespace_Id,
                operator_Name := p_operator_Name
            } // End of template mw_operator_Name_AVP
@@ -4602,7 +4602,7 @@ module DiameterRfRo_Templates {
                                                                                    template (present) UInt64     p_time_to_Live := ?,
                                                                                    template (present) UTF8String p_method := ?
            ) := {
                aVP_Header      := mw_aVP_HeaderVid_Mbit1(c_location_Information_AVP_Code, ?, c_vendId3gpp),
                aVP_Header      := mw_aVP_Header_Vbit0Mbit0(c_location_Information_AVP_Code),
                index           := p_index,
                code            := p_code,
                entity          := p_entity,
@@ -4623,7 +4623,7 @@ module DiameterRfRo_Templates {
                                                                      template (present) UInt16     p_index := ?,
                                                                      template (present) UTF8String p_aVP_Data := ?
            ) := {
                aVP_Header  := mw_aVP_HeaderVid_Mbit1(c_location_Data_AVP_Code, ?, c_vendId3gpp),
                aVP_Header  := mw_aVP_Header_Vbit0Mbit0(c_location_Data_AVP_Code),
                index := p_index,
                aVP_Data := p_aVP_Data
            } // End of template mw_location_Data_AVP