diff --git a/core/sip/sip_trans.h b/core/sip/sip_trans.h index b434e247..0cd0d5fe 100644 --- a/core/sip/sip_trans.h +++ b/core/sip/sip_trans.h @@ -97,7 +97,7 @@ public: {} trans_timer(const trans_timer& ti, int bucket_id, sip_trans* t) - : timer(ti.expires), type(ti.type), + : timer(ti), type(ti.type), bucket_id(bucket_id), t(t) {} diff --git a/core/sip/wheeltimer.h b/core/sip/wheeltimer.h index a87325d1..26760d13 100644 --- a/core/sip/wheeltimer.h +++ b/core/sip/wheeltimer.h @@ -70,6 +70,11 @@ public: prev(0), expires(0), expires_rel(expires) {} + timer(const timer &t) + : base_timer(), + prev(0), expires(t.expires), expires_rel(t.expires_rel) + {} + ~timer(); virtual void fire()=0;