Loading ttcn/LibDiameter_Templates.ttcn 0 → 100644 +81 −0 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id:$ * @desc This module defines Diameter Templates for message, header, and * structured types. <br> * Note that any changes made to the definitions in this module * may be overwritten by future releases of this library * End users are encouraged to contact the distributers of this * module regarding their modifications or additions * @remark Any additions to the templates shall follow the design rules * and always modify base templates only; */ module LibDiameter_Templates { import from LibDiameter_TypesAndValues all; import from LibCommon_DataStrings {type Bit8;}//all; group Constants{//move them into Type module const integer c_versionId := 1; const integer c_applidCommonMsg := 0; //For DWR, DWA const integer c_applidSip := 16777216; //For other messages 16777216 (Vendor specific applications = 16777216 - 4294967294(0x01000000-0xfffffffe)) const Bit8 c_cmdflags_Req := '10000000'B; //CommandFlags = Request const Bit8 c_cmdflags_Ans := '00000000'B; //CommandFlags = Answer const Bit8 c_cmdflags_AnsProx := '01000000'B; //CommandFlags = AnswerProxiable } //internal PIXITS if some group ModuleParameters { } //end group ModuleParameters group SubFields{ } //end group SubFields group HeaderFieldTemplates{ group DiameterHeader{ template Diameter_Header m_diameterHeaderReq_dummy(Command_Code p_cmdcode) := { version := c_versionId, msglen := 0, //Message lenght with AVPs has to be calculated cmdflags := c_cmdflags_Req, //RPETrrrr cmdcode := p_cmdcode, //Command code applid := c_applidSip, //Diameter common messages =0, Vendor specific applications = 16777216 - 4294967294(0x01000000-0xfffffffe) hopid := omit, endid := omit } template Diameter_Header mw_diameterHeaderAns_dummy := { version := c_versionId, msglen := ?, //Message lenght with AVPs has to be calculated cmdflags := ?, //RPETrrrr cmdcode := ?, //Command code applid := c_applidSip, //Diameter common messages =0, Vendor specific applications = 16777216 - 4294967294(0x01000000-0xfffffffe) hopid := *, endid := * } } //end group DiameterHeader group SpecificAVPHeaders{ } //end group SpecificAVPHeaders } //end group HeaderFieldTemplates /** Message templates for CER,CEA, DWR, DWA, AAA, AAR, .... methods */ group MessageTemplates { group dummy_templates { group dummy_request_templates_send { }//end group dummy_request_templates_send group dummy_request_templates_receive { }//end group dummy_request_templates_receive group dummy_answer_templates_send { }//end group dummy_answer_templates_send group dummy_answer_templates_receive { }//end group dummy_answer_templates_receive } //end group dummy_templates group base_templates { } //end group base_templates group modified_templates { } //end group modified_templates } //end group MessageTemplates }//end module LibDiameter_Templates No newline at end of file Loading
ttcn/LibDiameter_Templates.ttcn 0 → 100644 +81 −0 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id:$ * @desc This module defines Diameter Templates for message, header, and * structured types. <br> * Note that any changes made to the definitions in this module * may be overwritten by future releases of this library * End users are encouraged to contact the distributers of this * module regarding their modifications or additions * @remark Any additions to the templates shall follow the design rules * and always modify base templates only; */ module LibDiameter_Templates { import from LibDiameter_TypesAndValues all; import from LibCommon_DataStrings {type Bit8;}//all; group Constants{//move them into Type module const integer c_versionId := 1; const integer c_applidCommonMsg := 0; //For DWR, DWA const integer c_applidSip := 16777216; //For other messages 16777216 (Vendor specific applications = 16777216 - 4294967294(0x01000000-0xfffffffe)) const Bit8 c_cmdflags_Req := '10000000'B; //CommandFlags = Request const Bit8 c_cmdflags_Ans := '00000000'B; //CommandFlags = Answer const Bit8 c_cmdflags_AnsProx := '01000000'B; //CommandFlags = AnswerProxiable } //internal PIXITS if some group ModuleParameters { } //end group ModuleParameters group SubFields{ } //end group SubFields group HeaderFieldTemplates{ group DiameterHeader{ template Diameter_Header m_diameterHeaderReq_dummy(Command_Code p_cmdcode) := { version := c_versionId, msglen := 0, //Message lenght with AVPs has to be calculated cmdflags := c_cmdflags_Req, //RPETrrrr cmdcode := p_cmdcode, //Command code applid := c_applidSip, //Diameter common messages =0, Vendor specific applications = 16777216 - 4294967294(0x01000000-0xfffffffe) hopid := omit, endid := omit } template Diameter_Header mw_diameterHeaderAns_dummy := { version := c_versionId, msglen := ?, //Message lenght with AVPs has to be calculated cmdflags := ?, //RPETrrrr cmdcode := ?, //Command code applid := c_applidSip, //Diameter common messages =0, Vendor specific applications = 16777216 - 4294967294(0x01000000-0xfffffffe) hopid := *, endid := * } } //end group DiameterHeader group SpecificAVPHeaders{ } //end group SpecificAVPHeaders } //end group HeaderFieldTemplates /** Message templates for CER,CEA, DWR, DWA, AAA, AAR, .... methods */ group MessageTemplates { group dummy_templates { group dummy_request_templates_send { }//end group dummy_request_templates_send group dummy_request_templates_receive { }//end group dummy_request_templates_receive group dummy_answer_templates_send { }//end group dummy_answer_templates_send group dummy_answer_templates_receive { }//end group dummy_answer_templates_receive } //end group dummy_templates group base_templates { } //end group base_templates group modified_templates { } //end group modified_templates } //end group MessageTemplates }//end module LibDiameter_Templates No newline at end of file