[Asterisk-cvs] asterisk/channels chan_zap.c,1.247,1.248
markster at lists.digium.com
markster at lists.digium.com
Sat Jun 5 22:30:44 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv13733/channels
Modified Files:
chan_zap.c
Log Message:
Small fixup for non-PRI build
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.247
retrieving revision 1.248
diff -u -d -r1.247 -r1.248
--- chan_zap.c 6 Jun 2004 01:54:22 -0000 1.247
+++ chan_zap.c 6 Jun 2004 03:32:55 -0000 1.248
@@ -1,4 +1,3 @@
-
/*
* Asterisk -- A telephony toolkit for Linux.
*
@@ -4096,9 +4095,14 @@
}
y = 1;
do {
+#ifdef ZAPATA_PRI
if (i->bearer)
snprintf(tmp->name, sizeof(tmp->name), "Zap/%d:%d-%d", i->pri->trunkgroup, i->channel, y);
else
+#endif
+ if (i->channel == CHAN_PSEUDO)
+ snprintf(tmp->name, sizeof(tmp->name), "Zap/pseudo-%d", rand());
+ else
snprintf(tmp->name, sizeof(tmp->name), "Zap/%d-%d", i->channel, y);
for (x=0;x<3;x++) {
if ((index != x) && i->subs[x].owner && !strcasecmp(tmp->name, i->subs[x].owner->name))
More information about the svn-commits
mailing list