diff options
author | Mark Spencer <markster@digium.com> | 2004-08-07 14:22:09 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-08-07 14:22:09 +0000 |
commit | 34e40a3a59b3690c1caa349beec59b13386b3ffc (patch) | |
tree | 132eb8f1fdb622f4a6c7e4da8233eb2009d9467e /asterisk.c | |
parent | a21e295c96531ca4f486f98aed82be3f685c91c8 (diff) |
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
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c index 3e39c7cbf..2f8df1279 100755 --- a/asterisk.c +++ b/asterisk.c @@ -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(;;) { |