verb:hook

jambonz => websocket server

A verb:hook message is sent by jambonz to the websocket server when an action hook or event hook configured for a verb has been triggered (e.g. a “gather” verb has collected an utterance from the user).

propertytypemeaningrequired
typestring “verb:hook”indicates this is an error notification from jambonzyes
msgidstringunique message identifieryes
call_sidstringunique call identifieryes
b3stringopen telemetry span identifier for this call (only provided if otel tracing is enabled)no
hookstringurl of hook that was providing in the eventHook or actionHook propertyyes
dataobjectdata payload describing the eventyes
1{
2 "type": "verb:hook",
3 "msgid": "cvY6kNE8RXdaZdaDcJbViG",
4 "call_sid": "aad0115d-ec21-40db-aa02-31b7b01540c5",
5 "b3": "18228daa536f82e0ec29074e7bf47b89-dd3bdf1f177f2995-1",
6 "hook": "voice",
7 "data": {
8 "speech": {
9 "is_final": true,
10 "transcripts": [
11 {
12 "is_final": true,
13 "language_code": "en-US",
14 "alternatives": [
15 {
16 "confidence": 0.91916794,
17 "transcript": "I'd like to book a car"
18 }
19 ]
20 }
21 ]
22 },
23 "reason": "speechDetected",
24 "call_sid": "aad0115d-ec21-40db-aa02-31b7b01540c5",
25 "direction": "inbound",
26 "from": "+15083084809",
27 "to": "+15083728363",
28 "call_id": "fc5f8190-718a-123b-e6ba-023fd61c5256",
29 "sip_status": 200,
30 "sip_reason": "OK",
31 "call_status": "in-progress",
32 "account_sid": "4bfe85c1-96bb-4af7-ac83-68fe7ebd562d",
33 "trace_id": "18228daa536f82e0ec29074e7bf47b89",
34 "application_sid": "3badbf0f-e778-44bb-a89a-dc2ca31f2f9c",
35 "fs_sip_address": "10.0.150.88:5070",
36 "originating_sip_ip": "54.172.60.1",
37 "originating_sip_trunk_name": "Twilio - Dave trunk",
38 "api_base_url": "http://3.71.131.50/v1"
39 }
40}