Browse code

sbc: call ood_handling_terminated for refused INVITEs

Václav Kubart authored on 22/05/2013 12:59:27 • Raphael Coeffic committed on 22/05/2013 19:50:22
Showing 3 changed files
... ...
@@ -310,7 +310,7 @@ AmSession* SBCFactory::onInvite(const AmSipRequest& req, const string& app_name,
310 310
 }
311 311
 
312 312
 /** out-of-dialog request handling terminated */
313
-static void oodHandlingTerminated(const AmSipRequest &req, vector<AmDynInvoke*>& cc_modules, SBCCallProfile& call_profile)
313
+void oodHandlingTerminated(const AmSipRequest &req, vector<AmDynInvoke*>& cc_modules, SBCCallProfile& call_profile)
314 314
 {
315 315
   for (vector<AmDynInvoke*>::iterator m = cc_modules.begin(); m != cc_modules.end(); ++m) {
316 316
     AmArg args,ret;
... ...
@@ -118,5 +118,6 @@ class SBCFactory: public AmSessionFactory,
118 118
 
119 119
 extern void assertEndCRLF(string& s);
120 120
 extern bool getCCInterfaces(CCInterfaceListT& cc_interfaces, vector<AmDynInvoke*>& cc_modules);
121
+extern void oodHandlingTerminated(const AmSipRequest &req, vector<AmDynInvoke*>& cc_modules, SBCCallProfile& call_profile);
121 122
 
122 123
 #endif
... ...
@@ -743,6 +743,7 @@ void SBCCallLeg::onInvite(const AmSipRequest& req)
743 743
 
744 744
     if (!CCStart(req)) {
745 745
       setStopped();
746
+      oodHandlingTerminated(req, cc_modules, call_profile);
746 747
       return;
747 748
     }
748 749
   }