mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Small fixup for non-PRI build
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Asterisk -- A telephony toolkit for Linux.
|
* 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;
|
y = 1;
|
||||||
do {
|
do {
|
||||||
|
#ifdef ZAPATA_PRI
|
||||||
if (i->bearer)
|
if (i->bearer)
|
||||||
snprintf(tmp->name, sizeof(tmp->name), "Zap/%d:%d-%d", i->pri->trunkgroup, i->channel, y);
|
snprintf(tmp->name, sizeof(tmp->name), "Zap/%d:%d-%d", i->pri->trunkgroup, i->channel, y);
|
||||||
else
|
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);
|
snprintf(tmp->name, sizeof(tmp->name), "Zap/%d-%d", i->channel, y);
|
||||||
for (x=0;x<3;x++) {
|
for (x=0;x<3;x++) {
|
||||||
if ((index != x) && i->subs[x].owner && !strcasecmp(tmp->name, i->subs[x].owner->name))
|
if ((index != x) && i->subs[x].owner && !strcasecmp(tmp->name, i->subs[x].owner->name))
|
||||||
|
Reference in New Issue
Block a user