* Parse body of a parameter. It can be quoted string or * a single token. */
| 318 | * a single token. |
| 319 | */ |
| 320 | static 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 | /* |
no test coverage detected