Module: sems Branch: master Commit: 4761b098de6ab741dacbeaa1233cc0462f377e1c URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=4761b098de6ab741dacbeaa1233cc0462f377e1c
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Wed Mar 6 17:17:59 2013 +0100 sbc: reg-cache: generate an event when UA-side of the binding expires. --- apps/sbc/RegisterCache.cpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/apps/sbc/RegisterCache.cpp b/apps/sbc/RegisterCache.cpp index 1b7acb9..ddea034 100644 --- a/apps/sbc/RegisterCache.cpp +++ b/apps/sbc/RegisterCache.cpp @@ -8,6 +8,7 @@ #include "RegisterDialog.h" #include "AmSession.h" //getNewId #include "AmUtils.h" +#include "SBCEventLog.h" #include <utility> using std::pair; @@ -114,7 +115,11 @@ void AliasBucket::dump_elmt(const string& alias, const AliasEntry* p_ae) const void AliasEntry::fire() { + AmArg ev; + ev["aor"] = aor; + ev["contact"] = contact_uri; DBG("Alias expired (UA): '%s' -> '%s'\n",alias.c_str(),aor.c_str()); + SBCEventLog::instance()->logEvent(alias,ev); } struct RegCacheLogHandler _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
