From ed5940b3066ba1402a2df94916e34b0be8cade54 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 7 Aug 2009 23:17:41 +0000 Subject: [PATCH] Fix static on line when PRI does overlap dialing. The wrong encoding law was used because = was used when it should have been ==. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211191 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/sig_pri.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/channels/sig_pri.c b/channels/sig_pri.c index af280b594a..d6f732138c 100644 --- a/channels/sig_pri.c +++ b/channels/sig_pri.c @@ -1266,7 +1266,11 @@ static void *pri_dchannel(void *vpri) * 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 @@ static void *pri_dchannel(void *vpri) * 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) { /*