Session Events
Create
{
"action":"event",
"subscribed_key":"qubicle.session",
"subscription_key":"qubicle.session.{ACCOUNT_ID}.*",
"name":"create",
"routing_key":"qubicle.session.{ACCOUNT_ID}.{SESSION_ID}",
"data":{
"account_id": "{ACCOUNT_ID}",
"app_name": "qubicle",
"app_version": "{VERSION}",
"event_category": "qubicle-session",
"event_name": "create",
"msg_id": "{MSG_ID}",
"node": "kazoo_apps@{SERVER}",
"session_id": "{SESSION_ID}",
"session_type": "call_session",
"caller_id_name": {CALLER_ID_NAME},
"caller_id_number": {CALLER_ID_NUMBER},
"pid": {SESSION_PROC_PID},
"event_timestamp": {SERVER_TIMESTAMP}
}
}
Delete
{
"action":"event",
"subscribed_key":"qubicle.session",
"subscription_key":"qubicle.session.{ACCOUNT_ID}.*",
"name":"delete",
"routing_key":"qubicle.session.{ACCOUNT_ID}.{SESSION_ID}",
"data":{
"account_id": "{ACCOUNT_ID}",
"app_name": "qubicle",
"app_version": "{VERSION}",
"event_category": "qubicle-session",
"event_name": "delete",
"msg_id": "{MSG_ID}",
"node": "kazoo_apps@{SERVER}",
"reason": "{REASON}",
"session_id": "{SESSION_ID}",
"event_timestamp": {SERVER_TIMESTAMP}
}
}