[Asterisk-cvs] asterisk/channels chan_iax2.c,1.250,1.251

markster at lists.digium.com markster at lists.digium.com
Fri Feb 18 00:15:55 CST 2005


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

Modified Files:
	chan_iax2.c 
Log Message:
Make IAX2 channel names use "-" instead of "/" for call number (bug 3594)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.250
retrieving revision 1.251
diff -u -d -r1.250 -r1.251
--- chan_iax2.c	12 Feb 2005 20:15:15 -0000	1.250
+++ chan_iax2.c	18 Feb 2005 06:14:54 -0000	1.251
@@ -2947,9 +2947,9 @@
 	i = iaxs[callno];
 	if (i && tmp) {
 		if (!ast_strlen_zero(i->username))
-			snprintf(tmp->name, sizeof(tmp->name), "IAX2/%s@%s/%d", i->username, i->host, i->callno);
+			snprintf(tmp->name, sizeof(tmp->name), "IAX2/%s@%s-%d", i->username, i->host, i->callno);
 		else
-			snprintf(tmp->name, sizeof(tmp->name), "IAX2/%s/%d", i->host, i->callno);
+			snprintf(tmp->name, sizeof(tmp->name), "IAX2/%s-%d", i->host, i->callno);
 		tmp->type = channeltype;
 		/* We can support any format by default, until we get restricted */
 		tmp->nativeformats = capability;




More information about the svn-commits mailing list