summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2015-01-21 04:12:27 +0000
committerLiong Sauw Ming <ming@teluu.com>2015-01-21 04:12:27 +0000
commit591f068c76a79f7b9c097f27a7a78bca53086533 (patch)
treee966cbca621f75bd941a7685384e005ad3a7005a
parent6764762db5aa4ea1b9b420c6ed9ab24cf7599d65 (diff)
Re #1782 (misc): Do not include SDP when sending 181 response (patch provided by Joshua Colp)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4975 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsip-ua/sip_inv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pjsip/src/pjsip-ua/sip_inv.c b/pjsip/src/pjsip-ua/sip_inv.c
index 786a7ec3..fda6c964 100644
--- a/pjsip/src/pjsip-ua/sip_inv.c
+++ b/pjsip/src/pjsip-ua/sip_inv.c
@@ -2103,7 +2103,7 @@ static pj_status_t process_answer( pjsip_inv_session *inv,
/* If SDP negotiator is ready, start negotiation. */
- if (st_code/100==2 || (st_code/10==18 && st_code!=180)) {
+ if (st_code/100==2 || (st_code/10==18 && st_code!=180 && st_code!=181)) {
pjmedia_sdp_neg_state neg_state;
@@ -2135,8 +2135,8 @@ static pj_status_t process_answer( pjsip_inv_session *inv,
}
}
- /* Include SDP when it's available for 2xx and 18x (but not 180) response.
- * Subsequent response will include this SDP.
+ /* Include SDP when it's available for 2xx and 18x (but not 180 and 181)
+ * response. Subsequent response will include this SDP.
*
* Note note:
* - When offer/answer has been completed in reliable 183, we MUST NOT