diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-02 16:02:54 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-02 16:02:54 +0000 |
commit | 174a62b22d0e296b1355c1fb5b4ba1212a2a0eb3 (patch) | |
tree | 55e75de514af13794e0687f8771ba68a556bf262 /channels | |
parent | c2146f61501fc13e7ea0483fa1a343b19d3da0ea (diff) |
Be sure to process SDP if we already have an owner (bug #3701)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5118 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 10 |
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) { |