diff --git a/lib/http-routes/api/create-call.js b/lib/http-routes/api/create-call.js index 8b225f13..55b3d81f 100644 --- a/lib/http-routes/api/create-call.js +++ b/lib/http-routes/api/create-call.js @@ -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':