[Asterisk-cvs] asterisk/channels chan_sip.c,1.665,1.666
markster at lists.digium.com
markster at lists.digium.com
Fri Feb 25 10:39:26 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv26191/channels
Modified Files:
chan_sip.c
Log Message:
Handle SDP *after* authentication (bug #3660)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.665
retrieving revision 1.666
diff -u -d -r1.665 -r1.666
--- chan_sip.c 24 Feb 2005 13:57:45 -0000 1.665
+++ chan_sip.c 25 Feb 2005 16:37:34 -0000 1.666
@@ -7988,7 +7988,6 @@
/* We do NOT destroy p here, so that our response will be accepted */
return 0;
}
- /* Process the SDP portion */
if (!ignore) {
/* Use this as the basis */
if (debug)
@@ -8000,16 +7999,6 @@
p->pendinginvite = seqno;
copy_request(&p->initreq, req);
check_via(p, req);
- if (!ast_strlen_zero(get_header(req, "Content-Type"))) {
- if (process_sdp(p, req))
- return -1;
- } else {
- p->jointcapability = p->capability;
- ast_log(LOG_DEBUG, "Hm.... No sdp for the moment\n");
- }
- /* Queue NULL frame to prod ast_rtp_bridge if appropriate */
- if (p->owner)
- ast_queue_frame(p->owner, &af);
} else if (debug)
ast_verbose("Ignoring this request\n");
if (!p->lastinvite && !ignore && !p->owner) {
@@ -8026,6 +8015,17 @@
}
return 0;
}
+ /* Process the SDP portion */
+ if (!ast_strlen_zero(get_header(req, "Content-Type"))) {
+ if (process_sdp(p, req))
+ return -1;
+ } else {
+ p->jointcapability = p->capability;
+ ast_log(LOG_DEBUG, "Hm.... No sdp for the moment\n");
+ }
+ /* Queue NULL frame to prod ast_rtp_bridge if appropriate */
+ if (p->owner)
+ ast_queue_frame(p->owner, &af);
/* Initialize the context if it hasn't been already */
if (ast_strlen_zero(p->context))
strncpy(p->context, default_context, sizeof(p->context) - 1);
More information about the svn-commits
mailing list