Commit c21b036f authored by pintar's avatar pintar
Browse files

method OPTIONS added ito dummy and base group of templates

parent 32041f5a
Loading
Loading
Loading
Loading
+41 −0
Original line number Original line Diff line number Diff line
@@ -1169,6 +1169,14 @@ group dummy_templates {
		payload := omit
		payload := omit
	}
	}


    template OPTIONS_Request m_OPTIONS_Dummy :=
    {
        requestLine	:= m_requestLine_dummy(OPTIONS_E),
        msgHeader := m_msgHeader_dummy,
        messageBody := omit,
        payload := omit
    }

	template PRACK_Request m_PRACK_Dummy :=
	template PRACK_Request m_PRACK_Dummy :=
	{
	{
		requestLine	:= m_requestLine_dummy(PRACK_E),
		requestLine	:= m_requestLine_dummy(PRACK_E),
@@ -1267,6 +1275,14 @@ group dummy_templates {
		payload := *
		payload := *
	}
	}


    template OPTIONS_Request mw_OPTIONS_Dummy :=
    {
        requestLine	:= mw_requestLine_dummy(OPTIONS_E),
        msgHeader := mw_msgHeader_dummy,
        messageBody := *,
        payload := *
    }

	template NOTIFY_Request mw_NOTIFY_Dummy :=
	template NOTIFY_Request mw_NOTIFY_Dummy :=
	{
	{
		requestLine	:= mw_requestLine_dummy(NOTIFY_E),
		requestLine	:= mw_requestLine_dummy(NOTIFY_E),
@@ -1471,6 +1487,23 @@ group base_templates{
			}
			}
		}
		}


        template OPTIONS_Request m_OPTIONS_Request_Base (SipUrl p_requestUri, CallId p_callId, CSeq p_cSeq,
          From p_from, To p_to, Via p_via) modifies m_OPTIONS_Dummy :=
        {
            requestLine	:=
            {
                requestUri := p_requestUri
            },
            msgHeader :=
            {
                callId := p_callId,
                cSeq :=  {fieldName:=CSEQ_E, seqNumber:= p_cSeq.seqNumber, method:= "OPTIONS"},
                fromField := p_from,
                toField := p_to,
                via := p_via
            }
        }
		
		template PRACK_Request m_PRACK_Request_Base (SipUrl p_requestUri, CallId p_callId, CSeq p_cSeq,
		template PRACK_Request m_PRACK_Request_Base (SipUrl p_requestUri, CallId p_callId, CSeq p_cSeq,
		  From p_from, To p_to, Via p_via, RAck p_RAck) 
		  From p_from, To p_to, Via p_via, RAck p_RAck) 
		  modifies m_PRACK_Dummy :=
		  modifies m_PRACK_Dummy :=
@@ -1675,6 +1708,14 @@ group base_templates{
			}
			}
		}
		}


        template OPTIONS_Request mw_OPTIONS_Request_Base (template CallId p_callId) modifies mw_OPTIONS_Dummy :=
        {
            msgHeader :=
            {
                callId := p_callId
            }
        }
		
		template PRACK_Request mw_PRACK_Request_Base(template CallId p_callId) modifies mw_PRACK_Dummy :=
		template PRACK_Request mw_PRACK_Request_Base(template CallId p_callId) modifies mw_PRACK_Dummy :=
		{
		{
			msgHeader :=
			msgHeader :=