| 2748 | } |
| 2749 | |
| 2750 | static int |
| 2751 | rtpproxy_offer_answer6_f(struct sip_msg *msg, str *param1, str *param2, |
| 2752 | nh_set_param_t *param3, pv_spec_t *param4, pv_spec_t *param5, |
| 2753 | pv_spec_t *param6, pv_spec_t *param7, int offer) |
| 2754 | { |
| 2755 | int ret = -1; |
| 2756 | str *body; |
| 2757 | str param1_val={0,0}, param2_val={0,0}, bind_local_val = STR_NULL; |
| 2758 | |
| 2759 | if (param1) |
| 2760 | rtpp_get_nt_str_param(param1, ¶m1_val, 0); |
| 2761 | if (param2) |
| 2762 | rtpp_get_nt_str_param(param2, ¶m2_val, 1); |
| 2763 | if (param7 && rtpp_get_pv_str_dup(msg, param7, &bind_local_val, |
| 2764 | "bind_local") < 0) |
| 2765 | return -1; |
| 2766 | if (param6) { |
| 2767 | body = rtpproxy_offer_answer_buf(msg, param6); |
| 2768 | if (!body) |
| 2769 | goto error; |
| 2770 | } else { |
| 2771 | body = NULL; |
| 2772 | } |
| 2773 | |
| 2774 | ret = force_rtp_proxy(msg, param1_val.s, param2_val.s, param3, param4, |
| 2775 | param5, body, offer, param7 ? &bind_local_val : NULL); |
| 2776 | if (ret > 0 && param6) |
| 2777 | ret = rtpproxy_offer_answer_buf_ret(msg, param6, body); |
| 2778 | error: |
| 2779 | if (bind_local_val.s) |
| 2780 | pkg_free(bind_local_val.s); |
| 2781 | return ret; |
| 2782 | } |
| 2783 | |
| 2784 | static int |
| 2785 | rtpproxy_offer6_f(struct sip_msg *msg, str *param1, str *param2, |
no test coverage detected