From 5f1aba027aeae95ae10b324880a92c8530fc194f Mon Sep 17 00:00:00 2001 From: Martin Pycko Date: Mon, 7 Jul 2003 23:37:18 +0000 Subject: [PATCH] Add posibility of choosing a diffrent form of ALERTING messages that has to be changed to work e.g. with Mitel switches. git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@44 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- Makefile | 6 +++++- q931.c | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9438e20..1308eb4 100755 --- a/Makefile +++ b/Makefile @@ -20,12 +20,16 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # +# +# Uncomment if you want libpri not send PROGRESS_INDICATOR w/ALERTING +#ALERTING=-DALERTING_NO_PROGRESS + TOBJS=testpri.o STATIC_LIBRARY=libpri.a DYNAMIC_LIBRARY=libpri.so.1.0 STATIC_OBJS=pri.o q921.o prisched.o q931.o DYNAMIC_OBJS=pri.lo q921.lo prisched.lo q931.lo -CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g +CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) INSTALL_PREFIX= all: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY) diff --git a/q931.c b/q931.c index 682fdc8..b2eba5f 100755 --- a/q931.c +++ b/q931.c @@ -1517,8 +1517,11 @@ int q931_call_proceeding(struct pri *pri, q931_call *c) c->proc = 1; return send_message(pri, c, Q931_CALL_PROCEEDING, call_proceeding_ies); } - +#ifndef ALERTING_NO_PROGRESS static int alerting_ies[] = { Q931_CHANNEL_IDENT, Q931_PROGRESS_INDICATOR, -1 }; +#else +static int alerting_ies[] = { Q931_CHANNEL_IDENT, -1 }; +#endif int q931_alerting(struct pri *pri, q931_call *c, int channel, int info) {