From: Kevin P. Fleming Date: Thu, 18 May 2006 19:16:40 +0000 (+0000) Subject: support 'inactive' tag for SDP media streams (simple fix, proper fix will appear... X-Git-Tag: 1.2.9.1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ef43a770be5e5c1965b5affca632813714d8c54;p=thirdparty%2Fasterisk.git support 'inactive' tag for SDP media streams (simple fix, proper fix will appear in 1.4 release) (issue #7130) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28335 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6eb47c0c66..bc980b68ba 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3554,12 +3554,12 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) sdpLineNum_iterator_init(&iterator); while ((a = get_sdp_iterate(&iterator, req, "a"))[0] != '\0') { char* mimeSubtype = ast_strdupa(a); /* ensures we have enough space */ - if (!strcasecmp(a, "sendonly")) { - sendonly=1; + if (!strcasecmp(a, "sendonly") || !strcasecmp(a, "inactive")) { + sendonly = 1; continue; } if (!strcasecmp(a, "sendrecv")) { - sendonly=0; + sendonly = 0; } if (sscanf(a, "rtpmap: %u %[^/]/", &codec, mimeSubtype) != 2) continue; if (debug)