[Asterisk-cvs] asterisk/channels chan_iax2.c,1.311,1.312

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu Jun 23 21:36:42 CDT 2005


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

Modified Files:
	chan_iax2.c 
Log Message:
fix outgoing format selection breakage


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.311
retrieving revision 1.312
diff -u -d -r1.311 -r1.312
--- chan_iax2.c	21 Jun 2005 15:33:25 -0000	1.311
+++ chan_iax2.c	24 Jun 2005 01:37:15 -0000	1.312
@@ -7676,7 +7676,6 @@
 	int fmt, native;
 	struct sockaddr_in sin;
 	struct ast_channel *c;
-	int capability = iax2_capability;
 	struct parsed_dial_string pds;
 	struct create_addr_info cai;
 	char *tmpstr;
@@ -7686,6 +7685,7 @@
 	parse_dial_string(tmpstr, &pds);
 
 	memset(&cai, 0, sizeof(cai));
+	cai.capability = iax2_capability;
 
 	ast_copy_flags(&cai, &globalflags, IAX_NOTRANSFER | IAX_USEJITTERBUF | IAX_FORCEJITTERBUF);
 
@@ -7715,7 +7715,7 @@
 	if (cai.found)
 		ast_copy_string(iaxs[callno]->host, pds.peer, sizeof(iaxs[callno]->host));
 
-	c = ast_iax2_new(callno, AST_STATE_DOWN, capability);
+	c = ast_iax2_new(callno, AST_STATE_DOWN, cai.capability);
 
 	ast_mutex_unlock(&iaxsl[callno]);
 




More information about the svn-commits mailing list