[svn-commits] rmudgett: trunk r211191 - /trunk/channels/sig_pri.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 7 18:17:44 CDT 2009


Author: rmudgett
Date: Fri Aug  7 18:17:41 2009
New Revision: 211191

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=211191
Log:
Fix static on line when PRI does overlap dialing.

The wrong encoding law was used because = was used when it should
have been ==.

Modified:
    trunk/channels/sig_pri.c

Modified: trunk/channels/sig_pri.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/sig_pri.c?view=diff&rev=211191&r1=211190&r2=211191
==============================================================================
--- trunk/channels/sig_pri.c (original)
+++ trunk/channels/sig_pri.c Fri Aug  7 18:17:41 2009
@@ -1266,7 +1266,11 @@
 							 * so other threads can send D channel messages.
 							 */
 							ast_mutex_unlock(&pri->lock);
-							c = sig_pri_new_ast_channel(pri->pvts[chanpos], AST_STATE_RESERVED, 0, (e->ring.layer1 = PRI_LAYER_1_ALAW) ? SIG_PRI_ALAW : SIG_PRI_ULAW, e->ring.ctype, pri->pvts[chanpos]->exten, NULL);
+							c = sig_pri_new_ast_channel(pri->pvts[chanpos],
+								AST_STATE_RESERVED, 0,
+								(e->ring.layer1 == PRI_LAYER_1_ALAW)
+									? SIG_PRI_ALAW : SIG_PRI_ULAW,
+								e->ring.ctype, pri->pvts[chanpos]->exten, NULL);
 							ast_mutex_lock(&pri->lock);
 							if (c) {
 								if (!ast_strlen_zero(e->ring.callingsubaddr)) {
@@ -1311,7 +1315,11 @@
 							 * so other threads can send D channel messages.
 							 */
 							ast_mutex_unlock(&pri->lock);
-							c = sig_pri_new_ast_channel(pri->pvts[chanpos], AST_STATE_RING, 0, (e->ring.layer1 == PRI_LAYER_1_ALAW) ? SIG_PRI_ALAW : SIG_PRI_ULAW, e->ring.ctype, pri->pvts[chanpos]->exten, NULL);
+							c = sig_pri_new_ast_channel(pri->pvts[chanpos],
+								AST_STATE_RING, 0,
+								(e->ring.layer1 == PRI_LAYER_1_ALAW)
+									? SIG_PRI_ALAW : SIG_PRI_ULAW, e->ring.ctype,
+								pri->pvts[chanpos]->exten, NULL);
 							ast_mutex_lock(&pri->lock);
 							if (c) {
 								/*




More information about the svn-commits mailing list