diff options
author | Mark Spencer <markster@digium.com> | 2004-06-06 03:32:55 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-06-06 03:32:55 +0000 |
commit | 7b7dbfb855613a2a64e97bdd30a8dab6736d26a7 (patch) | |
tree | 2b64db34e7f3fa9b2c26db27139d85b08c7377f8 /channels | |
parent | cc36c3d475099efaf1ce0f431f4428a4ba16c28d (diff) |
Small fixup for non-PRI build
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_zap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 0e00a5ed3..c9e153cf7 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)) |