[asterisk-commits] rmudgett: branch rmudgett/bch_shift_v1.8 r311664 - /team/rmudgett/bch_shift_v...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 24 13:35:13 CDT 2011


Author: rmudgett
Date: Thu Mar 24 13:35:05 2011
New Revision: 311664

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=311664
Log:
Just destroy calls if T309 is not enabled.

Modified:
    team/rmudgett/bch_shift_v1.8/channels/sig_pri.c

Modified: team/rmudgett/bch_shift_v1.8/channels/sig_pri.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/bch_shift_v1.8/channels/sig_pri.c?view=diff&rev=311664&r1=311663&r2=311664
==============================================================================
--- team/rmudgett/bch_shift_v1.8/channels/sig_pri.c (original)
+++ team/rmudgett/bch_shift_v1.8/channels/sig_pri.c Thu Mar 24 13:35:05 2011
@@ -4706,10 +4706,9 @@
 						struct sig_pri_chan *p = pri->pvts[i];
 						if (p) {
 							if (!p->pri || !p->pri->pri || pri_get_timer(p->pri->pri, PRI_TIMER_T309) < 0) {
-								/* T309 is not enabled : hangup calls when alarm occurs */
+								/* T309 is not enabled : destroy calls when alarm occurs */
 								if (p->call) {
 									if (p->pri && p->pri->pri) {
-										pri_hangup(p->pri->pri, p->call, -1);
 										pri_destroycall(p->pri->pri, p->call);
 										p->call = NULL;
 									} else
@@ -7534,11 +7533,10 @@
 	sig_pri_set_alarm(p, !noalarm);
 	if (!noalarm) {
 		if (!p->pri || !p->pri->pri || (pri_get_timer(p->pri->pri, PRI_TIMER_T309) < 0)) {
-			/* T309 is not enabled : hangup calls when alarm occurs */
+			/* T309 is not enabled : destroy calls when alarm occurs */
 			if (p->call) {
 				if (p->pri && p->pri->pri) {
 					if (!pri_grab(p, p->pri)) {
-						pri_hangup(p->pri->pri, p->call, -1);
 						pri_destroycall(p->pri->pri, p->call);
 						p->call = NULL;
 						sig_pri_span_devstate_changed(p->pri);




More information about the asterisk-commits mailing list