aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-18 19:16:40 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-18 19:16:40 +0000
commitd5a76b5b3280880317355244d6815c28e6e4d712 (patch)
tree74f23bf85cd0f9cdd636b5304827256492d4b767 /channels/chan_sip.c
parent1d6df62761d2572e0d7fd7336ce2b17b83a623a0 (diff)
support 'inactive' tag for SDP media streams (simple fix, proper fix will appear in 1.4 release) (issue #7130)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@28335 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6eb47c0c6..bc980b68b 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)