Commit 52ad5c20 authored by garciay's avatar garciay
Browse files

Update TC_IMS_CHAT_0007..13

parent 341735dc
Loading
Loading
Loading
Loading
+76 −1
Original line number Diff line number Diff line
@@ -166,6 +166,12 @@ module LibMsrp_Templates {
            method := e_SEND
        } // End of template mw_RequestLine_SEND_any
        
        template RequestLine mw_RequestLine_REPORT_any := {
            tagMsrp := e_MSRP, 
            transactionID := ?, 
            method := e_REPORT
        } // End of template mw_RequestLine_SEND_any
        
        /**
         * @desc Generic receive template for RECEIVE start response line 
         */
@@ -385,6 +391,22 @@ module LibMsrp_Templates {
            /**
             * @desc Dummy send template for SEND request
             * @ see RFC 4975 - Figure 2: Example MSRP Exchange
             * <pre>
             *     MSRP a786hjs2 SEND
             *     To-Path: msrp://biloxi.example.com:12763/kjhd37s2s20w2a;tcp
             *     From-Path: msrp://atlanta.example.com:7654/jshA7weztas;tcp
             *     Message-ID: 87652491
             *     Byte-Range: 1-25/25
             *     Content-Type: text/plain
             *  
             *     Hey Bob, are you there?
             *     -------a786hjs2$
             *  
             *     MSRP a786hjs2 200 OK
             *     To-Path: msrp://atlanta.example.com:7654/jshA7weztas;tcp
             *     From-Path: msrp://biloxi.example.com:12763/kjhd37s2s20w2a;tcp
             *     -------a786hjs2$
             * </pre>
             */
            template (value) SEND_request m_msrpSend_Dummy := { 
                startLine := { 
@@ -411,6 +433,44 @@ module LibMsrp_Templates {
                } 
            } // End of template m_msrpSend_Dummy
            
            /**
             * @desc Dummy send template for SEND request
             * @ see RFC 4975 - Figure 2: Example MSRP Exchange
             * <pre>
             *      MSRP a786hjs2 REPORT
             *      To-Path: msrp://alicepc.example.com:7777/iau39soe2843z;tcp
             *      From-Path: msrp://bob.example.com:8888/9di4eae923wzd;tcp
             *      Message-ID: 87652491
             *      Byte-Range: 1-25/25
             *      Status: 000 200 OK
             *      ——-a786hjs2$
             * </pre>
             */
            template (value) SEND_request m_msrpReport_Dummy := { 
                startLine := { 
                    tagMsrp := e_MSRP, 
                    transactionID := "a786hjs2", 
                    method := e_REPORT 
                }, // End of 'startLine' field 
                headers := { 
                    toPaths := { 
                        m_msrpToPath_Dummy 
                    }, 
                    fromPaths := { 
                        m_msrpFromPath_Dummy 
                    }, 
                    headers := { 
                        { messageID := m_msrpMessageID_Dummy }, 
                        { byteRange := m_msrpByteRange_Dummy } 
                    } 
                }, // End of 'headers' field 
                contentStuff := m_msrpContentStuff_Dummy, 
                endLine := { 
                    transactionID := "a786hjs2", 
                    continuationFlag := false 
                } 
            } // End of template m_msrpSend_Dummy
            
            /**
             * @desc Generic receive template for SEND request
             */
@@ -434,6 +494,21 @@ module LibMsrp_Templates {
                }
            } // End of template mw_msrpSEND_toPath_fromPath_contentType
            
            template SEND_request mw_msrpREPORT_success modifies mw_msrpSEND_any := {
                startLine := mw_RequestLine_REPORT_any,
                headers := {
                    headers := {
                        {
                            status := {
                                statusID := e_STATUS, 
                                namespace := 0,
                                statusCode := c_OKCode, 
                                comment := c_OKComment
                            } // End of 'status' field
                        }
                    }
                } // End of 'headers' field
            } // End of template mw_msrpREPORT_success
            
        } // End of group msrpSEND
    
@@ -494,7 +569,7 @@ module LibMsrp_Templates {
            } // End of 'headers' field
        } // End of template mw_msrpResponse_toPath_fromPath
        
        template RECEIVE_response mw_msrpResponse_toPath_fromPath_with_transferReports( 
        template RECEIVE_response mw_msrpResponse_toPath_fromPath_with_transferReports( // TODO Check if it it really used
            in template ToPath p_toPath, 
            in template FromPath p_fromPath 
        ) modifies mw_msrpResponse_toPath_fromPath := {