function tsip_event_register(o_session, i_code, s_phrase, o_sip_message, e_register_type) {
    tsip_event.call(this, o_session, i_code, s_phrase, o_sip_message, tsip_event_type_e.REGISTER);
    this.e_register_type = e_register_type;
}
SIP <b>REGISTER</b> event. <br /> The registration state will be reported through @ref tsip_stack::on_event_dialog.
Used to report <b>REGISTER</b> events via @ref tsip_stack::on_event_dialog
@ctor
@tparam tsip_session_register o_session SIP session
@tparam int i_code Event code
@tparam String s_phrase Event description
@tparam tsip_message o_sip_message SIP message
@tparam tsip_event_register_type_e e_register_type <b>REGISTER</b> event type

@code
o_session = new tsip_session_register(o_stack,
                tsip_session.prototype.SetExpires(1800),
                tsip_session.prototype.SetHeader("Purpose", "Registering"),
                tsip_session.prototype.SetCaps("+g.oma.sip-im"),
                tsip_session.prototype.SetCaps("+audio"),
                tsip_session.prototype.SetCaps("language", "\"en,fr\"")
 );
@endcode