Don't send proceeding when sending progress

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@116 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Mark Spencer 2004-06-16 18:04:22 +00:00
parent dd9ba5b8a5
commit 1e5fad5fe7

8
q931.c
View File

@ -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);
}