[Asterisk-cvs] asterisk/channels chan_h323.c,1.111,1.112

jeremy at lists.digium.com jeremy at lists.digium.com
Tue May 3 14:51:44 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv8939/channels

Modified Files:
	chan_h323.c 
Log Message:
Fix one-way audio issues with CCM and possibly other [broken] endpoints. Bug #4135

Index: chan_h323.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_h323.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- chan_h323.c	2 May 2005 18:46:36 -0000	1.111
+++ chan_h323.c	3 May 2005 18:58:50 -0000	1.112
@@ -1321,7 +1321,6 @@
 	struct oh323_pvt *pvt;
 	struct sockaddr_in us;
 	struct rtp_info *info;
-	char iabuf[INET_ADDRSTRLEN];
 
 	info = (struct rtp_info *)malloc(sizeof(struct rtp_info));
 	if (!info) {
@@ -1330,6 +1329,7 @@
 	}
 	pvt = find_call(call_reference, token); 
 	if (!pvt) {
+		free(info);
 		ast_log(LOG_ERROR, "Unable to find call %s(%d)\n", token, call_reference);
 		return NULL;
 	}
@@ -1338,7 +1338,7 @@
 	ast_rtp_get_us(pvt->rtp, &us);
 	ast_mutex_unlock(&pvt->lock);
 	/* evil hack, until I (or someone?) figures out a better way */
-	info->addr = ast_inet_ntoa(iabuf, sizeof(iabuf), bindaddr.sin_addr);
+	ast_inet_ntoa(info->addr, sizeof(info->addr), bindaddr.sin_addr);
 	info->port = ntohs(us.sin_port);
 	ast_log(LOG_DEBUG, "Sending RTP 'US' %s:%d\n", info->addr, info->port);
 	return info;




More information about the svn-commits mailing list