mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
Create Call Rest is missing target headers on outdial (#874)
* add target headers for rest create-call * rebased --------- Co-authored-by: ajukes <ajukes@callable.io>
This commit is contained in:
@@ -97,7 +97,8 @@ router.post('/',
|
|||||||
'X-Trace-ID': rootSpan.traceId,
|
'X-Trace-ID': rootSpan.traceId,
|
||||||
...(req.body?.application_sid && {'X-Application-Sid': req.body.application_sid}),
|
...(req.body?.application_sid && {'X-Application-Sid': req.body.application_sid}),
|
||||||
...(restDial.fromHost && {'X-Preferred-From-Host': restDial.fromHost}),
|
...(restDial.fromHost && {'X-Preferred-From-Host': restDial.fromHost}),
|
||||||
...(record_all_calls && {'X-Record-All-Calls': recordOutputFormat})
|
...(record_all_calls && {'X-Record-All-Calls': recordOutputFormat}),
|
||||||
|
...target.headers
|
||||||
};
|
};
|
||||||
|
|
||||||
switch (target.type) {
|
switch (target.type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user