| 1100 | |
| 1101 | |
| 1102 | inline static int parse_bavp(str *s, pv_spec_t *bavp) |
| 1103 | { |
| 1104 | s->len = strlen(s->s); |
| 1105 | if (pv_parse_spec(s, bavp)==NULL) { |
| 1106 | LM_ERR("malformed bavp definition %s\n", s->s); |
| 1107 | return -1; |
| 1108 | } |
| 1109 | /* check if there is a bavp type */ |
| 1110 | if (bavp->type != (pv_type_t)(903 + PVT_EXTRA)) { |
| 1111 | LM_ERR("store parameter must be an bavp\n"); |
| 1112 | return -1; |
| 1113 | } |
| 1114 | return 0; |
| 1115 | |
| 1116 | } |
| 1117 | |
| 1118 | /* hack to get the rtpproxy node used for the offer */ |
| 1119 | static pv_spec_t media_pvar; |
no test coverage detected