summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2014-03-28 12:02:13 +0000
committerNanang Izzuddin <nanang@teluu.com>2014-03-28 12:02:13 +0000
commit953b2c6b19238d1ac7255dc088689f4434d775a9 (patch)
treef28bf1fed27051ba7f39126fe990fa163a150f55 /pjsip
parent16e91574526a166be70846afe560f026f27a02a8 (diff)
Fix #1755: Send ACK for incoming 200/INVITE even after call is disconnected.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4806 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/src/pjsip-ua/sip_inv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pjsip/src/pjsip-ua/sip_inv.c b/pjsip/src/pjsip-ua/sip_inv.c
index 52cab52c..eed74ccd 100644
--- a/pjsip/src/pjsip-ua/sip_inv.c
+++ b/pjsip/src/pjsip-ua/sip_inv.c
@@ -629,9 +629,12 @@ static pj_bool_t mod_inv_on_rx_response(pjsip_rx_data *rdata)
* retransmission is received. Also handle the situation
* when we have another re-INVITE on going and 200/OK
* retransmission is received. See:
- * https://trac.pjsip.org/repos/ticket/1725
+ * https://trac.pjsip.org/repos/ticket/1725.
+ * Also send ACK for 200/OK of pending re-INVITE after call is
+ * disconnected (see https://trac.pjsip.org/repos/ticket/1755).
*/
if (inv->invite_tsx == NULL ||
+ inv->state == PJSIP_INV_STATE_DISCONNECTED ||
(inv->last_ack && inv->last_ack_cseq==rdata->msg_info.cseq->cseq))
{
pjsip_event e;