From 91cd01c2ac60aff525882daed87518c1f051ea0e Mon Sep 17 00:00:00 2001 From: Quan HL Date: Wed, 11 Dec 2024 09:42:27 +0700 Subject: [PATCH] support refer display name --- specs.json | 1 + test/jambonz-verb-test.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/specs.json b/specs.json index a107878..c3fb68f 100644 --- a/specs.json +++ b/specs.json @@ -34,6 +34,7 @@ "id": "string", "referTo": "string", "referredBy": "string", + "referredByDisplayName": "string", "headers": "object", "actionHook": "object|string", "eventHook": "object|string" diff --git a/test/jambonz-verb-test.js b/test/jambonz-verb-test.js index 716fb45..c355aa6 100644 --- a/test/jambonz-verb-test.js +++ b/test/jambonz-verb-test.js @@ -440,6 +440,12 @@ test("validate correct verbs", async (t) => { "referTo": "+15083084809", "actionHook": "/action" }, + { + "verb": "sip:refer", + "referTo": "+15083084809", + "referredByDisplayName": "Alice", + "actionHook": "/action" + }, { "verb": "tag", "data": {