respond to reinvite request incase error (#126)

This commit is contained in:
Hoan Luu Huu
2024-03-07 19:49:05 +07:00
committed by GitHub
parent 16ac56e50e
commit 591b8f2f8a

View File

@@ -782,6 +782,7 @@ Duration=${payload.duration} `
this.logger.debug({opts, sdp: response.sdp}, 'CallSession:_onReinvite: (answer) sending back upstream'); this.logger.debug({opts, sdp: response.sdp}, 'CallSession:_onReinvite: (answer) sending back upstream');
res.send(200, {body: response.sdp}); res.send(200, {body: response.sdp});
} catch (err) { } catch (err) {
res.send(err.status || 500);
this.logger.error(err, 'Error handling reinvite'); this.logger.error(err, 'Error handling reinvite');
} }
} }