Skip to main content

Updates siprec session for a call

POST 
/texml/Accounts/:account_sid/Calls/:call_sid/Siprec/:siprec_sid.json

Updates siprec session identified by siprec_sid.

Request

Path Parameters

    account_sid stringrequired

    The id of the account the resource belongs to.

    call_sid stringrequired

    The CallSid that identifies the call to update.

Body

Updates a SIPREC session.

    Status string

    Possible values: [stopped]

    The new status of the resource. Specifying stopped will end the siprec session.

Responses

200: Successful SIPREC session update response

404: Resource not found

Request samples


curl -L 'https://api.telnyx.com/v2' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"account_sid": "61bf923e-5e4d-4595-a110-56190ea18a1b",
"call_sid": "v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-aiQ",
"sid": "61bf923e-5e4d-4595-a110-56190ea18123",
"date_updated": "Fri, 11 Aug 2023 19:12:11 +0000",
"status": "in-progress",
"uri": "https://api.telnyx.com/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18123/Calls/v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-ai/Siprec/61bf923e-5e4d-4595-a110-56190ea18123",
"error_code": null
}