import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.texml.accounts.calls.siprec.siprecSidJson('siprec_sid', {
account_sid: 'account_sid',
call_sid: 'call_sid',
});
console.log(response.account_sid);{
"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
}Updates siprec session identified by siprec_sid.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.texml.accounts.calls.siprec.siprecSidJson('siprec_sid', {
account_sid: 'account_sid',
call_sid: 'call_sid',
});
console.log(response.account_sid);{
"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
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The id of the account the resource belongs to.
The CallSid that identifies the call to update.
The SiprecSid that uniquely identifies the Sip Recording.
Updates a SIPREC session.
The new status of the resource. Specifying stopped will end the siprec session.
stopped "stopped"
Successful SIPREC session update response
The id of the account the resource belongs to.
"61bf923e-5e4d-4595-a110-56190ea18a1b"
The id of the call the resource belongs to.
"v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-aiQ"
The SID of the siprec session.
"61bf923e-5e4d-4595-a110-56190ea18123"
The date and time the siprec session was last updated.
"Fri, 11 Aug 2023 19:12:11 +0000"
The status of the siprec session.
in-progress, stopped "in-progress"
The URI of the siprec session.
"https://api.telnyx.com/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18123/Calls/v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-ai/Siprec/61bf923e-5e4d-4595-a110-56190ea18123"
The error code of the siprec session.
null
Was this page helpful?