From 9a7686d79233dea90f340ebd309766bad787c0a7 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 9 Apr 2010 21:43:42 +0000 Subject: [PATCH] Only one PROCEEDING message per call please. git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1577 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/q931.c b/q931.c index 0798ff5..6e85181 100644 --- a/q931.c +++ b/q931.c @@ -4289,6 +4289,11 @@ static int call_proceeding_ies[] = { Q931_CHANNEL_IDENT, Q931_PROGRESS_INDICATOR int q931_call_proceeding(struct pri *ctrl, q931_call *c, int channel, int info) { + if (c->proc) { + /* We have already sent a PROCEEDING message. Don't send another one. */ + return 0; + } + if (channel) { c->ds1no = (channel & 0xff00) >> 8; c->ds1explicit = (channel & 0x10000) >> 16;