From c449feeb9c3a688e9baf719f410957cc5b418b17 Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Wed, 12 Feb 2025 21:24:33 +0700 Subject: [PATCH] support sip recording from siprec call (#164) * support sip recording from siprec call * update srsclient version --- lib/call-session.js | 3 ++- package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/call-session.js b/lib/call-session.js index 8e21daf..4d791e2 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -1009,7 +1009,8 @@ Duration=${payload.duration} ` blockMedia: this.blockMedia, unblockMedia: this.unblockMedia, unsubscribe: this.unsubscribe, - headers + headers, + isSipRecCall: Array.isArray(this.req.payload) && this.req.payload.length > 1 })); try { this._startRecordingNoAnswerTimer(res); diff --git a/package-lock.json b/package-lock.json index 5d29e32..97f3b33 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@jambonz/mw-registrar": "0.2.7", "@jambonz/realtimedb-helpers": "^0.8.9", "@jambonz/rtpengine-utils": "^0.4.4", - "@jambonz/siprec-client-utils": "^0.2.9", + "@jambonz/siprec-client-utils": "^0.2.10", "@jambonz/stats-collector": "^0.1.10", "@jambonz/time-series": "^0.2.10", "cidr-matcher": "^2.1.1", @@ -628,9 +628,9 @@ } }, "node_modules/@jambonz/siprec-client-utils": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/@jambonz/siprec-client-utils/-/siprec-client-utils-0.2.9.tgz", - "integrity": "sha512-C/1UOrAvQVG0iwiSMS0MC9VHRjhg3/sOjNna+eEjHjws1SHl8NrKBoDL8uOwLqOM2ccpbqCPH9GJAxo5OnOhww==", + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/@jambonz/siprec-client-utils/-/siprec-client-utils-0.2.10.tgz", + "integrity": "sha512-Ns7rWK6cXVCr/1IoqPuVg9UKVRZNcs5EMvnhuoPhRD6L0HzLnfB0/BAq29bkHj0sr0bu0dp3hD5B+BnOcJuhaQ==", "license": "MIT", "dependencies": { "sdp-transform": "^2.14.1", diff --git a/package.json b/package.json index 6fc9920..680ac32 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@jambonz/http-health-check": "^0.0.1", "@jambonz/mw-registrar": "0.2.7", "@jambonz/rtpengine-utils": "^0.4.4", - "@jambonz/siprec-client-utils": "^0.2.9", + "@jambonz/siprec-client-utils": "^0.2.10", "@jambonz/stats-collector": "^0.1.10", "@jambonz/time-series": "^0.2.10", "cidr-matcher": "^2.1.1",