mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 00:24:05 +00:00
Retrieve confmute status from zap if it supports it
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -1,3 +1,4 @@
|
|||||||
|
-- Add malloc debugging support
|
||||||
-- Add preliminary Voicetronix support
|
-- Add preliminary Voicetronix support
|
||||||
-- Add iLBC codec
|
-- Add iLBC codec
|
||||||
Asterisk 0.4.0
|
Asterisk 0.4.0
|
||||||
|
@@ -6154,6 +6154,13 @@ static int zap_show_channel(int fd, int argc, char **argv)
|
|||||||
} else {
|
} else {
|
||||||
ast_cli(fd, "Actual Confinfo: Num/%d, Mode/0x%04x\n", ci.confno, ci.confmode);
|
ast_cli(fd, "Actual Confinfo: Num/%d, Mode/0x%04x\n", ci.confno, ci.confmode);
|
||||||
}
|
}
|
||||||
|
#ifdef ZT_GETCONFMUTE
|
||||||
|
if (ioctl(tmp->subs[SUB_REAL].zfd, ZT_GETCONF, &x)) {
|
||||||
|
ast_log(LOG_WARNING, "Failed to get confmute info on channel %d\n", tmp->channel);
|
||||||
|
} else {
|
||||||
|
ast_cli(fd, "Actual Confmute: %s\n", x ? "Yes" : "No");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
ast_pthread_mutex_unlock(&iflock);
|
ast_pthread_mutex_unlock(&iflock);
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@@ -79,7 +79,6 @@ static void *autodial(void *ignore)
|
|||||||
FD_SET(fd, &fds);
|
FD_SET(fd, &fds);
|
||||||
ast_select(fd + 1, &fds, NULL, NULL, NULL);
|
ast_select(fd + 1, &fds, NULL, NULL, NULL);
|
||||||
bytes=read(fd,buf,256);
|
bytes=read(fd,buf,256);
|
||||||
printf("Bytes: %d\n", bytes);
|
|
||||||
buf[(int)bytes]=0;
|
buf[(int)bytes]=0;
|
||||||
|
|
||||||
if(bytes>0){
|
if(bytes>0){
|
||||||
|
Reference in New Issue
Block a user