| 2716 | } |
| 2717 | |
| 2718 | static str *rtpproxy_offer_answer_buf(struct sip_msg *msg, pv_spec_t *body_pv) |
| 2719 | { |
| 2720 | pv_value_t val; |
| 2721 | static str body; |
| 2722 | |
| 2723 | if (pv_get_spec_value(msg, body_pv, &val) < 0 || |
| 2724 | !(val.flags & PV_VAL_STR)) { |
| 2725 | LM_ERR("could not retrieve body!\n"); |
| 2726 | return NULL; |
| 2727 | } |
| 2728 | |
| 2729 | if (pkg_str_sync(&body, &val.rs) < 0) |
| 2730 | return NULL; |
| 2731 | |
| 2732 | return &body; |
| 2733 | } |
| 2734 | |
| 2735 | static int rtpproxy_offer_answer_buf_ret(struct sip_msg *msg, |
| 2736 | pv_spec_t *body_pv, str *body) |
no test coverage detected