Gives application control over event DPA received for both client and entity
[anna.git] / source / diameter.comm / ServerSession.cpp
index ce4f3ce..90da697 100644 (file)
@@ -346,6 +346,10 @@ void ServerSession::eventUnknownResponse(const anna::DataBlock& response) throw(
   a_parent->eventUnknownResponse(this, response);
 }
 
+void ServerSession::eventDPA(const anna::DataBlock& response) throw(anna::RuntimeException) {
+  // Inform father server:
+  a_parent->eventDPA(this, response);
+}
 
 //------------------------------------------------------------------------------------------
 // Se invoca desde el diameter::comm::Receiver
@@ -452,6 +456,9 @@ throw(anna::RuntimeException) {
         doUnbind = true;
       }
     }
+
+    eventDPA(db);
+
   } else if(cid == helpers::base::COMMANDID__Device_Watchdog_Answer) {  // non usual (server should not send DWR's)
     oamModule.count(OamModule::Counter::DWAReceived);
   }