Minor SIP cleanups for valgrind, finally close the coffin on IAX1 and take it ou
authorMark Spencer <markster@digium.com>
Tue, 23 Mar 2004 05:06:50 +0000 (05:06 +0000)
committerMark Spencer <markster@digium.com>
Tue, 23 Mar 2004 05:06:50 +0000 (05:06 +0000)
t of the normal build process.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2532 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/Makefile
channels/chan_sip.c

index 4ebfada..8f0640c 100755 (executable)
@@ -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
 
index 14f5689..5bc06b0 100755 (executable)
@@ -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;