| 4478 | #undef RTPPROXY_APPEND_CONST |
| 4479 | |
| 4480 | int force_rtp_proxy_body(struct sip_msg* msg, struct rtpp_args *args, |
| 4481 | pv_spec_p var, pv_spec_p ipvar, str *body, str *bind_local) |
| 4482 | { |
| 4483 | if (!args->callid.len && (get_callid(msg, &args->callid) == -1 || args->callid.len == 0)) { |
| 4484 | LM_ERR("can't get Call-Id field\n"); |
| 4485 | return -1; |
| 4486 | } |
| 4487 | |
| 4488 | if (!args->to_tag.len && !args->to_tag.s) { |
| 4489 | args->to_tag.s = 0; |
| 4490 | if (get_to_tag(msg, &args->to_tag) == -1) { |
| 4491 | LM_ERR("can't get To tag\n"); |
| 4492 | return -1; |
| 4493 | } |
| 4494 | } |
| 4495 | |
| 4496 | if (!args->from_tag.len && |
| 4497 | (get_from_tag(msg, &args->from_tag) == -1 || args->from_tag.len == 0)) { |
| 4498 | LM_ERR("can't get From tag\n"); |
| 4499 | return -1; |
| 4500 | } |
| 4501 | |
| 4502 | return rtpproxy_offer_answer(msg, args, var, ipvar, body, bind_local); |
| 4503 | } |
| 4504 | |
| 4505 | static char *rtpproxy_stats_pop_int(struct sip_msg *msg, char *p, |
| 4506 | pv_spec_p spec, const char *varname) |
no test coverage detected