support refer display name (#76)

This commit is contained in:
Hoan Luu Huu
2024-12-11 22:27:55 +07:00
committed by GitHub
parent 7b3dd92c18
commit 104ca00a3d
2 changed files with 7 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
"id": "string",
"referTo": "string",
"referredBy": "string",
"referredByDisplayName": "string",
"headers": "object",
"actionHook": "object|string",
"eventHook": "object|string"

View File

@@ -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": {