Browse code

sbc: b/f: reply 100 Trying to in-dlg INVITEs which are to be relayed

Stefan Sayer authored on 17/07/2013 12:13:02
Showing 2 changed files
... ...
@@ -506,6 +506,11 @@ void SBCCallLeg::onSipRequest(const AmSipRequest& req) {
506 506
     if ((*i)->onInDialogRequest(this, req) == StopProcessing) return;
507 507
   }
508 508
 
509
+  if (fwd && req.method == SIP_METH_INVITE) {
510
+    DBG("replying 100 Trying to INVITE to be fwd'ed\n");
511
+    dlg->reply(req, 100, SIP_REPLY_TRYING);
512
+  }
513
+
509 514
   CallLeg::onSipRequest(req);
510 515
 }
511 516
 
... ...
@@ -75,5 +75,6 @@
75 75
 #define SIP_REPLY_NOT_EXIST             "Call Leg/Transaction Does Not Exist"
76 76
 #define SIP_REPLY_PENDING               "Request Pending"
77 77
 #define SIP_REPLY_NOT_ACCEPTABLE_HERE   "Not Acceptable Here"
78
+#define SIP_REPLY_TRYING                "Trying"
78 79
 
79 80
 #endif