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
This commit is contained in:
parent
a85d2c508b
commit
5f1aba027a
6
Makefile
6
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)
|
||||
|
5
q931.c
5
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user