aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-23 21:11:55 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-23 21:11:55 +0000
commit17b653d415f98503ce8ec693cad98ad24330be3d (patch)
tree041c42d3798f2bd5335f8cf6474501ab50451451 /channels
parentd4794bdb9fc8c691e79f4c6ddc2f9bec36211e38 (diff)
Merged revisions 99978 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r99978 | oej | 2008-01-23 22:07:16 +0100 (Ons, 23 Jan 2008) | 7 lines Second attempt. Don't change invitestate when receiving 18x messages in CANCEL state. (issue #11736) Reported by: MVF Patch by oej. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@99980 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 598ccaa54..ed79134c8 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -14290,7 +14290,8 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
}
}
if (find_sdp(req)) {
- p->invitestate = INV_EARLY_MEDIA;
+ if (p->invitestate != INV_CANCELLED)
+ p->invitestate = INV_EARLY_MEDIA;
res = process_sdp(p, req);
if (!req->ignore && p->owner) {
/* Queue a progress frame only if we have SDP in 180 or 182 */
@@ -14305,7 +14306,8 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
sip_cancel_destroy(p);
/* Ignore 183 Session progress without SDP */
if (find_sdp(req)) {
- p->invitestate = INV_EARLY_MEDIA;
+ if (p->invitestate != INV_CANCELLED)
+ p->invitestate = INV_EARLY_MEDIA;
res = process_sdp(p, req);
if (!req->ignore && p->owner) {
/* Queue a progress frame */