Skip to main content

Session Update Processor

Pay Attention

The request will include the previously provided token. This is how you will associate the input with a specific contact session.

The request

The below is a sample of a session update request. Sessions updates include various status values and other useful information.

POST /processInput HTTP/1.0.
Host: example.com:443.
X-Forwarded-For: 192.168.2.2.
Connection: upgrade.
Accept-Encoding: gzip.
Accept: */*.
Content-Type: application/json.

{
"id": 9844644,
"domainId": 3,
"domain": "example.com",
"subscriberId": 372,
"destination": "63121233333",
"callerId": "12127773456",
"direction": "application",
"token": "16a7294c989b11e7b3d32b9edb8660c7",
"createdAt": "2024-05-26T07:30:21Z",
"modifiedAt": "2024-05-26T07:30:25Z",
"timeLimit": null,
"status": "connected",
"vappServer": "172.24.41.58",
"callStartTime": 1716708621946,
"startTime": "2024-05-26T07:30:21.946Z",
"callAnswerTime": 1716708625343,
"answerTime": "2024-05-26T07:30:25.343Z",
"profile": {
"inbound-trunk-id": 610,
"inbound-trunk-name": "fromPSTN",
"callId": [
"315df9a833a762214873c11b49bf622a@XXX.XXX.XXX.XXX:5060"
],
"qos": {
"CHANNELQOS": "ssrc=1772691093;themssrc=0;lp=0;rxjitter=0.000000;rxcount=0;txjitter=0.000000;txcount=167;rlp=0;rtt=0.000000;rxmes=0.000000;txmes=0.000000",
"ssrc": "1772691093",
"themssrc": "0",
"lp": 0,
"rxjitter": 0,
"rxcount": 0,
"txjitter": 0,
"txcount": 167,
"rlp": 0,
"rtt": 0,
"rxmes": 0,
"txmes": 0,
"rx_mos": "NaN",
"tx_mos": 4.4
},
"application": [


]
},
"action": "updated",
"reason": "vapp",
"eventId": "9e938c49-6c37-40c7-a6b0-c16a625088f2"
}

The response

HTTP/1.0 201 NO CONTENT.
Date: Mon, 22 Jul 2024 15:50:57 GMT.
Server: Apache/2.4.52 (Ubuntu).
Cache-Control: private, must-revalidate.
pragma: no-cache.
expires: -1.
Connection: close.
Content-Type: application/json.