Compare commits

..
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 node:18.14.1-alpine3.16 as base
FROM --platform=linux/amd64 node:18.15-alpine3.16 as base
RUN apk --update --no-cache add --virtual .builds-deps build-base python3
+2 -1
View File
@@ -247,7 +247,8 @@ if (process.env.K8S || process.env.HTTP_PORT) {
if ('test' !== process.env.NODE_ENV) {
/* update call stats periodically */
setInterval(() => {
stats.gauge('sbc.sip.calls.count', activeCallIds.size, ['direction:inbound']);
stats.gauge('sbc.sip.calls.count', activeCallIds.size,
['direction:inbound', `instance_id:${process.env.INSTANCE_ID || 0}`]);
}, 20000);
}
-1
View File
@@ -293,7 +293,6 @@ class CallSession extends Emitter {
} catch (err) {
this.rtpEngineResource.destroy().catch((err) => this.logger.info({err}, 'Error destroying rtpe after failure'));
this.activeCallIds.delete(this.req.get('Call-ID'));
this.stats.gauge('sbc.sip.calls.count', this.activeCallIds.size);
if (err instanceof SipError) {
const tags = ['accepted:no', `sipStatus:${err.status}`, `originator:${this.req.locals.originator}`];
this.stats.increment('sbc.terminations', tags);
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "sbc-inbound",
"version": "v0.8.1",
"version": "v0.8.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "sbc-inbound",
"version": "v0.8.1",
"version": "v0.8.2",
"license": "MIT",
"dependencies": {
"@jambonz/db-helpers": "^0.7.4",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sbc-inbound",
"version": "v0.8.1",
"version": "v0.8.2",
"main": "app.js",
"engines": {
"node": ">= 12.0.0"