Browse code

sbc: added call-end event when BYE comes from B-leg

Raphael Coeffic authored on 03/04/2013 16:11:48
Showing 2 changed files
... ...
@@ -559,6 +559,13 @@ void SBCCallLeg::onBye(const AmSipRequest& req)
559 559
     logCallEnd("bye",&req);
560 560
 }
561 561
 
562
+void SBCCallLeg::onOtherBye(const AmSipRequest& req)
563
+{
564
+  CallLeg::onOtherBye(req);
565
+  if(a_leg)
566
+    logCallEnd("bye",&req);
567
+}
568
+
562 569
 void SBCCallLeg::onDtmf(int event, int duration)
563 570
 {
564 571
   if(media_session) {
... ...
@@ -178,6 +178,7 @@ class SBCCallLeg : public CallLeg, public CredentialHolder
178 178
 
179 179
   void onRemoteDisappeared(const AmSipReply& reply);
180 180
   void onBye(const AmSipRequest& req);
181
+  void onOtherBye(const AmSipRequest& req);
181 182
 
182 183
   void onControlCmd(string& cmd, AmArg& params);
183 184