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

Function load_dr

modules/drouting/dr_api_internal.c:94–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94int load_dr (struct dr_binds *drb)
95{
96 drb->match_number = match_number;
97 drb->create_head = create_dr_head;
98 drb->free_head = free_dr_head;
99 drb->add_rule = add_rule_api;
100 drb->register_drcb = register_dr_cb;
101 drb->get_gw_name = get_gw_name;
102 drb->get_cr_n_gw = get_cr_n_gw;
103 drb->get_cr_name = get_cr_name;
104 drb->get_gw_from_cr = get_gw_from_cr;
105 drb->get_qr_rule_handle = get_qr_rule_handle;
106 return 0;
107}
108
109/* Function which will try to match a number and return the rule id */
110static rt_info_t *match_number (dr_head_p partition, unsigned int grp_id,

Callers 1

load_dr_apiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected