fix and test cases for #217 - sip:refer blocks if NOTIFY not received after 202 Accepted (#218)

This commit is contained in:
Dave Horton
2023-01-13 12:07:46 -05:00
committed by GitHub
parent a6b5366136
commit 33b8bd701d
8 changed files with 341 additions and 4 deletions

View File

@@ -24,4 +24,13 @@ const provisionCustomHook = (from, verbs) => {
post(`/customHookMapping`, mapping);
}
module.exports = { provisionCallHook, provisionCustomHook}
const provisionActionHook = (from, verbs) => {
const mapping = {
from,
data: JSON.stringify(verbs)
};
const post = bent('http://127.0.0.1:3100', 'POST', 'string', 200);
post(`/actionHook`, mapping);
}
module.exports = { provisionCallHook, provisionCustomHook, provisionActionHook}