Wipple CPaaS
メニュー
Function リファレンス / Tag

Tag

注意

tag Function を使用するたびに、顧客データのコレクションは新たに指定されたデータで完全に置き換えられます。

{
  "verb": "tag",
  "data": {
        "foo": "bar",
        "counter": 100,
        "list": [1, 2, "three"]
    }
}

上記の 'tag' Function が実行された後、POST を使用する Web コールバックのペイロードは次のようになります。

{
    "call_sid": "df09e8d4-7ffd-492b-94d9-51a60318552c",
    "direction": "inbound",
    "from": "+815099990007",
    "to": "+815099990012",
    "call_id": "f0414693-bdb6-1238-6185-06d91d68c9b0",
    "sip_status": 200,
    "call_status": "in-progress",
    "caller_id": "f0414693-bdb6-1238-6185-06d91d68c9b0",
    "account_sid": "fef61e75-cec3-496c-a7bc-8368e4d02a04",
    "application_sid": "0e0681b0-d49f-4fb8-b973-b5a3c6758de1",
    "originating_sip_ip": "54.172.60.1:5060",
    "originating_sip_trunk_name": "mycarrier",
    "customerData": {
        "foo": "bar",
        "counter": 100,
        "list": [1, 2, "three"]
    }
}

tag コマンドでは、次のオプションを使用できます。

パラメータ

dataobject必須

この通話に関する以降のアクション通知またはコールステータス通知(HTTP POST のみ)に
保存して含める値を格納した JSON オブジェクト。