Feat/dial via sip proxy (#532)

* add support for dialing via proxy with target.proxy

* update verb-specifications with support for target.proxy
This commit is contained in:
Dave Horton
2023-11-14 09:06:43 -05:00
committed by GitHub
parent 633237da1b
commit 7c36a08852
3 changed files with 58 additions and 137 deletions

View File

@@ -76,7 +76,8 @@ class SingleDialer extends Emitter {
...(this.from.host && {'X-Preferred-From-Host': this.from.host}),
'X-Jambonz-Routing': this.target.type,
'X-Call-Sid': this.callSid,
...(this.applicationSid && {'X-Application-Sid': this.applicationSid})
...(this.applicationSid && {'X-Application-Sid': this.applicationSid}),
...(this.target.proxy && {'X-SIP-Proxy': this.target.proxy})
};
if (srf.locals.fsUUID) {
opts.headers = {