MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / parse_bavp

Function parse_bavp

modules/rtpproxy/rtpproxy.c:1102–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1100
1101
1102inline 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 */
1119static pv_spec_t media_pvar;

Callers 1

mod_initFunction · 0.85

Calls 1

pv_parse_specFunction · 0.85

Tested by

no test coverage detected