summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJim Dixon <telesistant@hotmail.com>2005-04-27 23:44:24 +0000
committerJim Dixon <telesistant@hotmail.com>2005-04-27 23:44:24 +0000
commitda9a73f4c987dd0a3a5b5cf85881001e70b0a26c (patch)
tree1b7a1ecc72d690d1a1f89381c9274706e6c32e74 /channels
parent7e058413fba2afd7e762e35e6d67915a3c5d20b4 (diff)
Fixed problem with 'radio' attribute vanishing upon zap reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5522 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 621842e09..526f6bbd2 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -6679,6 +6679,7 @@ static struct zt_pvt *mkintf(int channel, int signalling, int radio, struct zt_p
#endif
} else {
signalling = tmp->sig;
+ radio = tmp->radio;
memset(&p, 0, sizeof(p));
if (tmp->subs[SUB_REAL].zfd > -1)
res = ioctl(tmp->subs[SUB_REAL].zfd, ZT_GET_PARAMS, &p);
@@ -9074,6 +9075,7 @@ static int zap_show_channel(int fd, int argc, char **argv)
ast_cli(fd, "Destroy: %d\n", tmp->destroy);
ast_cli(fd, "InAlarm: %d\n", tmp->inalarm);
ast_cli(fd, "Signalling Type: %s\n", sig2str(tmp->sig));
+ ast_cli(fd, "Radio: %d\n", tmp->radio);
ast_cli(fd, "Owner: %s\n", tmp->owner ? tmp->owner->name : "<None>");
ast_cli(fd, "Real: %s%s%s\n", tmp->subs[SUB_REAL].owner ? tmp->subs[SUB_REAL].owner->name : "<None>", tmp->subs[SUB_REAL].inthreeway ? " (Confed)" : "", tmp->subs[SUB_REAL].linear ? " (Linear)" : "");
ast_cli(fd, "Callwait: %s%s%s\n", tmp->subs[SUB_CALLWAIT].owner ? tmp->subs[SUB_CALLWAIT].owner->name : "<None>", tmp->subs[SUB_CALLWAIT].inthreeway ? " (Confed)" : "", tmp->subs[SUB_CALLWAIT].linear ? " (Linear)" : "");