some failure cases

This commit is contained in:
Dave Horton
2019-12-19 10:56:50 -05:00
parent 2af3d13e10
commit be5a143876
3 changed files with 8 additions and 7 deletions

View File

@@ -79,11 +79,12 @@ class CallSession extends Emitter {
this._setHandlers({uas, uac});
return;
} catch (err) {
this.rtpEngineResource.destroy();
if (err instanceof SipError) {
this.logger.info(`call failed with ${err.status}`);
this.emit('failed');
this.rtpEngineResource.destroy();
return this.emit('failed');
}
this.logger.error(err, 'unexpected error routing inbound call');
}
}

8
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "sbc-inbound",
"version": "0.0.1",
"version": "0.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -749,9 +749,9 @@
}
},
"drachtio-srf": {
"version": "4.4.26",
"resolved": "https://registry.npmjs.org/drachtio-srf/-/drachtio-srf-4.4.26.tgz",
"integrity": "sha512-viEzAhJ2JenpUstXWvHXGpjZckcyfciadD1fG67JxmyvgDYn6RKNeHk/LPjeJUdRNg5z8yS6Lgx4jCtuBP1DJQ==",
"version": "4.4.27",
"resolved": "https://registry.npmjs.org/drachtio-srf/-/drachtio-srf-4.4.27.tgz",
"integrity": "sha512-jMtIHaJCQrkAPdlPABbDLDeOXzPea+m7HCTQMeFV6kAD5dMEAfgrAq5+BfSPhidjySuI6954FvmQuWZo7aRSlw==",
"requires": {
"async": "^1.4.2",
"debug": "^3.1.0",

View File

@@ -29,7 +29,7 @@
"debug": "^4.1.1",
"drachtio-fn-b2b-sugar": "0.0.12",
"drachtio-http-authenticator": "^0.1.8",
"drachtio-srf": "^4.4.26",
"drachtio-srf": "^4.4.27",
"jambonz-db-helpers": "^0.1.5",
"pino": "^5.14.0",
"rtpengine-client": "^0.0.8"