aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-23 05:06:50 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-23 05:06:50 +0000
commitd37c3d417c6762e49930a1f05fae1cda326da180 (patch)
treee4c9578e8cdbfa41e4c90ce9c138416e43ae92fc /channels
parent986e510e7994943ec6d16dbaf5c0b3153bc529d0 (diff)
Minor SIP cleanups for valgrind, finally close the coffin on IAX1 and take it ou
t of the normal build process. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2532 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/Makefile9
-rwxr-xr-xchannels/chan_sip.c4
2 files changed, 10 insertions, 3 deletions
diff --git a/channels/Makefile b/channels/Makefile
index 4ebfada2d..8f0640c9c 100755
--- a/channels/Makefile
+++ b/channels/Makefile
@@ -16,13 +16,19 @@ OSARCH=$(shell uname -s)
USE_MYSQL_FRIENDS=0
USE_SIP_MYSQL_FRIENDS=0
-CHANNEL_LIBS=chan_modem.so chan_iax.so chan_sip.so \
+CHANNEL_LIBS=chan_modem.so chan_sip.so \
chan_modem_aopen.so \
chan_modem_bestdata.so chan_modem_i4l.so \
chan_agent.so chan_mgcp.so chan_iax2.so \
chan_local.so chan_skinny.so
#
+# If you really want IAX1 uncomment the following, but it is
+# unmaintained
+#
+#CHANNEL_LIBS+=chan_iax.so
+
+#
# If you really want VoFR you can have it :-P
#
#CHANNEL_LIBS+=chan_vofr
@@ -160,6 +166,7 @@ chan_h323.so: chan_h323.o h323/libchanh323.a
install: all
for x in $(CHANNEL_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+ if ! [ -f chan_iax.so ]; then rm -f $(DESTDIR)$(MODULES_DIR)/chan_iax.so ; fi
depend: .depend
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 14f5689b7..5bc06b093 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2625,7 +2625,7 @@ static int add_sdp(struct sip_request *resp, struct sip_pvt *p, struct ast_rtp *
char a2[1024] = "";
int x;
struct sockaddr_in dest;
- struct sockaddr_in vdest;
+ struct sockaddr_in vdest = { 0, };
/* XXX We break with the "recommendation" and send our IP, in order that our
peer doesn't have to gethostbyname() us XXX */
len = 0;
@@ -3696,7 +3696,7 @@ static int check_auth(struct sip_pvt *p, struct sip_request *req, char *randdata
char a1_hash[256];
char a2_hash[256];
char resp[256];
- char resp_hash[256];
+ char resp_hash[256]="";
char tmp[256] = "";
char *c;
char *z;