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

Function select_dpid

modules/dialplan/dp_db.c:763–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761
762
763dpl_id_p select_dpid(dp_connection_list_p conn, int id, int index)
764{
765 dpl_id_p idp;
766
767 if(!conn || !conn->hash[index])
768 return NULL;
769
770 for(idp = conn->hash[index]; idp!=NULL; idp = idp->next)
771 if(idp->dp_id == id)
772 return idp;
773
774 return NULL;
775}
776
777
778/* FOR DEBUG PURPOSES */

Callers 3

add_rule2hashFunction · 0.85
dp_translate_fFunction · 0.85
mi_translateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected