[asterisk-commits] rmudgett: branch rmudgett/bkp_issue14068 r209615 - /team/rmudgett/bkp_issue14...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 30 17:19:55 CDT 2009


Author: rmudgett
Date: Thu Jul 30 17:19:51 2009
New Revision: 209615

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=209615
Log:
Fix possible PRI PBX start failure hangup race.

Modified:
    team/rmudgett/bkp_issue14068/channels/chan_dahdi.c

Modified: team/rmudgett/bkp_issue14068/channels/chan_dahdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/rmudgett/bkp_issue14068/channels/chan_dahdi.c?view=diff&rev=209615&r1=209614&r2=209615
==============================================================================
--- team/rmudgett/bkp_issue14068/channels/chan_dahdi.c (original)
+++ team/rmudgett/bkp_issue14068/channels/chan_dahdi.c Thu Jul 30 17:19:51 2009
@@ -14942,8 +14942,10 @@
 							} else {
 								ast_log(LOG_WARNING, "Unable to start PBX on channel %d/%d, span %d\n",
 									pri->pvts[chanpos]->logicalspan, pri->pvts[chanpos]->prioffset, pri->span);
-								pri_hangup(pri->pri, e->ring.call, PRI_CAUSE_SWITCH_CONGESTION);
-								pri->pvts[chanpos]->call = NULL;
+								if (!c) {
+									pri_hangup(pri->pri, e->ring.call, PRI_CAUSE_SWITCH_CONGESTION);
+									pri->pvts[chanpos]->call = NULL;
+								}
 							}
 						}
 					} else {




More information about the asterisk-commits mailing list