Skip to content

Commit

Permalink
siprec: make sure events are registered before regex compile
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Aug 13, 2024
1 parent e71f46a commit 217654b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/siprec/siprec_logic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit 217654b

Please sign in to comment.