mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2025-12-19 04:37:43 +00:00
Contact header to have private IP on Private cidr (#147)
* Contact header to have private IP on Private cidr fix for #146 * Update call-session.js * Update call-session.js * Update call-session.js
This commit is contained in:
@@ -214,6 +214,9 @@ class CallSession extends Emitter {
|
||||
response.sdp;
|
||||
|
||||
const responseHeaders = {};
|
||||
if (isPrivateVoipNetwork(this.req.source_address)) {
|
||||
Object.assign(responseHeaders, {'Contact':`<sip:${this.privateSipAddress}>`});
|
||||
}
|
||||
if (this.req.locals.carrier) {
|
||||
Object.assign(headers, {
|
||||
'X-Originating-Carrier': this.req.locals.carrier,
|
||||
|
||||
Reference in New Issue
Block a user