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

Function _dm_send_message_callback

modules/aaa_diameter/dm_impl.c:2020–2038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2018}
2019
2020int _dm_send_message_callback(aaa_conn *_, aaa_message *req, diameter_reply_cb *cb, void *param)
2021{
2022 struct dm_cond *cond;
2023
2024 if (!req)
2025 return -1;
2026
2027 cond = dm_get_cond(DM_TYPE_CB, cb, param);
2028 if (!cond) {
2029 LM_ERR("out of memory for cond\n");
2030 return -1;
2031 }
2032
2033 dm_push_queue(req, cond);
2034
2035 LM_DBG("message queued for async sending\n");
2036
2037 return 0;
2038}
2039
2040void _dm_release_message_response(struct dm_cond *cond, char *rpl_avps)
2041{

Callers 1

dm_api_send_req_asyncFunction · 0.85

Calls 2

dm_get_condFunction · 0.85
dm_push_queueFunction · 0.85

Tested by

no test coverage detected