From 680178ea9a2dc41d4c43177e611ea8db9954f154 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Mon, 6 May 2013 09:10:56 +0000 Subject: Fix #1665: Added check for tx_data pending state in tsx_send_msg(). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4516 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsip/sip_transaction.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pjsip') diff --git a/pjsip/src/pjsip/sip_transaction.c b/pjsip/src/pjsip/sip_transaction.c index f2e558a5..70c75342 100644 --- a/pjsip/src/pjsip/sip_transaction.c +++ b/pjsip/src/pjsip/sip_transaction.c @@ -2001,6 +2001,13 @@ static pj_status_t tsx_send_msg( pjsip_transaction *tsx, return PJ_SUCCESS; } + /* Skip send if previous tdata transmission is pending (see #1665). */ + if (tdata->is_pending) { + PJ_LOG(2,(THIS_FILE, "Unable to send %s: message is pending", + pjsip_tx_data_get_info(tdata))); + return PJ_SUCCESS; + } + /* If we have the transport, send the message using that transport. * Otherwise perform full transport resolution. */ -- cgit v1.2.3