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

Function dm_add_pending_reply

modules/aaa_diameter/dm_impl.c:828–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826
827
828int dm_add_pending_reply(const str *callid, struct dm_cond *reply_cond)
829{
830 struct dm_cond **cond_holder;
831 unsigned int hentry;
832
833 hentry = hash_entry(pending_replies, *callid);
834 hash_lock(pending_replies, hentry);
835
836 cond_holder = (struct dm_cond **)hash_get(pending_replies, hentry, *callid);
837 if (!cond_holder) {
838 hash_unlock(pending_replies, hentry);
839 LM_ERR("oom\n");
840 return -1;
841 }
842
843 *cond_holder = reply_cond;
844 dm_cond_ref(reply_cond);
845 hash_unlock(pending_replies, hentry);
846
847 return 0;
848}
849
850struct dm_find_cond_ctx {
851 struct dm_cond *cond;

Callers 2

dm_send_authFunction · 0.85
dm_send_custom_reqFunction · 0.85

Calls 2

hash_entryClass · 0.85
dm_cond_refFunction · 0.85

Tested by

no test coverage detected