mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
when handling reinvites for SIPREC incoming calls just respond 200 OK with existing sdp
This commit is contained in:
@@ -1450,9 +1450,15 @@ class CallSession extends Emitter {
|
|||||||
async _onReinvite(req, res) {
|
async _onReinvite(req, res) {
|
||||||
try {
|
try {
|
||||||
if (this.ep) {
|
if (this.ep) {
|
||||||
const newSdp = await this.ep.modify(req.body);
|
if (this.isSipRecCallSession) {
|
||||||
res.send(200, {body: newSdp});
|
this.logger.info('handling reINVITE for siprec call');
|
||||||
this.logger.info({offer: req.body, answer: newSdp}, 'handling reINVITE');
|
res.send(200, {body: this.ep.local.sdp});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
const newSdp = await this.ep.modify(req.body);
|
||||||
|
res.send(200, {body: newSdp});
|
||||||
|
this.logger.info({offer: req.body, answer: newSdp}, 'handling reINVITE');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (this.currentTask && this.currentTask.name === TaskName.Dial) {
|
else if (this.currentTask && this.currentTask.name === TaskName.Dial) {
|
||||||
this.logger.info('handling reINVITE after media has been released');
|
this.logger.info('handling reINVITE after media has been released');
|
||||||
|
|||||||
Reference in New Issue
Block a user