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
This commit is contained in:
5
q931.c
5
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;
|
||||
|
||||
Reference in New Issue
Block a user