Commit 5b7250d6 authored by rennoch's avatar rennoch
Browse files

- add of TP_PCRF_SN_01 and related templates

- new aux. data type for "set of Specific Action AVP"
parent fb769feb
Loading
Loading
Loading
Loading
+60 −1
Original line number Diff line number Diff line
@@ -570,6 +570,38 @@ module LibDiameter_Templates {
				flow_Status := p_flowStatus
			}
			
            template
            Media_Component_Description_AVP m_mediaComponentDescription_subComponentFlowUN_componentNr
            (template Media_Sub_Component_AVP p_mediaSubComponent, template Media_Component_Number_AVP p_mediaComponentNr)
                modifies m_mediaComponentDescription_dummy := {
                aVP_Header :=
                    m_aVP_HeaderVid(c_vendIdMedia_Component_Description_AVP,
                                    32 + 12, omit),  //     considers lengths:
                                                     //     media_Component_Nr (12)
                                                     //     subComponent (32)
                    media_Sub_component := {p_mediaSubComponent},
                    media_Component_Nr := p_mediaComponentNr
            }
            
         template Media_Component_Number_AVP m_mediaComponentNr(UInt32 p_avpData) := {
             aVP_Header :=
                 m_aVP_HeaderVid(c_vendIdMedia_Component_Number_AVP,
                                 4, omit),
             aVP_Data := p_avpData
         }
			
         template Media_Sub_Component_AVP m_mediaSubComponentUN (template UInt32 p_flowNumber, template Flow_Usage_Type p_flowUsageType ) := {
             aVP_Header := m_aVP_HeaderVid(c_vendIdMedia_Sub_Component_AVP,12+12, omit),
             flow_Number := {aVP_Header := m_aVP_HeaderVid(c_vendIdFlow_Number_AVP,4, omit), aVP_Data := p_flowNumber},
             flow_Description := omit,
             flow_Status := omit,
             flow_Usage := {aVP_Header := m_aVP_HeaderVid(c_vendIdFlow_Usage_AVP,4, omit), aVP_Data := p_flowUsageType},
             max_Requested_Bw_Ul := omit,
             max_Requested_Bw_Dl := omit,
             af_Signalling_Protocol := omit,
             aVP_Type := omit
         }
         
         
         template Media_Sub_Component_AVP mw_mediaSubComponent := {
			 aVP_Header := ?,
@@ -1395,6 +1427,33 @@ module LibDiameter_Templates {
                  media_Component_Description := {p_mediaComponentDescription}
              }
              
              template
              AAR_MSG m_AAR_FIP_SA_Media1(template Session_Id_AVP p_sessionId,
                                        template Origin_Host_AVP p_originHost,
                                        template Origin_Realm_AVP
                                            p_originRealm,
                                        template Destination_Realm_AVP
                                            p_destinationRealm,
                                        template Destination_Host_AVP
                                            p_destinationHost,
                                        template Auth_Application_Id_AVP
                                            p_authApplicationId,
                                        template Framed_IP_Address_AVP
                                            p_framedIpAddress,
                                        template Framed_IPv6_Prefix_AVP
                                            p_framedIp6Address,
                                        template Setof_Specific_Action_AVP
                                            p_specificAction,
                                        template
                                        Media_Component_Description_AVP
                                            p_mediaComponentDescription)
                  modifies m_AAR_basic := {
                  framed_IP_Address := p_framedIpAddress,
                  framed_IPv6_Address := p_framedIp6Address,
                  specific_Action := p_specificAction,
                  media_Component_Description := {p_mediaComponentDescription}
              }

              template RAR_MSG m_RAR_SpecificAction(template Session_Id_AVP p_sessionId,
                                           template Origin_Host_AVP p_originHost,
                                           template Origin_Realm_AVP
+3 −1
Original line number Diff line number Diff line
@@ -1888,6 +1888,8 @@ group BasicTypesAndConstants{
                     Specific_Action_Type	aVP_Data
                 }; 
                 
                type set of Specific_Action_AVP Setof_Specific_Action_AVP;     
 
                type record Max_Requested_Bandwidth_DL_AVP{
                //Ref: ETSI TS 129 214 FMax_Requested_Bandwidth_DL AVP
                    AVP_Header			aVP_Header,//<AVP header: 515 ....>