Compare commits

...
Author SHA1 Message Date
Dave HortonandClaude Opus 5.5 37686f680c fix: use sips scheme in From/Contact when forwarding to a sips Request-URI
RFC 3261 8.1.1.8 requires a SIPS Contact when the Request-URI is SIPS.
The forward path (dial verb to a sip target) always defaulted to sip:.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 23:58:47 -04:00
Dave Horton 7099671e69 0.9.11 2026-09-15 12:39:32 -04:00
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -505,17 +505,21 @@ class CallSession extends Emitter {
}
else {
const uri = parseUri(this.req.uri);
/* RFC 3261 8.1.1.8: a sips Request-URI requires a sips Contact */
const scheme = uri.scheme === 'sips' ? 'sips' : 'sip';
hdrs = {
...hdrs,
'From': createBLegFromHeader({
logger: this.logger,
req: this.req,
scheme,
transport: uri.params.transport,
...(private_network && {host: this.privateSipAddress})
}),
'Contact': createBLegFromHeader({
logger: this.logger,
req: this.req,
scheme,
transport: uri.params.transport,
...(private_network && {host: this.privateSipAddress})
})
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "sbc-outbound",
"version": "0.9.10",
"version": "0.9.11",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "sbc-outbound",
"version": "0.9.10",
"version": "0.9.11",
"license": "MIT",
"dependencies": {
"@babel/helpers": "^7.26.10",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sbc-outbound",
"version": "0.9.10",
"version": "0.9.11",
"main": "app.js",
"engines": {
"node": ">= 20.0.0"