Commit 2e020921 authored by wattelet's avatar wattelet
Browse files

Templates for insertSubscriberData TCs

parent 379e2c1c
Loading
Loading
Loading
Loading
+116 −5
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ module DiameterS6a_Templates {
                rAT_Freq_Sel_Priority_ID        := omit,
                trace_Data                      := omit,
                gPRS_Subscription_Data          := omit,
                gSG_Subscription_Data           := omit,
				cSG_Subscription_Data           := omit,
				roaming_Rest_Unsupp_Feature     := omit,
                subscribed_Perio_RAUTAU_Timer   := omit,
                mPS_Priority                    := omit,
@@ -293,9 +293,60 @@ module DiameterS6a_Templates {
                template (value) Subscription_Data_AVP m_subscriptionDataApnProfile ( in template (value) APN_Configuration_Profile_AVP
                                                                                                          p_apnConfigurationProfile )
                modifies m_subscriptionData_dummy := {
                    aVP_Header                      := m_aVP_HeaderVid_Mbit1 ( c_subscription_Data_AVP_Code,
                                                                               lengthof ( encvalue ( p_apnConfigurationProfile ))/8,
                                                                               c_vendId3gpp ),
                    aPN_Configuration_Profile       := p_apnConfigurationProfile
                } // End of template m_subscriptionDataApnProfile
                
                template (value) Subscription_Data_AVP m_subscriptionDataGprs ( in template (value) GPRS_Subscription_Data_AVP
                                                                                                    p_gprsSubscriptionData )
                modifies m_subscriptionData_dummy := {
                    aVP_Header                      := m_aVP_HeaderVid_Mbit1 ( c_subscription_Data_AVP_Code,
                                                                               lengthof ( encvalue ( p_gprsSubscriptionData ))/8,
                                                                               c_vendId3gpp ),
					gPRS_Subscription_Data          := p_gprsSubscriptionData
                } // End of template m_subscriptionDataGprs

                template (value) Subscription_Data_AVP m_subscriptionDataAll (
				                                          in template (value) Operator_Determined_Barring_AVP p_operatorDeterminedBarring,
				                                          in template (value) Regional_Subscription_Zone_Code_AVP p_regionalZoneCode,
				                                          in template (value) Access_Restriction_Data_AVP p_accessRestrictionData,
				                                          in template (value) APN_OI_Replacement_AVP p_apnOIReplacement,
				                                          in template (value) LCS_Info_AVP p_lcsInfo,
				                                          in template (value) Teleservice_List_AVP p_teleserviceList,
				                                          in template (value) Call_Barring_Info_AVP p_callBarringInfo,
                                                          in template (value) CSG_Subscription_Data_AVP p_csgSubscriptionData )
                modifies m_subscriptionData_dummy := {
                    aVP_Header                      := m_aVP_HeaderVid_Mbit1 ( c_subscription_Data_AVP_Code,
					                                                           lengthof ( encvalue ( p_operatorDeterminedBarring ))/8
					                                                           + 10 * lengthof ( encvalue ( p_regionalZoneCode ))/8
					                                                           + lengthof ( encvalue ( p_accessRestrictionData ))/8
					                                                           + lengthof ( encvalue ( p_apnOIReplacement ))/8
					                                                           + lengthof ( encvalue ( p_lcsInfo ))/8
					                                                           + lengthof ( encvalue ( p_teleserviceList ))/8
					                                                           + lengthof ( encvalue ( p_callBarringInfo ))/8
                                                                               + lengthof ( encvalue ( p_csgSubscriptionData ))/8,
                                                                               c_vendId3gpp ),
					operator_Determined_Barring     := p_operatorDeterminedBarring,
                    zone_Code                       := { p_regionalZoneCode,
						                                 p_regionalZoneCode,
						                                 p_regionalZoneCode,
						                                 p_regionalZoneCode,
						                                 p_regionalZoneCode,
						                                 p_regionalZoneCode,
						                                 p_regionalZoneCode,
						                                 p_regionalZoneCode,
						                                 p_regionalZoneCode,
						                                 p_regionalZoneCode },
                    access_Restriction_Data         := p_accessRestrictionData,
                    aPN_OI_Replacement              := p_apnOIReplacement,
                    lCS_Info                        := p_lcsInfo,
                    teleservice_List                := p_teleserviceList,
                    call_Barring_Info               := { p_callBarringInfo },
                    cSG_Subscription_Data           := p_csgSubscriptionData
                } // End of template m_subscriptionDataAll
 
				template (value) APN_Configuration_Profile_AVP m_apnConfigurationProfile ( 
				                                                  in template (value) Context_Identifier_AVP p_contextIdentifier,
				                                                  in template (value) All_APN_Conf_Included_Id_AVP p_allAPNConfIncludedId,
@@ -314,7 +365,67 @@ module DiameterS6a_Templates {
                    aVP_Header:= m_aVP_HeaderVid_Mbit1 ( c_all_APN_Configurations_Included_Indicator_AVP_Code,
                                                         lengthof ( encvalue ( p_code ))/8, c_vendId3gpp ),
                    all_APN_Conf_Included_Indicator := p_code
                }
                } // End of template m_allAPNConfIncludedId

				template (value) APN_Configuration_AVP m_apnConfiguration ( 
				                                                  in template (value) Context_Identifier_AVP p_contextIdentifier,
				                                                  in template (value) PDN_Type_AVP p_pdnType,
				                                                  in template (value) Service_Selection_AVP p_serviceSelection,
				                                                  in template (value) MIP6_Agent_Info_AVP p_mIP6AgentInfo ) := {
                    aVP_Header  := m_aVP_HeaderVid_Mbit1 ( c_apn_Configuration_AVP_Code,
                                                           lengthof ( encvalue ( p_contextIdentifier ))/8
                                                           + lengthof ( encvalue ( p_pdnType ))/8
														   + lengthof ( encvalue ( p_serviceSelection ))/8
														   + lengthof ( encvalue ( p_mIP6AgentInfo ))/8, c_vendId3gpp ),
                    context_Identifier       := p_contextIdentifier,
					pDN_Type                 := p_pdnType,
					service_Selection        := p_serviceSelection,
                    mIP6_Agent_Info          := p_mIP6AgentInfo
                } // End of template m_apnConfiguration

				template (value) PDN_Type_AVP m_pdnType ( in template (value) PDN_Type_Code p_code ) := {
                    aVP_Header    := m_aVP_HeaderVid_Mbit1 ( c_pdn_Type_AVP_Code, lengthof ( encvalue ( p_code ))/8, c_vendId3gpp ),
					pDN_Type_Code := p_code
                } // End of template m_pdnType

				template (value) Service_Selection_AVP m_serviceSelection ( in template (value) UTF8String p_avpData ) := {
                    aVP_Header    := m_aVP_HeaderVid_Mbit1 ( c_service_Selection_AVP_Code, lengthof ( p_avpData ), c_vendId3gpp ),
					aVP_Data      := p_avpData
                } // End of template m_serviceSelection

				template (value) Operator_Determined_Barring_AVP m_operatorDeterminedBarring ( in template (value) UInt32 p_avpData ) := {
                    aVP_Header    := m_aVP_HeaderVid_Mbit1 ( c_operator_Determined_Barring_AVP_Code, 4, c_vendId3gpp ),
					aVP_Data      := p_avpData
                } // End of template m_operatorDeterminedBarring

				template (value) Regional_Subscription_Zone_Code_AVP m_regionalSubscriptionZoneCode ( in template (value) octetstring p_avpData ) := {
                    aVP_Header    := m_aVP_HeaderVid_Mbit1 ( c_regional_Subscription_Zone_Code_AVP_Code, lengthof ( p_avpData ), c_vendId3gpp ),
					aVP_Data      := p_avpData
                } // End of template m_regionalSubscriptionZoneCode

				template (value) Access_Restriction_Data_AVP m_accessRestrictionData ( in template (value) UInt32 p_avpData ) := {
                    aVP_Header    := m_aVP_HeaderVid_Mbit1 ( c_access_Restriction_Data_AVP_Code, 4, c_vendId3gpp ),
					aVP_Data      := p_avpData
                } // End of template m_accessRestrictionData

				template (value) APN_OI_Replacement_AVP m_aPNOIReplacement ( in template (value) UTF8String p_avpData ) := {
					aVP_Header    := m_aVP_HeaderVid_Mbit1 ( c_apn_OI_Replacement_AVP_Code, lengthof ( p_avpData ), c_vendId3gpp ),
					aVP_Data      := p_avpData
                } // End of template m_aPNOIReplacement

				template (value) LCS_Info_AVP m_lcsInfo_dummy := {
					aVP_Header           := m_aVP_HeaderVid_Mbit1 ( c_lcs_Info_AVP_Code, 4, c_vendId3gpp ),
					gMLC_Number          := omit,
					lCS_PrivacyException := omit,
					mO_LR                := omit,
					aVP_Type             := omit
                } // End of template m_lcsInfo_dummy

				template (value) Teleservice_List_AVP m_teleserviceListTsCode ( in template (value) TS_Code_AVP p_tSCode ) := {
					aVP_Header    := m_aVP_HeaderVid_Mbit1 ( c_teleservice_List_AVP_Code, lengthof ( encvalue ( p_tSCode ))/8, c_vendId3gpp ),
					tS_Code       := { p_tSCode },
					aVP_Type      := omit
                } // End of template m_teleserviceListTsCode

            } // End of group sendingTemplatesForAVPs
            
@@ -1388,7 +1499,7 @@ module DiameterS6a_Templates {
                    rAT_Freq_Sel_Priority_ID        := *,
                    trace_Data                      := *,
                    gPRS_Subscription_Data          := *,
                    gSG_Subscription_Data           := *,
                    cSG_Subscription_Data           := *,
                    roaming_Rest_Unsupp_Feature     := *,
                    subscribed_Perio_RAUTAU_Timer   := *,
                    mPS_Priority                    := *,