From: Mark Spencer Date: Sun, 6 Jun 2004 03:32:55 +0000 (+0000) Subject: Small fixup for non-PRI build X-Git-Tag: 1.0.0-rc1~302 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b7dbfb855613a2a64e97bdd30a8dab6736d26a7;p=thirdparty%2Fasterisk.git Small fixup for non-PRI build git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3153 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 0e00a5ed33..c9e153cf7d 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -1,4 +1,3 @@ - /* * Asterisk -- A telephony toolkit for Linux. * @@ -4096,9 +4095,14 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int } 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))