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

Function get_partition

modules/drouting/drouting.c:3202–3215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3200
3201
3202struct head_db * get_partition(const str *name)
3203{
3204 struct head_db * it = head_db_start;
3205
3206 while( it!= NULL) {
3207 if( it->partition.len==name->len && memcmp( it->partition.s, name->s,
3208 name->len)==0 ) {
3209 return it;
3210 }
3211 it = it->next;
3212 }
3213
3214 return NULL; /* partition was not found */
3215}
3216
3217
3218static int do_routing(struct sip_msg* msg, struct head_db *part, int grp,

Callers 5

init_dr_blsFunction · 0.70
mi_dr_get_partitionFunction · 0.70
fix_partitionFunction · 0.70
gw_status_updateFunction · 0.70
cr_status_updateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected