From af9cb1c96069fec3636e535bf9841e46b91dc81e Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Mon, 15 Nov 2010 17:17:10 +0100 Subject: [PATCH] fixed some reply handling, done in core --- apps/sbc/SBC.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/apps/sbc/SBC.cpp b/apps/sbc/SBC.cpp index a47d9fab..e066f674 100644 --- a/apps/sbc/SBC.cpp +++ b/apps/sbc/SBC.cpp @@ -581,19 +581,9 @@ bool SBCDialog::onOtherReply(const AmSipReply& reply) startPrepaidAccounting(); } } - else if(reply.code == 487 && dlg.getStatus() == AmSipDialog::Pending) { - DBG("Stopping leg A on 487 from B with 487\n"); - dlg.reply(invite_req, 487, "Request terminated"); - setStopped(); - ret = true; - } - else if (reply.code >= 300 && dlg.getStatus() == AmSipDialog::Connected) { - DBG("Callee final error in connected state with code %d\n",reply.code); - terminateLeg(); - } else { DBG("Callee final error with code %d\n",reply.code); - AmB2BCallerSession::onOtherReply(reply); + ret = AmB2BCallerSession::onOtherReply(reply); } } return ret;