Turn media level c= parsing on by default (issue #7725 reported by psm)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Joshua Colp 19 years ago
parent d98055d875
commit 379785c401

@ -3589,7 +3589,6 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
return -2; return -2;
} }
/* Check for Media-description-level-address for audio */ /* Check for Media-description-level-address for audio */
if (pedanticsipchecking) {
c = get_sdp_iterate(&destiterator, req, "c"); c = get_sdp_iterate(&destiterator, req, "c");
if (!ast_strlen_zero(c)) { if (!ast_strlen_zero(c)) {
if (sscanf(c, "IN IP4 %256s", host) != 1) { if (sscanf(c, "IN IP4 %256s", host) != 1) {
@ -3602,7 +3601,6 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
} }
} }
} }
}
/* RTP addresses and ports for audio and video */ /* RTP addresses and ports for audio and video */
sin.sin_family = AF_INET; sin.sin_family = AF_INET;
memcpy(&sin.sin_addr, hp->h_addr, sizeof(sin.sin_addr)); memcpy(&sin.sin_addr, hp->h_addr, sizeof(sin.sin_addr));
@ -3617,7 +3615,6 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
} }
} }
/* Check for Media-description-level-address for video */ /* Check for Media-description-level-address for video */
if (pedanticsipchecking) {
c = get_sdp_iterate(&destiterator, req, "c"); c = get_sdp_iterate(&destiterator, req, "c");
if (!ast_strlen_zero(c)) { if (!ast_strlen_zero(c)) {
if (sscanf(c, "IN IP4 %256s", host) != 1) { if (sscanf(c, "IN IP4 %256s", host) != 1) {
@ -3630,7 +3627,6 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
} }
} }
} }
}
/* Setup video port number */ /* Setup video port number */
sin.sin_port = htons(vportno); sin.sin_port = htons(vportno);
if (p->vrtp && sin.sin_port) { if (p->vrtp && sin.sin_port) {

Loading…
Cancel
Save