feat: callerName to rest_dial and dial verb (#312)

* feat: callerName to rest_dial and dial verb

* update verb specification
This commit is contained in:
Hoan Luu Huu
2023-04-12 21:04:55 +07:00
committed by GitHub
parent 85ab75d8e3
commit fabf01f8b5
6 changed files with 15 additions and 9 deletions

View File

@@ -27,6 +27,7 @@ router.post('/', async(req, res) => {
const target = restDial.to;
const opts = {
callingNumber: restDial.from,
...(restDial.callerName && {callingName: restDial.callerName}),
headers: req.body.headers || {}
};