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

Function get_mqk

modules/mqueue/mqueue_api.c:430–443  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

428 *
429 */
430str *get_mqk(str *in)
431{
432 mq_pv_t *mp = NULL;
433
434 if(mq_head_get(in) == NULL) {
435 LM_ERR("mqueue not found: %.*s\n", in->len, in->s);
436 return NULL;
437 }
438
439 mp = mq_pv_get(in);
440 if(mp == NULL || mp->item == NULL || mp->item->key.len <= 0)
441 return NULL;
442 return &mp->item->key;
443}
444
445/**
446 *

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