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

Function launch_route_param_get

async.c:162–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160/************* Functions related to ASYNC Launch support ***************/
161
162int launch_route_param_get(struct sip_msg *msg, pv_param_t *ip,
163 pv_value_t *res, void *params, void *extra)
164{
165 str *val = (str*)params;
166
167 /* we do accept here only one param with index */
168 if (ip->pvn.type!=PV_NAME_INTSTR || ip->pvn.u.isname.type!=0
169 || ip->pvn.u.isname.name.n!=1)
170 return pv_get_null(msg, ip, res);
171
172 res->flags = PV_VAL_STR;
173 res->rs.s =val->s;
174 res->rs.len = val->len;
175
176 return 0;
177}
178
179
180int async_launch_resume(int fd, void *param)

Callers

nothing calls this directly

Calls 1

pv_get_nullFunction · 0.85

Tested by

no test coverage detected