| 2733 | } |
| 2734 | |
| 2735 | static int rtpproxy_offer_answer_buf_ret(struct sip_msg *msg, |
| 2736 | pv_spec_t *body_pv, str *body) |
| 2737 | { |
| 2738 | pv_value_t val; |
| 2739 | if(!pv_is_w(body_pv)) |
| 2740 | { |
| 2741 | LM_ERR("read only PV in first parameter of pv_printf\n"); |
| 2742 | return -1; |
| 2743 | } |
| 2744 | memset(&val, 0, sizeof val); |
| 2745 | val.flags = PV_VAL_STR; |
| 2746 | val.rs = *body; |
| 2747 | return pv_set_value(msg, body_pv, 0, &val)<0?-1:1; |
| 2748 | } |
| 2749 | |
| 2750 | static int |
| 2751 | rtpproxy_offer_answer6_f(struct sip_msg *msg, str *param1, str *param2, |
no test coverage detected