Loading LibMsrp/LibMsrp_Templates.ttcn3 +65 −7 Original line number Original line Diff line number Diff line Loading @@ -245,6 +245,18 @@ module LibMsrp_Templates { } // End of template mw_contentStuff_any } // End of template mw_contentStuff_any template ContentType mw_contentType( in charstring p_mediaType, in charstring p_subType ) modifies mw_contentType_any := { contentTypeID := e_CONTENT_TYPE, mediaType := { mediaType := char2oct(p_mediaType), subType := char2oct(p_subType), genParams := * } // End of 'mediaType' field } // End of template mw_contentType } // End of group msrpContent } // End of group msrpContent /** /** Loading Loading @@ -275,7 +287,7 @@ module LibMsrp_Templates { m_msrpToPath_Dummy m_msrpToPath_Dummy }, }, fromPaths := { fromPaths := { m_msrpToPath_Dummy m_msrpFromPath_Dummy }, }, headers := { headers := { { messageID := m_msrpMessageID_Dummy }, { messageID := m_msrpMessageID_Dummy }, Loading @@ -295,18 +307,22 @@ module LibMsrp_Templates { template SEND_request mw_msrpSEND_any := { template SEND_request mw_msrpSEND_any := { startLine := mw_RequestLine_SEND_any, startLine := mw_RequestLine_SEND_any, headers := mw_Headers_any, headers := mw_Headers_any, contentStuff := ?, contentStuff := mw_contentStuff_any, endLine := mw_EndLine_noMore endLine := mw_EndLine_noMore } // End of template mw_msrpSEND_any } // End of template mw_msrpSEND_any template SEND_request mw_msrpSEND_toPath_FromPath( template SEND_request mw_msrpSEND_toPath_fromPath_contentType( in template ToPath p_toPath, in template ToPath p_toPath, in template FromPath p_fromPath in template FromPath p_fromPath, in template ContentType p_contentType ) modifies mw_msrpSEND_any := { ) modifies mw_msrpSEND_any := { headers := mw_Headers_toPath_FromPath( headers := mw_Headers_toPath_FromPath( p_toPath, p_toPath, p_fromPath) p_fromPath), } // End of template mw_msrpSEND_toPath_FromPath contentStuff := { contentType := p_contentType } } // End of template mw_msrpSEND_toPath_fromPath_contentType } // End of group msrpSEND } // End of group msrpSEND Loading @@ -315,9 +331,37 @@ module LibMsrp_Templates { group msrpResponse { group msrpResponse { /** * @desc Dummy send template for RECEIVE response * @ see RFC 4975 - Figure 2: Example MSRP Exchange */ template (value) RECEIVE_response m_msrpResponse_Dummy := { startLine := { tagMsrp := e_MSRP, transactionID := "a786hjs2", statusCode := c_OKCode, comment := c_OKComment }, // End of 'startLine' field headers := { toPaths := { m_msrpFromPath_Dummy }, fromPaths := { m_msrpToPath_Dummy }, headers := { { messageID := m_msrpMessageID_Dummy } } }, // End of 'headers' field endLine := { transactionID := "a786hjs2", continuationFlag := false } } // End of template m_msrpResponse_Dummy template RECEIVE_response mw_msrpResponse_any := { template RECEIVE_response mw_msrpResponse_any := { startLine := mw_ResponseLine_any, startLine := mw_ResponseLine_any, headers := ?, headers := mw_Headers_any, endLine := mw_EndLine_noMore endLine := mw_EndLine_noMore } // End of template mw_msrpResponse_any } // End of template mw_msrpResponse_any Loading @@ -326,6 +370,20 @@ module LibMsrp_Templates { startLine := mw_ResponseLine_success startLine := mw_ResponseLine_success } // End of template mw_msrpResponse_success } // End of template mw_msrpResponse_success template RECEIVE_response mw_msrpResponse_toPath_fromPath( in template ToPath p_toPath, in template FromPath p_fromPath ) modifies mw_msrpResponse_success := { headers := { toPaths := { p_toPath }, fromPaths := { p_fromPath } } // End of 'headers' field } // End of template mw_msrpResponse_toPath_fromPath } // End of group msrpResponse } // End of group msrpResponse } // End of LibMsrp_Templates } // End of LibMsrp_Templates No newline at end of file Loading
LibMsrp/LibMsrp_Templates.ttcn3 +65 −7 Original line number Original line Diff line number Diff line Loading @@ -245,6 +245,18 @@ module LibMsrp_Templates { } // End of template mw_contentStuff_any } // End of template mw_contentStuff_any template ContentType mw_contentType( in charstring p_mediaType, in charstring p_subType ) modifies mw_contentType_any := { contentTypeID := e_CONTENT_TYPE, mediaType := { mediaType := char2oct(p_mediaType), subType := char2oct(p_subType), genParams := * } // End of 'mediaType' field } // End of template mw_contentType } // End of group msrpContent } // End of group msrpContent /** /** Loading Loading @@ -275,7 +287,7 @@ module LibMsrp_Templates { m_msrpToPath_Dummy m_msrpToPath_Dummy }, }, fromPaths := { fromPaths := { m_msrpToPath_Dummy m_msrpFromPath_Dummy }, }, headers := { headers := { { messageID := m_msrpMessageID_Dummy }, { messageID := m_msrpMessageID_Dummy }, Loading @@ -295,18 +307,22 @@ module LibMsrp_Templates { template SEND_request mw_msrpSEND_any := { template SEND_request mw_msrpSEND_any := { startLine := mw_RequestLine_SEND_any, startLine := mw_RequestLine_SEND_any, headers := mw_Headers_any, headers := mw_Headers_any, contentStuff := ?, contentStuff := mw_contentStuff_any, endLine := mw_EndLine_noMore endLine := mw_EndLine_noMore } // End of template mw_msrpSEND_any } // End of template mw_msrpSEND_any template SEND_request mw_msrpSEND_toPath_FromPath( template SEND_request mw_msrpSEND_toPath_fromPath_contentType( in template ToPath p_toPath, in template ToPath p_toPath, in template FromPath p_fromPath in template FromPath p_fromPath, in template ContentType p_contentType ) modifies mw_msrpSEND_any := { ) modifies mw_msrpSEND_any := { headers := mw_Headers_toPath_FromPath( headers := mw_Headers_toPath_FromPath( p_toPath, p_toPath, p_fromPath) p_fromPath), } // End of template mw_msrpSEND_toPath_FromPath contentStuff := { contentType := p_contentType } } // End of template mw_msrpSEND_toPath_fromPath_contentType } // End of group msrpSEND } // End of group msrpSEND Loading @@ -315,9 +331,37 @@ module LibMsrp_Templates { group msrpResponse { group msrpResponse { /** * @desc Dummy send template for RECEIVE response * @ see RFC 4975 - Figure 2: Example MSRP Exchange */ template (value) RECEIVE_response m_msrpResponse_Dummy := { startLine := { tagMsrp := e_MSRP, transactionID := "a786hjs2", statusCode := c_OKCode, comment := c_OKComment }, // End of 'startLine' field headers := { toPaths := { m_msrpFromPath_Dummy }, fromPaths := { m_msrpToPath_Dummy }, headers := { { messageID := m_msrpMessageID_Dummy } } }, // End of 'headers' field endLine := { transactionID := "a786hjs2", continuationFlag := false } } // End of template m_msrpResponse_Dummy template RECEIVE_response mw_msrpResponse_any := { template RECEIVE_response mw_msrpResponse_any := { startLine := mw_ResponseLine_any, startLine := mw_ResponseLine_any, headers := ?, headers := mw_Headers_any, endLine := mw_EndLine_noMore endLine := mw_EndLine_noMore } // End of template mw_msrpResponse_any } // End of template mw_msrpResponse_any Loading @@ -326,6 +370,20 @@ module LibMsrp_Templates { startLine := mw_ResponseLine_success startLine := mw_ResponseLine_success } // End of template mw_msrpResponse_success } // End of template mw_msrpResponse_success template RECEIVE_response mw_msrpResponse_toPath_fromPath( in template ToPath p_toPath, in template FromPath p_fromPath ) modifies mw_msrpResponse_success := { headers := { toPaths := { p_toPath }, fromPaths := { p_fromPath } } // End of 'headers' field } // End of template mw_msrpResponse_toPath_fromPath } // End of group msrpResponse } // End of group msrpResponse } // End of LibMsrp_Templates } // End of LibMsrp_Templates No newline at end of file