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

Function dr_get_sort_alg

modules/drouting/dr_cb_sorting.h:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46extern unsigned char sort_algs[N_MAX_SORT_CBS];
47
48static inline sort_cb_type dr_get_sort_alg(char alg) {
49 unsigned char *p = memchr(sort_algs, alg, N_MAX_SORT_CBS);
50 return !p ? NO_SORT : (sort_cb_type)(p - sort_algs);
51}
52
53/* parameters needed for the registration of a gw */
54struct dr_reg_param {

Callers 2

add_carrierFunction · 0.85
build_rt_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected