From 1e5fad5fe77264a462444061f2c0a644d3151986 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 16 Jun 2004 18:04:22 +0000 Subject: [PATCH] Don't send proceeding when sending progress git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@116 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/q931.c b/q931.c index e8c8bac..d714ca4 100755 --- a/q931.c +++ b/q931.c @@ -1811,8 +1811,11 @@ static int call_progress_ies[] = { Q931_PROGRESS_INDICATOR, -1 }; int q931_call_progress(struct pri *pri, q931_call *c, int channel, int info) { - if (!c->proc) - q931_call_proceeding(pri, c, channel, 0); + if (channel) { + c->ds1no = (channel & 0xff00) >> 8; + channel &= 0xff; + c->channelno = channel; + } c->ourcallstate = Q931_CALL_STATE_INCOMING_CALL_PROCEEDING; c->peercallstate = Q931_CALL_STATE_OUTGOING_CALL_PROCEEDING; if (info) { @@ -1821,7 +1824,6 @@ int q931_call_progress(struct pri *pri, q931_call *c, int channel, int info) c->progress = Q931_PROG_INBAND_AVAILABLE; } else c->progress = -1; - c->proc = 1; c->alive = 1; return send_message(pri, c, Q931_PROGRESS, call_progress_ies); }