From 591f068c76a79f7b9c097f27a7a78bca53086533 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Wed, 21 Jan 2015 04:12:27 +0000 Subject: 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 --- pjsip/src/pjsip-ua/sip_inv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pjsip') 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 -- cgit v1.2.3