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