Loading ttcn/LibMsrp/LibMsrp_Templates.ttcn3 +133 −1 Original line number Diff line number Diff line Loading @@ -25,19 +25,129 @@ module LibMsrp_Templates { group codes { /** * @desc 200 status * @desc 200 status OK * @see RFC 4975 - Clause 10.1 */ const StatusCode c_OKCode := 200; /** * @desc 400 status Bad request * @see RFC 4975 - Clause 10.2 */ const StatusCode c_BadRequestCode := 400; /** * @desc 403 status Forbidden * @see RFC 4975 - Clause 10.3 */ const StatusCode c_ForbiddenCode := 403; /** * @desc 408 status Request Time-out * @see RFC 4975 - Clause 10.4 */ const StatusCode c_RequestTimeoutCode := 408; /** * @desc 413 status Request Entity Too Large * @see RFC 4975 - Clause 10.5 */ const StatusCode c_RequestEntityTooLargeCode := 413; /** * @desc 415 status Unsupported Media Type * @see RFC 4975 - Clause 10.6 */ const StatusCode c_UnsupportedMediaTypeCode := 415; /** * @desc 423 status Locked * @see RFC 4975 - Clause 10.7 */ const StatusCode c_LockedCode := 423; /** * @desc 481 status Call/Transaction Does Not Exist * @see RFC 4975 - Clause 10.8 */ const StatusCode c_CallTransactionDoesNotExistCode := 481; /** * @desc 501 status Not Implemented * @see RFC 4975 - Clause 10.9 */ const StatusCode c_NotImplementedCode := 501; /** * @desc 506 status Variant also negotiates * @see RFC 4975 - Clause 10.10 */ const StatusCode c_VariantNegotiatesCode := 506; } // End of group codes group comments { /** * @desc Comment for 200 status * @see RFC 4975 - Clause 10.1 */ const charstring c_OKComment := "OK"; /** * @desc Comment for 400 Bad request * @see RFC 4975 - Clause 10.2 */ const charstring c_BadRequestComment := "Bad request"; /** * @desc Comment for 403 Forbidden * @see RFC 4975 - Clause 10.3 */ const charstring c_ForbiddenComment := "Forbidden"; /** * @desc Comment for 408 Request Time-out * @see RFC 4975 - Clause 10.4 */ const charstring c_RequestTimeoutComment := "Request Time-out"; /** * @desc 413 status Request Entity Too Large * @see RFC 4975 - Clause 10.5 */ const charstring c_RequestEntityTooLargeComment := "Request Entity Too Large"; /** * @desc 415 status Unsupported Media Type * @see RFC 4975 - Clause 10.6 */ const charstring c_UnsupportedMediaTypeComment := "Unsupported Media Type"; /** * @desc 423 status Locked * @see RFC 4975 - Clause 10.7 */ const charstring c_LockedComment := "Locked"; /** * @desc 481 status Call/Transaction Does Not Exist * @see RFC 4975 - Clause 10.8 */ const charstring c_CallTransactionDoesNotExistComment := "Call/Transaction Does Not Exist"; /** * @desc 501 status Not Implemented * @see RFC 4975 - Clause 10.9 */ const charstring c_NotImplementedComment := "Not Implemented"; /** * @desc 506 status Variant also negotiates * @see RFC 4975 - Clause 10.10 */ const charstring c_VariantNegotiatesComment := "Variant also negotiates"; } // End of group comments } // End of group constants Loading Loading @@ -384,6 +494,28 @@ module LibMsrp_Templates { } // End of 'headers' field } // End of template mw_msrpResponse_toPath_fromPath template RECEIVE_response mw_msrpResponse_toPath_fromPath_with_transferReports( in template ToPath p_toPath, in template FromPath p_fromPath ) modifies mw_msrpResponse_toPath_fromPath := { headers := { headers := { { reportStatus := { reportID := e_SUCCESS, reportStatus := e_YES } }, // End of 'item#1' of the list { reportStatus := { reportID := e_FAILURE, reportStatus := e_NO } } // End of 'item#2' of the list } // End of 'header' field } // End of 'headers' field } // // End of template mw_msrpResponse_toPath_fromPath_with_transferReports } // End of group msrpResponse } // End of LibMsrp_Templates No newline at end of file Loading
ttcn/LibMsrp/LibMsrp_Templates.ttcn3 +133 −1 Original line number Diff line number Diff line Loading @@ -25,19 +25,129 @@ module LibMsrp_Templates { group codes { /** * @desc 200 status * @desc 200 status OK * @see RFC 4975 - Clause 10.1 */ const StatusCode c_OKCode := 200; /** * @desc 400 status Bad request * @see RFC 4975 - Clause 10.2 */ const StatusCode c_BadRequestCode := 400; /** * @desc 403 status Forbidden * @see RFC 4975 - Clause 10.3 */ const StatusCode c_ForbiddenCode := 403; /** * @desc 408 status Request Time-out * @see RFC 4975 - Clause 10.4 */ const StatusCode c_RequestTimeoutCode := 408; /** * @desc 413 status Request Entity Too Large * @see RFC 4975 - Clause 10.5 */ const StatusCode c_RequestEntityTooLargeCode := 413; /** * @desc 415 status Unsupported Media Type * @see RFC 4975 - Clause 10.6 */ const StatusCode c_UnsupportedMediaTypeCode := 415; /** * @desc 423 status Locked * @see RFC 4975 - Clause 10.7 */ const StatusCode c_LockedCode := 423; /** * @desc 481 status Call/Transaction Does Not Exist * @see RFC 4975 - Clause 10.8 */ const StatusCode c_CallTransactionDoesNotExistCode := 481; /** * @desc 501 status Not Implemented * @see RFC 4975 - Clause 10.9 */ const StatusCode c_NotImplementedCode := 501; /** * @desc 506 status Variant also negotiates * @see RFC 4975 - Clause 10.10 */ const StatusCode c_VariantNegotiatesCode := 506; } // End of group codes group comments { /** * @desc Comment for 200 status * @see RFC 4975 - Clause 10.1 */ const charstring c_OKComment := "OK"; /** * @desc Comment for 400 Bad request * @see RFC 4975 - Clause 10.2 */ const charstring c_BadRequestComment := "Bad request"; /** * @desc Comment for 403 Forbidden * @see RFC 4975 - Clause 10.3 */ const charstring c_ForbiddenComment := "Forbidden"; /** * @desc Comment for 408 Request Time-out * @see RFC 4975 - Clause 10.4 */ const charstring c_RequestTimeoutComment := "Request Time-out"; /** * @desc 413 status Request Entity Too Large * @see RFC 4975 - Clause 10.5 */ const charstring c_RequestEntityTooLargeComment := "Request Entity Too Large"; /** * @desc 415 status Unsupported Media Type * @see RFC 4975 - Clause 10.6 */ const charstring c_UnsupportedMediaTypeComment := "Unsupported Media Type"; /** * @desc 423 status Locked * @see RFC 4975 - Clause 10.7 */ const charstring c_LockedComment := "Locked"; /** * @desc 481 status Call/Transaction Does Not Exist * @see RFC 4975 - Clause 10.8 */ const charstring c_CallTransactionDoesNotExistComment := "Call/Transaction Does Not Exist"; /** * @desc 501 status Not Implemented * @see RFC 4975 - Clause 10.9 */ const charstring c_NotImplementedComment := "Not Implemented"; /** * @desc 506 status Variant also negotiates * @see RFC 4975 - Clause 10.10 */ const charstring c_VariantNegotiatesComment := "Variant also negotiates"; } // End of group comments } // End of group constants Loading Loading @@ -384,6 +494,28 @@ module LibMsrp_Templates { } // End of 'headers' field } // End of template mw_msrpResponse_toPath_fromPath template RECEIVE_response mw_msrpResponse_toPath_fromPath_with_transferReports( in template ToPath p_toPath, in template FromPath p_fromPath ) modifies mw_msrpResponse_toPath_fromPath := { headers := { headers := { { reportStatus := { reportID := e_SUCCESS, reportStatus := e_YES } }, // End of 'item#1' of the list { reportStatus := { reportID := e_FAILURE, reportStatus := e_NO } } // End of 'item#2' of the list } // End of 'header' field } // End of 'headers' field } // // End of template mw_msrpResponse_toPath_fromPath_with_transferReports } // End of group msrpResponse } // End of LibMsrp_Templates No newline at end of file