@bitcall/webrtc-sip-gateway 0.3.10 → 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 +2 -0
- package/package.json +1 -1
- package/src/index.js +6 -1
package/README.md
CHANGED
|
@@ -9,6 +9,8 @@ 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.
|
|
12
14
|
- `up`/`restart`/`update` auto-migrate legacy compose files by removing stale
|
|
13
15
|
`/etc/kamailio` volume mounts that can override image-shipped config.
|
|
14
16
|
- Docker image includes `sngrep` and `tcpdump` for SIP troubleshooting.
|
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,
|