From 2ef43a770be5e5c1965b5affca632813714d8c54 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 18 May 2006 19:16:40 +0000 Subject: [PATCH] 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 --- channels/chan_sip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.47.2