summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-03-02 16:02:54 +0000
committerMark Spencer <markster@digium.com>2005-03-02 16:02:54 +0000
commit0bad15d227cb2951d7c3cf48029399451c29eb73 (patch)
tree55e75de514af13794e0687f8771ba68a556bf262 /channels
parent1ed8dd396fbf73adf87835ea4f2570aba97291ff (diff)
Be sure to process SDP if we already have an owner (bug #3701)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 83edfca8c..5eb4cd8e0 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8001,6 +8001,16 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
p->pendinginvite = seqno;
copy_request(&p->initreq, req);
check_via(p, req);
+ if (p->owner) {
+ /* Handle SDP here if we already have an owner */
+ 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");
+ }
+ }
} else if (debug)
ast_verbose("Ignoring this request\n");
if (!p->lastinvite && !ignore && !p->owner) {