Browse Source

optionally allow broken SDPs as compile switch

closes #52
pull/55/head
Richard Fuchs 11 years ago
parent
commit
3cfeb5ddbc
2 changed files with 7 additions and 0 deletions
  1. +1
    -0
      daemon/Makefile
  2. +6
    -0
      daemon/sdp.c

+ 1
- 0
daemon/Makefile View File

@ -32,6 +32,7 @@ CFLAGS+= -DRTPENGINE_VERSION="\"$(RTPENGINE_VERSION)\""
CFLAGS+= -DMP_PLUGIN_DIR="\"/usr/lib/rtpengine\""
#CFLAGS+= -DSRTCP_KEY_DERIVATION_RFC_COMPLIANCE
#CFLAGS+= -DTERMINATE_SDP_AT_BLANK_LINE
ifeq ($(DBG),yes)
CFLAGS+= -D__DEBUG=1


+ 6
- 0
daemon/sdp.c View File

@ -759,6 +759,12 @@ int sdp_parse(str *body, GQueue *sessions) {
end = str_end(body);
while (b && b < end - 1) {
#ifdef TERMINATE_SDP_AT_BLANK_LINE
if (b[0] == '\n' || b[0] == '\r') {
body->len = b - body->s;
break;
}
#endif
errstr = "Missing '=' sign";
if (b[1] != '=')
goto error;


Loading…
Cancel
Save