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

Function get_mqv

modules/mqueue/mqueue_api.c:448–461  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

446 *
447 */
448str *get_mqv(str *in)
449{
450 mq_pv_t *mp = NULL;
451
452 if(mq_head_get(in) == NULL) {
453 LM_ERR("mqueue not found: %.*s\n", in->len, in->s);
454 return NULL;
455 }
456
457 mp = mq_pv_get(in);
458 if(mp == NULL || mp->item == NULL || mp->item->val.len <= 0)
459 return NULL;
460 return &mp->item->val;
461}
462
463/**
464 *

Callers 2

mqueue_db_save_queueFunction · 0.85
mi_fetchFunction · 0.85

Calls 2

mq_head_getFunction · 0.85
mq_pv_getFunction · 0.85

Tested by

no test coverage detected