mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +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();
|
||||
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