Example Event


{
    "uuid": "2c215731-f634-4365-8fec-df14a2078254",
    "created_on": "2024-02-20T16:41:44.795Z",
    "type": "call_state",
    "message": "CallSCA in +18389999168 > 18382049000 - destroyed",
    "payload": {
        "state": "destroyed",
        "duration": 10
    },
    "call": {
        "uuid": "c7aa8c03-87d6-403d-8287-2211a1974fe3",
        "direction": "in",
        "from": "+18389999168",
        "to": "18382049000",
        "state": "destroyed",
        "duration": 10,
        "type": "CallSCA",
        "created_on": "2024-02-20T16:41:34.861Z",
        "modified_on": "2024-02-20T16:41:44.718Z",
        "destroy_on": "2024-02-20T16:41:44.718Z",
        "q850_cause": 16,
        "q850_cause_string": "NORMAL_CLEARING",
        "freeswitch_call_state": "HANGUP",
        "freeswitch_channel_state": "CS_REPORTING",
        "stir_shaken_attest_level": null,
        "tn": {
            "created_on": "2024-01-17T06:29:59.473Z",
            "modified_on": "2024-01-17T08:03:54.373Z",
            "tn": 18382049000,
            "deleted_on": null
        },
        "sip_control_app": {
            "created_on": "2023-05-05T06:21:55.688Z",
            "modified_on": "2024-01-03T12:28:49.915Z",
            "uuid": "03302770-4a53-438e-adb6-7a3062d61547",
            "name": "global frees SCA",
            "is_active": true,
            "shaken_verify_policy": 0,
            "shaken_minimum_accepted_attest_lvl": "C",
            "auto_answer": true,
            "max_call_length_min": null
        },
        "account": {
            "created_on": "2022-04-26T05:37:15.707Z",
            "modified_on": "2023-12-04T05:57:32.303Z",
            "uuid": "58699aff-b3dd-46b6-b428-029cde3368a4",
            "email": "info@freefone.app",
            "name": "SOupra",
            "phone": 9038479977,
            "level": "Level2",
            "address1": "BT road",
            "address2": "eeeeeFFF",
            "zip_code": "700004",
            "city": "kolakata",
            "deleted_on": null,
            "disabled_on": null,
            "balance": 814.85226
        },
        "thread": "f2fc43433c39837ba33497b10910cf76",
        "country": null,
        "parent": null,
        "hotkey": null,
        "sip_connection": null,
        "lerg": null,
        "batch_item": null,
        "logs": [
            {
                "created_on": "2024-02-20T16:41:36.590Z",
                "modified_on": "2024-02-20T16:41:36.590Z",
                "uuid": "3642a58e-cc9d-490f-a784-f2fce18deb62",
                "success": false,
                "state": "queued",
                "name": "Callback",
                "element": {
                    "name": "Callback",
                    "type": "element",
                    "elements": [
                        {
                            "name": "Error",
                            "type": "element",
                            "elements": [
                                {
                                    "name": "Say",
                                    "type": "element",
                                    "elements": [
                                        {
                                            "text": " Freefone is not able to connect your call now.  Please try again later. ",
                                            "type": "text"
                                        }
                                    ]
                                },
                                {
                                    "name": "Hangup",
                                    "type": "element"
                                }
                            ]
                        }
                    ],
                    "attributes": {
                        "url": "https://apitest.freefone.app/callflow"
                    }
                },
                "command": {
                    "url": "https://apitest.freefone.app/callflow",
                    "body": false,
                    "meta": {},
                    "name": "Callback",
                    "path": "Callback[0]",
                    "error": [
                        {
                            "say": false,
                            "meta": {},
                            "name": "Error",
                            "path": "Callback[0].Error[0]",
                            "error": [],
                            "state": "queued",
                            "reason": "unknown",
                            "success": false,
                            "children": [
                                {
                                    "leg": "both",
                                    "code": "en-US-Standard-C",
                                    "lang": "en-US",
                                    "loop": 1,
                                    "meta": {},
                                    "name": "Say",
                                    "path": "Callback[0].Error[0].Say[0]",
                                    "text": "Freefone is not able to connect your call now.  Please try again later.",
                                    "type": "Standard",
                                    "error": [],
                                    "state": "queued",
                                    "voice": {
                                        "code": "en-US",
                                        "name": "en-US-Standard-C",
                                        "type": "Standard",
                                        "uuid": "663dec3d-6a25-4c87-86ca-357f079b665b",
                                        "gender": "FEMALE",
                                        "created_on": "2022-03-25T03:55:15.343Z",
                                        "modified_on": "2022-03-25T03:55:15.343Z",
                                        "naturalSampleRateHertz": 24000
                                    },
                                    "gender": "FEMALE",
                                    "reason": "unknown",
                                    "success": false,
                                    "timeout": 30000,
                                    "children": []
                                },
                                {
                                    "meta": {},
                                    "name": "Hangup",
                                    "path": "Callback[0].Error[0].Hangup[1]",
                                    "error": [],
                                    "state": "queued",
                                    "reason": "unknown",
                                    "success": false,
                                    "children": []
                                }
                            ]
                        }
                    ],
                    "state": "queued",
                    "method": "GET",
                    "reason": "unknown",
                    "success": false,
                    "timeout": 5000,
                    "children": []
                },
                "reason": "unknown",
                "tag": null
            },
            {
                "created_on": "2024-02-20T16:41:36.816Z",
                "modified_on": "2024-02-20T16:41:37.096Z",
                "uuid": "f1c0688f-a52f-4dba-90c0-1d521030348b",
                "success": false,
                "state": "failed",
                "name": "Dial",
                "element": {
                    "name": "Dial",
                    "type": "element",
                    "elements": [
                        {
                            "name": "To",
                            "type": "element",
                            "attributes": {
                                "destination": "soupra_cool_743_gmail_com_97176442681235292623@freefone1.sip.stage.opentact.org"
                            }
                        },
                        {
                            "name": "Error",
                            "type": "element",
                            "elements": [
                                {
                                    "name": "Say",
                                    "type": "element",
                                    "attributes": {
                                        "text": "no one answered, please leave a voicemail message after a beep"
                                    }
                                },
                                {
                                    "name": "Record",
                                    "type": "element",
                                    "elements": [
                                        {
                                            "name": "Tone",
                                            "type": "element"
                                        },
                                        {
                                            "name": "Pause",
                                            "type": "element",
                                            "attributes": {
                                                "length": "60000"
                                            }
                                        }
                                    ],
                                    "attributes": {
                                        "asr": "false",
                                        "tag": "voicemail"
                                    }
                                }
                            ]
                        }
                    ],
                    "attributes": {
                        "timeout": "10000",
                        "max_call_attempts": "1",
                        "max_call_duration": "120000"
                    }
                },
                "command": {
                    "from": 18389999168,
                    "meta": {},
                    "name": "Dial",
                    "path": "Dial[0]",
                    "error": [
                        {
                            "say": false,
                            "meta": {},
                            "name": "Error",
                            "path": "Dial[0].Error[0]",
                            "error": [],
                            "state": "queued",
                            "reason": "unknown",
                            "success": false,
                            "children": [
                                {
                                    "leg": "both",
                                    "code": "en-US-Standard-C",
                                    "lang": "en-US",
                                    "loop": 1,
                                    "meta": {},
                                    "name": "Say",
                                    "path": "Dial[0].Error[0].Say[0]",
                                    "text": "no one answered, please leave a voicemail message after a beep",
                                    "type": "Standard",
                                    "error": [],
                                    "state": "queued",
                                    "voice": {
                                        "code": "en-US",
                                        "name": "en-US-Standard-C",
                                        "type": "Standard",
                                        "uuid": "663dec3d-6a25-4c87-86ca-357f079b665b",
                                        "gender": "FEMALE",
                                        "created_on": "2022-03-25T03:55:15.343Z",
                                        "modified_on": "2022-03-25T03:55:15.343Z",
                                        "naturalSampleRateHertz": 24000
                                    },
                                    "gender": "FEMALE",
                                    "reason": "unknown",
                                    "success": false,
                                    "timeout": 30000,
                                    "children": []
                                },
                                {
                                    "asr": false,
                                    "tag": "voicemail",
                                    "meta": {},
                                    "name": "Record",
                                    "path": "Dial[0].Error[0].Record[1]",
                                    "error": [],
                                    "state": "queued",
                                    "reason": "unknown",
                                    "success": false,
                                    "timeout": 30000,
                                    "children": [
                                        {
                                            "hz": [
                                                500
                                            ],
                                            "don": 500,
                                            "leg": "both",
                                            "doff": 500,
                                            "loop": 1,
                                            "meta": {},
                                            "name": "Tone",
                                            "path": "Dial[0].Error[0].Record[1].Tone[0]",
                                            "error": [],
                                            "state": "queued",
                                            "reason": "unknown",
                                            "volume": 0,
                                            "success": false,
                                            "timeout": 30000,
                                            "children": []
                                        },
                                        {
                                            "meta": {},
                                            "name": "Pause",
                                            "path": "Dial[0].Error[0].Record[1].Pause[1]",
                                            "error": [],
                                            "state": "queued",
                                            "length": 60000,
                                            "reason": "unknown",
                                            "success": false,
                                            "children": []
                                        }
                                    ]
                                }
                            ]
                        }
                    ],
                    "state": "failed",
                    "reason": "[originate] ERR NO_USER_RESPONSE. no any destinations are accept the call 1/1",
                    "success": false,
                    "timeout": 10000,
                    "children": [
                        {
                            "meta": {},
                            "name": "To",
                            "path": "Dial[0].To[0]",
                            "type": "sip",
                            "error": [],
                            "state": "queued",
                            "reason": "unknown",
                            "success": false,
                            "children": [],
                            "destination": "soupra_cool_743_gmail_com_97176442681235292623@freefone1.sip.stage.opentact.org",
                            "destination_addr": "freefone1.sip.stage.opentact.org",
                            "destination_name": "soupra_cool_743_gmail_com_97176442681235292623",
                            "destination_port": 5060
                        }
                    ],
                    "max_call_attempts": 1,
                    "max_call_duration": 120000
                },
                "reason": "[originate] ERR NO_USER_RESPONSE. no any destinations are accept the call 1/1",
                "tag": null
            },
            {
                "created_on": "2024-02-20T16:41:37.258Z",
                "modified_on": "2024-02-20T16:41:37.258Z",
                "uuid": "4162f1ba-c74a-4cb0-9ea7-085767abcc1f",
                "success": false,
                "state": "queued",
                "name": "Error",
                "element": {
                    "name": "Error",
                    "type": "element",
                    "elements": [
                        {
                            "name": "Say",
                            "type": "element",
                            "attributes": {
                                "text": "no one answered, please leave a voicemail message after a beep"
                            }
                        },
                        {
                            "name": "Record",
                            "type": "element",
                            "elements": [
                                {
                                    "name": "Tone",
                                    "type": "element"
                                },
                                {
                                    "name": "Pause",
                                    "type": "element",
                                    "attributes": {
                                        "length": "60000"
                                    }
                                }
                            ],
                            "attributes": {
                                "asr": "false",
                                "tag": "voicemail"
                            }
                        }
                    ]
                },
                "command": {
                    "say": false,
                    "meta": {},
                    "name": "Error",
                    "path": "Dial[0].Error[0]",
                    "error": [],
                    "state": "queued",
                    "reason": "unknown",
                    "success": false,
                    "children": [
                        {
                            "leg": "both",
                            "code": "en-US-Standard-C",
                            "lang": "en-US",
                            "loop": 1,
                            "meta": {},
                            "name": "Say",
                            "path": "Dial[0].Error[0].Say[0]",
                            "text": "no one answered, please leave a voicemail message after a beep",
                            "type": "Standard",
                            "error": [],
                            "state": "queued",
                            "voice": {
                                "code": "en-US",
                                "name": "en-US-Standard-C",
                                "type": "Standard",
                                "uuid": "663dec3d-6a25-4c87-86ca-357f079b665b",
                                "gender": "FEMALE",
                                "created_on": "2022-03-25T03:55:15.343Z",
                                "modified_on": "2022-03-25T03:55:15.343Z",
                                "naturalSampleRateHertz": 24000
                            },
                            "gender": "FEMALE",
                            "reason": "unknown",
                            "success": false,
                            "timeout": 30000,
                            "children": []
                        },
                        {
                            "asr": false,
                            "tag": "voicemail",
                            "meta": {},
                            "name": "Record",
                            "path": "Dial[0].Error[0].Record[1]",
                            "error": [],
                            "state": "queued",
                            "reason": "unknown",
                            "success": false,
                            "timeout": 30000,
                            "children": [
                                {
                                    "hz": [
                                        500
                                    ],
                                    "don": 500,
                                    "leg": "both",
                                    "doff": 500,
                                    "loop": 1,
                                    "meta": {},
                                    "name": "Tone",
                                    "path": "Dial[0].Error[0].Record[1].Tone[0]",
                                    "error": [],
                                    "state": "queued",
                                    "reason": "unknown",
                                    "volume": 0,
                                    "success": false,
                                    "timeout": 30000,
                                    "children": []
                                },
                                {
                                    "meta": {},
                                    "name": "Pause",
                                    "path": "Dial[0].Error[0].Record[1].Pause[1]",
                                    "error": [],
                                    "state": "queued",
                                    "length": 60000,
                                    "reason": "unknown",
                                    "success": false,
                                    "children": []
                                }
                            ]
                        }
                    ]
                },
                "reason": "unknown",
                "tag": null
            },
            {
                "created_on": "2024-02-20T16:41:37.306Z",
                "modified_on": "2024-02-20T16:41:41.898Z",
                "uuid": "a85e02d7-e72d-4019-af95-408f0c409cff",
                "success": true,
                "state": "success",
                "name": "Say",
                "element": {
                    "name": "Say",
                    "type": "element",
                    "attributes": {
                        "text": "no one answered, please leave a voicemail message after a beep"
                    }
                },
                "command": {
                    "leg": "both",
                    "code": "en-US-Standard-C",
                    "lang": "en-US",
                    "loop": 1,
                    "meta": {},
                    "name": "Say",
                    "path": "Dial[0].Error[0].Say[0]",
                    "text": "no one answered, please leave a voicemail message after a beep",
                    "type": "Standard",
                    "error": [],
                    "state": "success",
                    "voice": {
                        "code": "en-US",
                        "name": "en-US-Standard-C",
                        "type": "Standard",
                        "uuid": "663dec3d-6a25-4c87-86ca-357f079b665b",
                        "gender": "FEMALE",
                        "created_on": "2022-03-25T03:55:15.343Z",
                        "modified_on": "2022-03-25T03:55:15.343Z",
                        "naturalSampleRateHertz": 24000
                    },
                    "gender": "FEMALE",
                    "reason": "media played 1 times",
                    "success": true,
                    "timeout": 30000,
                    "children": []
                },
                "reason": "media played 1 times",
                "tag": null
            },
            {
                "created_on": "2024-02-20T16:41:41.971Z",
                "modified_on": "2024-02-20T16:41:41.971Z",
                "uuid": "5dcf8d03-8d76-4011-9ece-dd3cd5bf6602",
                "success": false,
                "state": "queued",
                "name": "Record",
                "element": {
                    "name": "Record",
                    "type": "element",
                    "elements": [
                        {
                            "name": "Tone",
                            "type": "element"
                        },
                        {
                            "name": "Pause",
                            "type": "element",
                            "attributes": {
                                "length": "60000"
                            }
                        }
                    ],
                    "attributes": {
                        "asr": "false",
                        "tag": "voicemail"
                    }
                },
                "command": {
                    "asr": false,
                    "tag": "voicemail",
                    "meta": {},
                    "name": "Record",
                    "path": "Dial[0].Error[0].Record[1]",
                    "error": [],
                    "state": "queued",
                    "reason": "unknown",
                    "success": false,
                    "timeout": 30000,
                    "children": [
                        {
                            "hz": [
                                500
                            ],
                            "don": 500,
                            "leg": "both",
                            "doff": 500,
                            "loop": 1,
                            "meta": {},
                            "name": "Tone",
                            "path": "Dial[0].Error[0].Record[1].Tone[0]",
                            "error": [],
                            "state": "queued",
                            "reason": "unknown",
                            "volume": 0,
                            "success": false,
                            "timeout": 30000,
                            "children": []
                        },
                        {
                            "meta": {},
                            "name": "Pause",
                            "path": "Dial[0].Error[0].Record[1].Pause[1]",
                            "error": [],
                            "state": "queued",
                            "length": 60000,
                            "reason": "unknown",
                            "success": false,
                            "children": []
                        }
                    ]
                },
                "reason": "unknown",
                "tag": "voicemail"
            },
            {
                "created_on": "2024-02-20T16:41:41.990Z",
                "modified_on": "2024-02-20T16:41:43.177Z",
                "uuid": "1b828fcc-c7d2-44e8-8199-3d1466c414ed",
                "success": true,
                "state": "success",
                "name": "Tone",
                "element": {
                    "name": "Tone",
                    "type": "element"
                },
                "command": {
                    "hz": [
                        500
                    ],
                    "don": 500,
                    "leg": "both",
                    "doff": 500,
                    "loop": 1,
                    "meta": {},
                    "name": "Tone",
                    "path": "Dial[0].Error[0].Record[1].Tone[0]",
                    "error": [],
                    "state": "success",
                    "reason": "tone '500' played 1 times",
                    "volume": 0,
                    "success": true,
                    "timeout": 30000,
                    "children": []
                },
                "reason": "tone '500' played 1 times",
                "tag": null
            },
            {
                "created_on": "2024-02-20T16:41:43.211Z",
                "modified_on": "2024-02-20T16:41:43.211Z",
                "uuid": "4c057d68-5ee5-4674-9cc7-eabf3c134553",
                "success": false,
                "state": "queued",
                "name": "Pause",
                "element": {
                    "name": "Pause",
                    "type": "element",
                    "attributes": {
                        "length": "60000"
                    }
                },
                "command": {
                    "meta": {},
                    "name": "Pause",
                    "path": "Dial[0].Error[0].Record[1].Pause[1]",
                    "error": [],
                    "state": "queued",
                    "length": 60000,
                    "reason": "unknown",
                    "success": false,
                    "children": []
                },
                "reason": "unknown",
                "tag": null
            }
        ],
        "records": [],
        "children": [
            {
                "type": "CallSCA",
                "created_on": "2024-02-20T16:41:36.861Z",
                "modified_on": "2024-02-20T16:41:38.347Z",
                "uuid": "1c7091a5-ba1f-46a2-bf06-b1137cb6b683",
                "state": "offline",
                "direction": "out",
                "from": "18389999168",
                "to": "soupra_cool_743_gmail_com_97176442681235292623",
                "duration": 1,
                "init_on": "2024-02-20T16:41:36.881Z",
                "ring_on": null,
                "answer_on": null,
                "hangup_on": "2024-02-20T16:41:37.088Z",
                "destroy_on": "2024-02-20T16:41:37.100Z",
                "finished_on": null,
                "q850_cause": 18,
                "q850_cause_string": "NO_USER_RESPONSE",
                "release_cause_from_protocol_stack": null,
                "stir_shaken_attest_level": null,
                "stir_shaken_identity": null,
                "thread": "d526ca7be93a1d3bb8788b423adae483"
            }
        ]
    },
    "ref_id": "c7aa8c03-87d6-403d-8287-2211a1974fe3",
    "account": {
        "created_on": "2022-04-26T05:37:15.707Z",
        "modified_on": "2023-12-04T05:57:32.303Z",
        "uuid": "58699aff-b3dd-46b6-b428-029cde3368a4",
        "email": "info@freefone.app",
        "name": "SOupra",
        "phone": 9038479977,
        "level": "Level2",
        "address1": "BT road",
        "address2": "eeeeeFFF",
        "zip_code": "700004",
        "city": "kolakata",
        "deleted_on": null,
        "disabled_on": null,
        "balance": 814.85226
    },
    "tn_order": null,
    "tn_order_tn": null,
    "batch": null,
    "sms_campaign": null,
    "call_asr": null,
    "sms_brand": null,
    "call_record": null,
    "ticket": null,
    "sms": null,
    "call_flow": null,
    "tn_lease": null,
    "user": null,
    "tn": null,
    "modified_on": "2024-02-20T16:41:44.795Z",
    "delivery_report": []
}
```

Last updated