Allow to suspend vbox calls also without a call id.
This commit is contained in:
parent
b839d63f32
commit
8b9b5ce530
2
Makefile
2
Makefile
|
@ -5,7 +5,7 @@
|
|||
|
||||
.EXPORT_ALL_VARIABLES:
|
||||
|
||||
export I4LVERSION = 3.1beta1
|
||||
export I4LVERSION = 3.1beta5
|
||||
|
||||
all: do-it-all
|
||||
|
||||
|
|
|
@ -326,6 +326,12 @@ VBOX_TCL
|
|||
There are different versions of tcl available.. tcl8.0 is the
|
||||
current one.
|
||||
|
||||
Use a callid in SUSPEND
|
||||
VBOX_SUSPEND_ID
|
||||
If suspending ("park") a call it is possible to assign a id to the
|
||||
suspended call (value is 1). Some ISDN phones don't allow to resume
|
||||
calls with an id.
|
||||
|
||||
PPP daemon for syncPPP support
|
||||
CONFIG_IPPPD
|
||||
Enabling this, builds a special PPP daemon called ipppd which
|
||||
|
|
|
@ -6,4 +6,5 @@ string 'PID directory' VBOX_PIDDIR
|
|||
string 'Lock directory' VBOX_LOCKDIR
|
||||
string 'Documentation directory' VBOX_DOCDIR
|
||||
string 'Version of Tcl library to use' VBOX_TCL
|
||||
bool 'Use a callid in SUSPEND' VBOX_SUSPEND_ID
|
||||
endmenu
|
||||
|
|
|
@ -108,6 +108,11 @@ VBOX_PIDFILEDIR = $(PIDFILEDIR)
|
|||
VBOX_LCKFILEDIR = $(LCKFILEDIR)
|
||||
VBOX_SPOOLDIR = $(SPOOLDIR)
|
||||
|
||||
ifeq ($(VBOX_SUSPEND_ID),y)
|
||||
VBOX_SUSPEND_DEF := -DVBOX_SUSPEND_VALUE=1
|
||||
endif
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------#
|
||||
# Export variables needed by the other utilities... #
|
||||
#----------------------------------------------------------------------------#
|
||||
|
@ -131,6 +136,7 @@ export VBOX_PIDFILEDIR
|
|||
export VBOX_LCKFILEDIR
|
||||
export VBOX_SPOOLDIR
|
||||
export VBOX_SYSCONFDIR
|
||||
export VBOX_SUSPEND_DEF
|
||||
|
||||
#----------------------------------------------------------------------------#
|
||||
# #
|
||||
|
|
|
@ -41,7 +41,7 @@ script.o: $(HEADERS) script.c
|
|||
$(CC) $(CFLAGS) -DBINDIR='"$(VBOX_BINDIR)"' -c script.c
|
||||
|
||||
voice.o: $(HEADERS) voice.c
|
||||
$(CC) $(CFLAGS) -c voice.c
|
||||
$(CC) $(CFLAGS) $(VBOX_SUSPEND_DEF) -c voice.c
|
||||
|
||||
streamio.o: $(HEADERS) streamio.c
|
||||
$(CC) $(CFLAGS) -c streamio.c
|
||||
|
|
|
@ -321,7 +321,12 @@ int voice_put_message(char *message)
|
|||
printstring(line_o, "%c%c", DLE, ETX);
|
||||
modem_raw_write(line_o, strlen(line_o));
|
||||
if (modem_command("", "VCON")>0) {
|
||||
if (modem_command("AT+S1", "OK") <= 0) {
|
||||
#ifdef VBOX_SUSPEND_VALUE
|
||||
printstring(line_o, "AT+S%d", VBOX_SUSPEND_VALUE);
|
||||
#else
|
||||
printstring(line_o, "AT+S");
|
||||
#endif
|
||||
if (modem_command(line_o, "OK") <= 0) {
|
||||
log(L_WARN, "Can't suspend call\n");
|
||||
} else {
|
||||
log(L_INFO, "Call suspended\n");
|
||||
|
@ -533,7 +538,12 @@ int voice_get_message(char *name, char *timestr, int save)
|
|||
modem_raw_write(line_o, strlen(line_o));
|
||||
modem_wait_sequence(line_i);
|
||||
if (modem_command("", "VCON")>0) {
|
||||
if (modem_command("AT+S1", "OK") <= 0) {
|
||||
#ifdef VBOX_SUSPEND_VALUE
|
||||
printstring(line_o, "AT+S%d", VBOX_SUSPEND_VALUE);
|
||||
#else
|
||||
printstring(line_o, "AT+S");
|
||||
#endif
|
||||
if (modem_command(line_o, "OK") <= 0) {
|
||||
log(L_WARN, "Can't suspend call\n");
|
||||
} else {
|
||||
log(L_INFO, "Call suspended\n");
|
||||
|
|
Loading…
Reference in New Issue