From: Matthew Fredrickson Date: Thu, 27 Apr 2006 16:20:39 +0000 (+0000) Subject: Make sure we use the correct event type when we're moving channels around :-) X-Git-Tag: 1.4.0-beta1~1768 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=173e8b14cdef73792940859b28630644282fc565;p=thirdparty%2Fasterisk.git Make sure we use the correct event type when we're moving channels around :-) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22867 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 9df4ca5845..2c9f706e20 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -9315,7 +9315,7 @@ static void *pri_dchannel(void *vpri) ast_log(LOG_WARNING, "Received SETUP_ACKNOWLEDGE on unconfigured channel %d/%d span %d\n", PRI_SPAN(e->setup_ack.channel), PRI_CHANNEL(e->setup_ack.channel), pri->span); } else { - chanpos = pri_fixup_principle(pri, chanpos, e->ring.call); + chanpos = pri_fixup_principle(pri, chanpos, e->setup_ack.call); if (chanpos > -1) { ast_mutex_lock(&pri->pvts[chanpos]->lock); pri->pvts[chanpos]->setup_ack = 1;