MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / uses_rule_table_query

Function uses_rule_table_query

modules/drouting/drouting.c:1144–1160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1142}
1143
1144static inline int uses_rule_table_query(const struct head_db *dbh, str *query)
1145{
1146 struct custom_rule_table *it;
1147
1148 for (it = custom_rule_tables; it; it = it->next) {
1149 if (!str_strcmp(&dbh->drr_table, &it->id)) {
1150 if (query)
1151 *query = it->query;
1152 return 1;
1153 }
1154 }
1155
1156 if (query)
1157 memset(query, 0, sizeof *query);
1158
1159 return 0;
1160}
1161
1162/*
1163 * if none is successfully loaded return

Callers 2

dr_reload_data_headFunction · 0.85
dr_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected