From 16719a5f7477c4f85dd33c774733ff402aa35056 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Tue, 22 Jul 2008 19:43:26 +0000 Subject: [PATCH] rename API call and option (nothing has been released to use it yet so this should be safe) to be more accurate in describing what it does (closes issue #13042) git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@589 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- libpri.h | 2 +- pri.c | 4 ++-- pri_internal.h | 2 +- q931.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libpri.h b/libpri.h index 842c370..9733b02 100644 --- a/libpri.h +++ b/libpri.h @@ -625,7 +625,7 @@ int pri_progress(struct pri *pri, q931_call *c, int channel, int info); int pri_proceeding(struct pri *pri, q931_call *c, int channel, int info); /* Enable inband progress when a RELEASE is received */ -void pri_set_inbandrelease(struct pri *pri, unsigned int enable); +void pri_set_inbanddisconnect(struct pri *pri, unsigned int enable); /* Enslave a PRI to another, so they share the same call list (and maybe some timers) */ diff --git a/pri.c b/pri.c index eb7dd50..55bf974 100644 --- a/pri.c +++ b/pri.c @@ -782,9 +782,9 @@ void pri_set_overlapdial(struct pri *pri,int state) pri->overlapdial = state; } -void pri_set_inbandrelease(struct pri *pri, unsigned int enable) +void pri_set_inbanddisconnect(struct pri *pri, unsigned int enable) { - pri->acceptinbandrelease = (enable != 0); + pri->acceptinbanddisconnect = (enable != 0); } int pri_fd(struct pri *pri) diff --git a/pri_internal.h b/pri_internal.h index 038d65f..409f34c 100644 --- a/pri_internal.h +++ b/pri_internal.h @@ -65,7 +65,7 @@ struct pri { int tei; int protodisc; unsigned int bri:1; - unsigned int acceptinbandrelease:1; /* Should we allow inband progress after RELEASE? */ + unsigned int acceptinbanddisconnect:1; /* Should we allow inband progress after RELEASE? */ /* Q.921 State */ int q921_state; diff --git a/q931.c b/q931.c index c01f2cb..1beb067 100644 --- a/q931.c +++ b/q931.c @@ -3782,7 +3782,7 @@ int q931_receive(struct pri *pri, q931_h *h, int len) /* wait for a RELEASE so that sufficient time has passed for the inband audio to be heard */ - if (pri->acceptinbandrelease && (c->progressmask & PRI_PROG_INBAND_AVAILABLE)) + if (pri->acceptinbanddisconnect && (c->progressmask & PRI_PROG_INBAND_AVAILABLE)) break; /* Return such an event */