Module: sems Branch: 1.4 Commit: 6dd786f0e2ef5b91c1b914821fccbfdf35ff999a URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=6dd786f0e2ef5b91c1b914821fccbfdf35ff999a
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Mon Jul 15 15:43:33 2013 +0200 sbc: b/f: reply 100 Trying to in-dlg msgs which are to be relayed --- apps/sbc/SBC.cpp | 10 ++++++++++ core/AmSipHeaders.h | 1 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/apps/sbc/SBC.cpp b/apps/sbc/SBC.cpp index f429cb4..0956472 100644 --- a/apps/sbc/SBC.cpp +++ b/apps/sbc/SBC.cpp @@ -821,6 +821,11 @@ void SBCDialog::onSipRequest(const AmSipRequest& req) { } } + if (fwd) { + DBG("replying 100 Trying of %s msg to be fwd'ed\n", req.method.c_str()); + dlg.reply(req, 100, SIP_REPLY_TRYING); + } + AmB2BCallerSession::onSipRequest(req); } @@ -1173,6 +1178,11 @@ void SBCCalleeSession::onSipRequest(const AmSipRequest& req) { } } + if (fwd) { + DBG("replying 100 Trying of %s msg to be fwd'ed\n", req.method.c_str()); + dlg.reply(req, 100, SIP_REPLY_TRYING); + } + AmB2BCalleeSession::onSipRequest(req); } diff --git a/core/AmSipHeaders.h b/core/AmSipHeaders.h index 39e5974..1bdeef7 100644 --- a/core/AmSipHeaders.h +++ b/core/AmSipHeaders.h @@ -57,5 +57,6 @@ #define SIP_REPLY_EXTENSION_REQUIRED "Extension Required" #define SIP_REPLY_LOOP_DETECTED "Loop Detected" #define SIP_REPLY_NOT_EXIST "Call Leg/Transaction Does Not Exist" +#define SIP_REPLY_TRYING "Trying" #endif /* __AMSIPHEADERS_H__ */ _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
