dect
/
asterisk
Archived
13
0
Fork 0

Fixed problem with 'radio' attribute vanishing upon zap reload

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5522 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
jim 2005-04-27 23:44:24 +00:00
parent 11154ee476
commit 9d8524fa75
1 changed files with 2 additions and 0 deletions

View File

@ -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)" : "");