Call State Synchronization
    • Dark
      Light

    Call State Synchronization

    • Dark
      Light

    Article summary

    This API is used to synchronize the Inbound Call state.

    Pre-requisite

    Application registration must be completed.

    Sequence Diagram

    Message Structure

    Request Parameters

    Value

    channel

    Amazon

    topic

    InboundCall

    subtopic

    StateSync

    source

    <<app-name-broadcasting-this-message>>

    Response Parameters

    Value

    channel

    Amazon

    topic

    InboundCall

    subtopic

    StateSync

    message

    Refer Call State in Appendix

    Sample Request

    {
        "channel": "Amazon",
        "topic": "InboundCall",
        "subtopic": "StateSync",
        "source": "myapp"
    }

    Sample Response

    {
        "channel": "Amazon",
        "topic": "InboundCall",
        "subtopic": "StateSync",
        "message": {
            "attributes": [
                {
                    "name": "ANI",
                    "value": "+161081111"
                },
                {
                    "name": "DNIS",
                    "value": "+16013261548"
                }
            ],
            "queueName": "InboundTest",
            "queueTimestamp": "2020-04-09T14:00:18.485Z",
            "calls": [
                {
                    "connectionId": "71707025-ca65-4693-84b0-d05d80bbccbc",
                    "contactId": "4f9d6eda-8df1-481b-a2e6-e4379b7401f4",
                    "phoneNumber": null,
                    "status": "connected",
                    "statusTimestamp": "2020-04-09T14:00:02.485Z",
                    "type": "agent",
                    "buttonStates": {
                        "answer": false,
                        "reject": false,
                        "disconnect": false,
                        "hold": false,
                        "resume": false,
                        "clearContact": false,
                        "consult": true,
                        "numberpad": true,
                        "swap": false,
                        "transfer": false,
                        "conference": false
                    }
                },
                {
                    "connectionId": "4f9d6eda-8df1-481b-a2e6-e4379b7401f4",
                    "contactId": "4f9d6eda-8df1-481b-a2e6-e4379b7401f4",
                    "phoneNumber": "+161081111",
                    "status": "connected",
                    "statusTimestamp": "2020-04-09T14:00:02.485Z",
                    "type": "inbound",
                    "buttonStates": {
                        "answer": false,
                        "reject": false,
                        "disconnect": true,
                        "hold": true,
                        "resume": false,
                        "clearContact": false,
                        "consult": false,
                        "numberpad": false,
                        "swap": false,
                        "transfer": false,
                        "conference": false
                    }
                }
            ]
        }
    }


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.