summaryrefslogtreecommitdiffstats
path: root/port.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg2008-11-04 09:31:09 +0100
committerAndreas Eversberg2008-11-04 09:31:09 +0100
commitefc550418c0b107c07818809a3d8e779e476dcd4 (patch)
tree4ce7e1612b611a95007fa335019a1ebc19fa993f /port.cpp
parentMerge branch 'master' of ssh://jolly@www.mISDN.org/var/git/lcr (diff)
downloadlcr-efc550418c0b107c07818809a3d8e779e476dcd4.tar.gz
lcr-efc550418c0b107c07818809a3d8e779e476dcd4.tar.xz
lcr-efc550418c0b107c07818809a3d8e779e476dcd4.zip
Added processing of second caller id.
New routing macht rule to filter second caller id. Fixed extensions directory path. "make clean" now cleans ".po" files. Fixed unititialized variable bugs and compiler warnings. modified: Makefile.am modified: Makefile.in modified: action.cpp modified: apppbx.cpp modified: callerid.c modified: chan_lcr.c modified: dss1.cpp modified: dss1.h modified: extension.c modified: gentones.c modified: ie.cpp modified: mISDN.cpp modified: message.h modified: port.cpp modified: route.c modified: route.h modified: socket_server.c modified: tones.c modified: trace.c
Diffstat (limited to 'port.cpp')
-rw-r--r--port.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/port.cpp b/port.cpp
index 934a4cc..3867464 100644
--- a/port.cpp
+++ b/port.cpp
@@ -450,7 +450,6 @@ void Port::set_vbox_tone(const char *dir, const char *name)
*/
void Port::set_vbox_play(const char *name, int offset)
{
- signed int size;
struct lcr_msg *message;
/* use ser_box_tone() */
@@ -469,7 +468,7 @@ void Port::set_vbox_play(const char *name, int offset)
{
message = message_create(p_serial, ACTIVE_EPOINT(p_epointlist), PORT_TO_EPOINT, MESSAGE_TONE_COUNTER);
message->param.counter.current = offset;
- message->param.counter.max = size;
+ message->param.counter.max = p_tone_size;
message_put(message);
}
}
@@ -491,7 +490,7 @@ void Port::set_vbox_speed(int speed)
*/
int Port::read_audio(unsigned char *buffer, int length)
{
- int l,len;
+ int l = 0,len;
int nodata=0; /* to detect 0-length files and avoid endless reopen */
char filename[128];
int tone_left_before; /* temp variable to determine the change in p_tone_left */
@@ -794,7 +793,7 @@ int Port::open_record(int type, int vbox, int skip, char *extension, int anon_ig
void Port::close_record(int beep, int mute)
{
static signed short beep_mono[256];
- unsigned int size, wsize;
+ unsigned int size = 0, wsize = 0;
struct fmt fmt;
char filename[512], indexname[512];
FILE *fp;