[OpenSIPS-Devel] [OpenSIPS/opensips] 8a9a39: drouting: Do not start with NULL DB connections

Liviu Chircu noreply at github.com
Tue Aug 4 09:56:58 EST 2020

  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 8a9a396d4d1a7025a1fe93d564f1ebe5150961b4
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-08-04 (Tue, 04 Aug 2020)

  Changed paths:
    M modules/drouting/drouting.c

  Log Message:
  drouting: Do not start with NULL DB connections

Force all DB connection objects to be created right from the start,
otherwise strange, hard to diagnose errors may _occasionally_ pop up
during runtime:

 ERROR:core:db_use_table: invalid parameter value (nil), 0x7ff31329a108
 ERROR:drouting:dr_state_flusher: cannot select table "dr_gateways"

    ... or:

 INFO:drouting:dr_reload_cmd: dr_reload MI command received!
 CRITICAL:core:db_table_version: invalid parameter value
 ERROR:core:db_check_table_version: querying version for table dr_gateways
 CRITICAL:drouting:dr_reload_data_head: failed to load routing info
 CRITICAL:drouting:dr_reload_cmd: Failed to load data head

More information about the Devel mailing list