diff --git a/apps/sbc/RegisterCache.h b/apps/sbc/RegisterCache.h index 3977daa5..1e858f3c 100644 --- a/apps/sbc/RegisterCache.h +++ b/apps/sbc/RegisterCache.h @@ -91,6 +91,14 @@ class AorEntry : public unordered_map } friend class AorHash; + +public: + long int get_lowest_expire() const { + auto it = bindings_by_time.cbegin(); + if (it == bindings_by_time.cend()) + return LONG_MAX; // empty sets go last + return (*it)->second.reg_expire; + } }; struct AliasEntry