OVERVIEW INDEX DEPRECATED HELP CORRESPONDENCES | provided by TTworkbench

Modulepars Data Types Component Types Port Types Constants Templates Signatures Functions Altsteps Test cases

# Module LibSip_Templates

This module defines SIP Templates for message, header, and structured types.
Note that any changes made to the definitions in this module may be overwritten by future releases of this library End users are encouraged to contact the distributers of this module regarding their modifications or additions
Version: $Id: LibSip_Templates.ttcn,v 1.2 2012-03-12 12:40:35 stl Exp $
Import Declarations:

- LibSip_SIPTypesAndValues
  all
- SUPLTypes
  all

Groups:

- MessageTemplates

- dummy_templates

- dummy_parameter_send
- dummy_parameter_receive
- dummy_request_templates_send
- dummy_response_templates_receive

Templates Summary
m_requestLine_dummy |
m_requestLine |
m_sipUri |
m_msgHeader_dummy |
mw_msgHeader_dummy |
m_MESSAGE_Dummy |
m_MESSAGEreq |
m_AcceptContact_invalid |
m_AcRcValue_empty |
m_ContentType_invalid |
m_MessageBodyUlp |
mw_Response_Dummy |

## Details

m_requestLine_dummy

    template RequestLine m_requestLine_dummy(Method p_method) :=
    {
        method := p_method,
        requestUri := c_unavailableUri,
        sipVersion := c_sipNameVersion
    }

Declared in group MessageTemplates.dummy_templates.dummy_parameter_send
Returns: RequestLine -
Parameters:

- p_method -

m_requestLine

    template RequestLine m_requestLine(Method p_method, SipUrl p_sipUrl) :=
    {
    method := p_method,
    requestUri := p_sipUrl,
    sipVersion := c_sipNameVersion
    }

Declared in group MessageTemplates.dummy_templates.dummy_parameter_send
Returns: RequestLine -
Parameters:

- p_method -
- p_sipUrl -

m_sipUri

    template SipUrl m_sipUri(charstring p_user, charstring p_host) :=
    {
    scheme  := c_sipScheme,
    userInfo := {userOrTelephoneSubscriber:=p_user, password:=omit},
    hostPort := {host:=p_host, portField:=c_defaultSipPort},
    urlParameters := omit,
    headers := omit
    };

Declared in group MessageTemplates.dummy_templates.dummy_parameter_send
Returns: SipUrl -
Parameters:

- p_user -
- p_host -

m_msgHeader_dummy

    template MessageHeader m_msgHeader_dummy :=
    {
        accept := omit,
        acceptContact := omit,
        acceptEncoding := omit,
        acceptLanguage := omit,
        alertInfo := omit,
        allow := omit,
        allowEvents := omit,
        authenticationInfo := omit,
        authorization := omit,
        callId := c_empty_CallId,
        callInfo := omit,
        contact := omit,
        contentDisposition := omit,
        contentEncoding := omit,
        contentLanguage := omit,
        contentLength := {fieldName := CONTENT_LENGTH_E, len:=  0},
        contentType := omit,
        cSeq := c_empty_cSeq,
        date := omit,
        errorInfo := omit,
        event := omit,
        expires := omit,
        fromField := c_empty_From,
        historyInfo := omit,
        inReplyTo := omit,
        maxForwards := c_maxForwards70,
        mimeVersion := omit,
        minExpires := omit,
        minSE := omit,
        organization := omit,
        pAccessNetworkInfo := omit,
        pAssertedID := omit,
        pAssertedService := omit,
        pAssociatedURI := omit,
        path := omit,
        pCalledPartyID := omit,
        pChargingFunctionAddresses := omit,
        pChargingVector := omit,
        pEarlyMedia := omit,
        pMediaAuthorization := omit,
        pPreferredID := omit,
        priority := omit,
        privacy := omit,
        proxyAuthenticate := omit,
        proxyAuthorization := omit,
        proxyRequire := omit,
        pVisitedNetworkID := omit,
        rAck := omit,
        rSeq := omit,
        reason := omit,
        recordRoute := omit,
        referredBy := omit,
        referTo := omit,
        replaces := omit,
        replyTo := omit,
        require := omit,
        retryAfter := omit,
        route := omit,
        securityClient := omit,
        securityServer := omit,
        securityVerify := omit,
        server := omit,
        serviceRoute := omit,
        sessionExpires := omit,
        subject := omit,
        subscriptionState := omit,
        supported := omit,
        timestamp := omit,
        toField := c_empty_To,
        unsupported := omit,
        userToUser := omit,
        userAgent := omit,
        via := c_empty_Via,
        warning := omit,
        wwwAuthenticate := omit,
        undefinedHeader_List := omit
    }

Declared in group MessageTemplates.dummy_templates.dummy_parameter_send

mw_msgHeader_dummy

    template MessageHeader mw_msgHeader_dummy :=
    {
        accept := *,
        acceptContact := *,
        acceptEncoding := *,
        acceptLanguage := *,
        alertInfo := *,
        allow := *,
        allowEvents := *,
        authenticationInfo := *,
        authorization := *,
        callId := ?,
        callInfo := *,
        contact := *,
        contentDisposition := *,
        contentEncoding := *,
        contentLanguage := *,
        contentLength := ?,
        contentType := *,
        cSeq := ?,
        date := *,
        errorInfo := *,
        event := *,
        expires := *,
        fromField := ?,
        historyInfo := *,
        inReplyTo := *,
        maxForwards := *,
        mimeVersion := *,
        minExpires := *,
        minSE := *,
        organization := *,
        pAccessNetworkInfo := *,
        pAssertedID := *,
        pAssertedService := *,
        pAssociatedURI := *,
        path := *,
        pCalledPartyID := *,
        pChargingFunctionAddresses := *,
        pChargingVector := *,
        pEarlyMedia := *,
        pMediaAuthorization := *,
        pPreferredID := *,
        priority := *,
        privacy := *,
        proxyAuthenticate := *,
        proxyAuthorization := *,
        proxyRequire := *,
        pVisitedNetworkID := *,
        rAck := *,
        rSeq := *,
        reason := *,
        recordRoute := *,
        referredBy := *,
        referTo := *,
        replaces := *,
        replyTo := *,
        require := *,
        retryAfter := *,
        route := *,
        securityClient := *,
        securityServer := *,
        securityVerify := *,
        server := *,
        serviceRoute := *,
        sessionExpires := *,
        subject := *,
        subscriptionState := *,
        supported := *,
        timestamp := *,
        toField := ?,
        unsupported := *,
        userToUser := *,
        userAgent := *,
        via := ?,
        warning := *,
        wwwAuthenticate := *,
        undefinedHeader_List := *
    }

Declared in group MessageTemplates.dummy_templates.dummy_parameter_receive

m_MESSAGE_Dummy

    template MESSAGE_Request m_MESSAGE_Dummy :=
    {
        requestLine    := m_requestLine_dummy(MESSAGE_E),
        msgHeader := m_msgHeader_dummy,
        messageBody := omit,
        payload := omit
    }

Declared in group MessageTemplates.dummy_templates.dummy_request_templates_send

m_MESSAGEreq

    template MESSAGE_Request m_MESSAGEreq(SipUrl p_sipUrl, MessageHeader p_messageHeader, template MessageBody p_messageBody) :=
    {
    requestLine    := m_requestLine(MESSAGE_E, p_sipUrl),
    msgHeader := p_messageHeader,
    messageBody := p_messageBody,
    payload := omit
    }

Declared in group MessageTemplates.dummy_templates.dummy_request_templates_send
Returns: MESSAGE_Request -
Parameters:

- p_sipUrl -
- p_messageHeader -
- p_messageBody -

m_AcceptContact_invalid

    template AcceptContact m_AcceptContact_invalid := {
    fieldName := ACCEPT_CONTACT_E,
    acValues := {m_AcRcValue_empty}
    }

Declared in group MessageTemplates.dummy_templates.dummy_request_templates_send

m_AcRcValue_empty

    template AcRcValue m_AcRcValue_empty :={
    c_WILDCARD,
    { {"event-app-id",""} }
    }

Declared in group MessageTemplates.dummy_templates.dummy_request_templates_send

m_ContentType_invalid

    template ContentType m_ContentType_invalid := {
    fieldName := CONTENT_TYPE_E,
    mediaType := ""
    }

Declared in group MessageTemplates.dummy_templates.dummy_request_templates_send

m_MessageBodyUlp

    template MessageBody m_MessageBodyUlp(template ULP_PDU p_ulp_pdu) :=
    {
    ulp_pdu := p_ulp_pdu
    }

Declared in group MessageTemplates.dummy_templates.dummy_request_templates_send
Returns: MessageBody -
Parameters:

- p_ulp_pdu -

mw_Response_Dummy

    template Response mw_Response_Dummy :=
    {
        statusLine    := ?,
        msgHeader := mw_msgHeader_dummy,
        messageBody := *,
        payload := *
    }

Declared in group MessageTemplates.dummy_templates.dummy_response_templates_receive

© Copyright Testing Technologies IST GmbH 2012