@bitcall/webrtc-sip-gateway 0.3.9 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/package.json +1 -1
- package/src/index.js +6 -1
package/README.md
CHANGED
|
@@ -9,6 +9,10 @@ Latest updates:
|
|
|
9
9
|
the gateway's own `:5060` listener does not trigger false port conflicts.
|
|
10
10
|
- `update` now syncs `BITCALL_GATEWAY_IMAGE` to the CLI target image tag,
|
|
11
11
|
pulls, and force-recreates containers so new image layers are applied.
|
|
12
|
+
- `update` now also passes `--renew-anon-volumes` so stale anonymous
|
|
13
|
+
`/etc/kamailio` volume data cannot mask image-shipped Kamailio config updates.
|
|
14
|
+
- `up`/`restart`/`update` auto-migrate legacy compose files by removing stale
|
|
15
|
+
`/etc/kamailio` volume mounts that can override image-shipped config.
|
|
12
16
|
- Docker image includes `sngrep` and `tcpdump` for SIP troubleshooting.
|
|
13
17
|
- `sip-trace` opens a live SIP message viewer using `sngrep` in the container
|
|
14
18
|
via compose service execution.
|
|
@@ -16,8 +20,8 @@ Latest updates:
|
|
|
16
20
|
(nft-compatible port ranges and rule action order).
|
|
17
21
|
- Media firewall status now checks both nft and ip6tables marker rules so
|
|
18
22
|
legacy ip6tables protections are reported correctly.
|
|
19
|
-
- In-dialog
|
|
20
|
-
now attempt alias/usrloc fallback before 404.
|
|
23
|
+
- In-dialog non-ACK handling is hardened: in-dialog requests with broken/missing
|
|
24
|
+
route-set now attempt alias/usrloc fallback before 404.
|
|
21
25
|
- `TURN_MODE=coturn` now generates a compose stack with a dedicated coturn
|
|
22
26
|
container.
|
|
23
27
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1035,6 +1035,10 @@ function migrateLegacyComposeIfNeeded() {
|
|
|
1035
1035
|
return true;
|
|
1036
1036
|
}
|
|
1037
1037
|
|
|
1038
|
+
function updateComposeUpArgs() {
|
|
1039
|
+
return ["up", "-d", "--force-recreate", "--renew-anon-volumes", "--remove-orphans"];
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1038
1042
|
function provisionCustomCert(config) {
|
|
1039
1043
|
validateCustomCert(config.customCertPath, config.customKeyPath, config.domain);
|
|
1040
1044
|
|
|
@@ -1657,7 +1661,7 @@ function updateCommand() {
|
|
|
1657
1661
|
}
|
|
1658
1662
|
|
|
1659
1663
|
runCompose(["pull"], { stdio: "inherit" });
|
|
1660
|
-
runCompose(
|
|
1664
|
+
runCompose(updateComposeUpArgs(), { stdio: "inherit" });
|
|
1661
1665
|
run("systemctl", ["start", SERVICE_NAME], { check: false, stdio: "ignore" });
|
|
1662
1666
|
|
|
1663
1667
|
console.log(`\n${clr(_c.green, "✓")} Gateway updated to ${clr(_c.bold, PACKAGE_VERSION)}.`);
|
|
@@ -1889,6 +1893,7 @@ module.exports = {
|
|
|
1889
1893
|
buildQuickFlowDefaults,
|
|
1890
1894
|
shouldRequireAllowlist,
|
|
1891
1895
|
stripLegacyKamailioVolume,
|
|
1896
|
+
updateComposeUpArgs,
|
|
1892
1897
|
isOriginWildcard,
|
|
1893
1898
|
isSingleProviderConfigured,
|
|
1894
1899
|
printRequiredPorts,
|