+

Search Tips   |   Advanced Search


SIP - Add a Send response

You can add a Send response to an SIP test and set the attributes of the response.

A best practice for SIP tests is to put a request and its associated response into a transaction. By doing this, the performance information in reports is organized into meaningful units. In addition, the schedule run generates a Transaction report. For instructions on how to put a test element into a transaction, see Add a transaction to a test.

To add a Send response to a test:

  1. In the Test Navigator, browse to the test, and double-click it.

  2. Select a test element.

    1. To insert a response as a sibling above the selected element, click Insert > Receive Response.

    2. To insert a response as a child of the selected element, click Add > Receive Response.

    3. To insert a response to a specific receive request, select the requestAdd > Send Response.

    The New SIP Response wizard opens.

  3. Select the expected response code.

  4. If you have selected a specific Receive request, click Finish, If not, select the corresponding request from the list, and then click Finish. The wizard closes, and the Test Element Details area displays the request attributes.

  5. In the Test Element Details area, edit the attributes as follows:

    General tab

    Status

    This field is automatically populated with the status value of the selected response. Type a status value to set a new Send response.

    Message Headers

    To, From, CSeq, Call-ID, Via, and Content-Length headers are inherited from the parent request. A Contact header is generated when the parent request uses an Invite, Subscribe, Refer, Notify, or Update method. The actual header values are generated at run time and are listed in the log file.

    Click Add to add a message header. After you have added the header, click Table View to return to the Message Headers table.

    Body Contents

    Optional: Type the content of the message.

    Context

    Select the name of the context to open the SIP Context Registry page, which lists the contexts that the test contains. On the SIP Context Registry page, select the response to return to the Test Element Details area.

    Advanced tab

    Request

    Click to open the parent request. In the Test Contents area, select the response to return to the Test Element Details area.


Related tasks

  • Add a Send request
  • Add a Receive response
  • Add a Receive request
  • Add a delay