Commit 120190f6 authored by garciay's avatar garciay
Browse files

Merge code with STF467 (session week#12)

parent 11c78539
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1165,7 +1165,12 @@ module LibSip_Steps {
            inout Request p_request
        ) runs on SipComponent 
        return boolean  {
            var GenericParam v_viaParameter := p_request.msgHeader.via.viaBody[1].viaParams[0];
            var GenericParam v_viaParameter;
            
            if (sizeof(p_request.msgHeader.via.viaBody) <2 ) {
                return (false);
            }
            v_viaParameter := p_request.msgHeader.via.viaBody[1].viaParams[0];
            // second element
            if (not v_viaParameter.id == "tokenized-by") {
                return (false);
+19 −1
Original line number Diff line number Diff line
@@ -2912,6 +2912,24 @@ module LibSip_Templates {
                    messageBody := p_mb
                }

                template(value) Response m_Response_mbody_contact (
                    template(value) StatusLine p_statusLine,
                    template(omit) CallId p_callId := omit,
                    template(omit) CSeq p_cSeq := omit,
                    template(value) From p_from,
                    template(value) To p_to,
                    template(value) Via p_via,
                    template(omit) Route p_route := omit,
                    template(omit) RecordRoute p_recordroute := omit,
                    template(value) MessageBody p_mb,
                    template(value) Contact p_contact
                ) modifies m_Response_mbody := {
                    msgHeader := {
                        contact := p_contact
                    }
                }


                template(value) Response m_Response_PAsserted_Privacy(
                    template(value) StatusLine p_statusLine,
                    template(omit) CallId p_callId := omit,