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

Function pv_get_reason

pvar.c:605–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605static int pv_get_reason(struct sip_msg *msg, pv_param_t *param,
606 pv_value_t *res)
607{
608 if(msg==NULL)
609 return -1;
610
611 if(msg->first_line.type != SIP_REPLY)
612 return pv_get_null(msg, param, res);
613
614 return pv_get_strval(msg, param, res, &msg->first_line.u.reply.reason);
615}
616
617static int pv_get_ruri(struct sip_msg *msg, pv_param_t *param,
618 pv_value_t *res)

Callers

nothing calls this directly

Calls 2

pv_get_nullFunction · 0.85
pv_get_strvalFunction · 0.85

Tested by

no test coverage detected