summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-01-11 16:51:57 +0000
committerMark Spencer <markster@digium.com>2005-01-11 16:51:57 +0000
commitc2bee5d802d5790e211abfc923417690b6d4d84e (patch)
tree8179494b9a0cd9a435d1392916aa153811696d80 /channels
parentff6c09c77568da5c5a59336bd8ca74fcbe419d80 (diff)
When moving PRI channel rename channel properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index b6cb5025b..3d8741dbd 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -7141,6 +7141,8 @@ static int pri_fixup_principle(struct zt_pri *pri, int principle, q931_call *c)
/* Fix it all up now */
pri->pvts[principle]->owner = pri->pvts[x]->owner;
if (pri->pvts[principle]->owner) {
+ snprintf(pri->pvts[principle]->owner->name, sizeof(pri->pvts[principle]->owner->name),
+ "Zap/%d:%d-%d", pri->trunkgroup, pri->pvts[principle]->channel, 1);
pri->pvts[principle]->owner->pvt->pvt = pri->pvts[principle];
pri->pvts[principle]->owner->fds[0] = pri->pvts[principle]->subs[SUB_REAL].zfd;
pri->pvts[principle]->subs[SUB_REAL].owner = pri->pvts[x]->subs[SUB_REAL].owner;