Tag

Add properties to the standard call attributes that jambonz will then include on every webhook / websocket message

Every time the tag verb is used, the collection of customer data is completely replaced with the new data provided.

1{
2 "verb": "tag",
3 "data": {
4 "foo": "bar",
5 "counter": 100,
6 "list": [1, 2, "three"]
7 }
8}

After the above ‘tag’ verb has executed, web callbacks using POST would have a payload similar to this:

1{
2 "call_sid": "df09e8d4-7ffd-492b-94d9-51a60318552c",
3 "direction": "inbound",
4 "from": "+15083084809",
5 "to": "+15083728299",
6 "call_id": "f0414693-bdb6-1238-6185-06d91d68c9b0",
7 "sip_status": 200,
8 "call_status": "in-progress",
9 "caller_id": "f0414693-bdb6-1238-6185-06d91d68c9b0",
10 "account_sid": "fef61e75-cec3-496c-a7bc-8368e4d02a04",
11 "application_sid": "0e0681b0-d49f-4fb8-b973-b5a3c6758de1",
12 "originating_sip_ip": "54.172.60.1:5060",
13 "originating_sip_trunk_name": "twilio",
14 "customerData": {
15 "foo": "bar",
16 "counter": 100,
17 "list": [1, 2, "three"]
18 }
19}

You can use the following options in the tag command:

Parameters

data
objectRequired

A JSON object containing values to be saved and included in future action or
call status notifications (HTTP POST only) for this call.