mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
Wait for command to complete (bug #1733) and take RTP 19 as CN too...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3590 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1413,7 +1413,13 @@ static void ast_remotecontrol(char * data)
|
||||
#endif
|
||||
if (option_exec && data) { /* hack to print output then exit if asterisk -rx is used */
|
||||
char tempchar;
|
||||
ast_el_read_char(el, &tempchar);
|
||||
struct pollfd fds[0];
|
||||
fds[0].fd = ast_consock;
|
||||
fds[0].events = POLLIN;
|
||||
fds[0].revents = 0;
|
||||
while(poll(fds, 1, 100) > 0) {
|
||||
ast_el_read_char(el, &tempchar);
|
||||
}
|
||||
return;
|
||||
}
|
||||
for(;;) {
|
||||
|
Reference in New Issue
Block a user