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

Function parse_param_body

parser/parse_param.c:320–335  ·  view source on GitHub ↗

* Parse body of a parameter. It can be quoted string or * a single token. */

Source from the content-addressed store, hash-verified

318 * a single token.
319 */
320static inline int parse_param_body(str* _s, param_t* _c)
321{
322 if (_s->s[0] == '\"') {
323 if (parse_quoted_param(_s, &(_c->body)) < 0) {
324 LM_ERR("failed to parse quoted string\n");
325 return -2;
326 }
327 } else {
328 if (parse_token_param(_s, &(_c->body)) < 0) {
329 LM_ERR("failed to parse token\n");
330 return -3;
331 }
332 }
333
334 return 0;
335}
336
337
338/*

Callers 1

parse_paramsFunction · 0.85

Calls 2

parse_quoted_paramFunction · 0.85
parse_token_paramFunction · 0.85

Tested by

no test coverage detected