mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
add ability to have custom headers on outdial
This commit is contained in:
@@ -19,7 +19,10 @@ router.post('/', async(req, res) => {
|
|||||||
const sbcAddress = getSBC();
|
const sbcAddress = getSBC();
|
||||||
if (!sbcAddress) throw new Error('no available SBCs for outbound call creation');
|
if (!sbcAddress) throw new Error('no available SBCs for outbound call creation');
|
||||||
const target = restDial.to;
|
const target = restDial.to;
|
||||||
const opts = { callingNumber: restDial.from };
|
const opts = {
|
||||||
|
callingNumber: restDial.from,
|
||||||
|
headers: req.body.headers || {}
|
||||||
|
};
|
||||||
|
|
||||||
switch (target.type) {
|
switch (target.type) {
|
||||||
case 'phone':
|
case 'phone':
|
||||||
|
|||||||
Reference in New Issue
Block a user