diff --git a/modules/siprec/siprec_logic.c b/modules/siprec/siprec_logic.c index 122f3047ee9..02ef39e062a 100644 --- a/modules/siprec/siprec_logic.c +++ b/modules/siprec/siprec_logic.c @@ -65,6 +65,11 @@ int src_init(void) return -1; } + if (src_init_events() < 0) { + LM_ERR("could not initialize siprec events\n"); + return -1; + } + skip_failover_codes.len = strlen(skip_failover_codes.s); if (!skip_failover_codes.len) return 0; @@ -76,11 +81,6 @@ int src_init(void) return -1; } - if (src_init_events() < 0) { - LM_ERR("could not initialize siprec events\n"); - return -1; - } - return 0; }