[asterisk-commits] file: branch 1.8 r358162 - /branches/1.8/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 5 10:41:06 CST 2012
Author: file
Date: Mon Mar 5 10:41:01 2012
New Revision: 358162
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=358162
Log:
Defer sending the connected line reinvite if a reinvite is already in progress.
(issue ASTERISK-19355)
Reported by: tomaso
(closes issue AST-825)
Modified:
branches/1.8/channels/chan_sip.c
Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=358162&r1=358161&r2=358162
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Mon Mar 5 10:41:01 2012
@@ -12970,7 +12970,7 @@
if (p->owner->_state == AST_STATE_UP || ast_test_flag(&p->flags[0], SIP_OUTGOING)) {
struct sip_request req;
- if (p->invitestate == INV_CONFIRMED || p->invitestate == INV_TERMINATED) {
+ if (!p->pendinginvite && (p->invitestate == INV_CONFIRMED || p->invitestate == INV_TERMINATED)) {
reqprep(&req, p, ast_test_flag(&p->flags[0], SIP_REINVITE_UPDATE) ? SIP_UPDATE : SIP_INVITE, 0, 1);
add_header(&req, "Allow", ALLOWED_METHODS);
More information about the asterisk-commits
mailing list