Author: sayer
Date: 2009-02-14 17:31:46 +0100 (Sat, 14 Feb 2009)
New Revision: 1274

Modified:
   trunk/apps/auth_b2b/AuthB2B.cpp
Log:
 o check for cseq
 o added monitoring


Modified: trunk/apps/auth_b2b/AuthB2B.cpp
===================================================================
--- trunk/apps/auth_b2b/AuthB2B.cpp     2009-02-14 16:25:21 UTC (rev 1273)
+++ trunk/apps/auth_b2b/AuthB2B.cpp     2009-02-14 16:31:46 UTC (rev 1274)
@@ -179,7 +179,7 @@
 {
   bool ret = false;
 
-  if (m_state == BB_Dialing) {
+  if ((m_state == BB_Dialing) && (reply.cseq == invite_req.cseq)) {
     if (reply.code < 200) {
       DBG("Callee is trying... code %d\n", reply.code);
     }
@@ -280,6 +280,18 @@
   DBG("Created B2BUA callee leg, From: %s\n",
       from.c_str());
 
+  if (AmConfig::LogSessions) {
+    INFO("Starting B2B callee session %s app %s\n",
+        callee_session->getLocalTag().c_str(), invite_req.cmd.c_str());
+  }
+
+  MONITORING_LOG5(other_id.c_str(), 
+                 "app",  invite_req.cmd.c_str(),
+                 "dir",  "out",
+                 "from", callee_dlg.local_party.c_str(),
+                 "to",   callee_dlg.remote_party.c_str(),
+                 "ruri", callee_dlg.remote_uri.c_str());
+
   callee_session->start();
   
   AmSessionContainer* sess_cont = AmSessionContainer::instance();

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to