Don't send proceeding twice (#7800)
authorMatthew Fredrickson <creslin@digium.com>
Fri, 25 Aug 2006 15:14:42 +0000 (15:14 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Fri, 25 Aug 2006 15:14:42 +0000 (15:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41067 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 27714f9..55d55c4 100644 (file)
@@ -8628,10 +8628,11 @@ static void *pri_dchannel(void *vpri)
                                                res = set_actual_gain(pri->pvts[chanpos]->subs[SUB_REAL].zfd, 0, pri->pvts[chanpos]->rxgain, pri->pvts[chanpos]->txgain, law);
                                                if (res < 0)
                                                        ast_log(LOG_WARNING, "Unable to set gains on channel %d\n", pri->pvts[chanpos]->channel);
-                                               if (e->ring.complete || !pri->overlapdial)
+                                               if (e->ring.complete || !pri->overlapdial) {
                                                        /* Just announce proceeding */
+                                                       p->proceeding = 1;
                                                        pri_proceeding(pri->pri, e->ring.call, PVT_TO_CHANNEL(pri->pvts[chanpos]), 0);
-                                               else  {
+                                               } else {
                                                        if (pri->switchtype != PRI_SWITCH_GR303_TMC) 
                                                                pri_need_more_info(pri->pri, e->ring.call, PVT_TO_CHANNEL(pri->pvts[chanpos]), 1);
                                                        else