summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorSteve Murphy <murf@digium.com>2007-08-14 13:46:58 +0000
committerSteve Murphy <murf@digium.com>2007-08-14 13:46:58 +0000
commit4f98b05cd55b578fa402d4715ecc188f6d6ed5aa (patch)
tree513959faabfb8dfc9878bcd389b51d23887a87a2 /channels/chan_zap.c
parent94b1dda1fab990e887188e627ab2bec4b4e5cf57 (diff)
Don't ask me why, but waitfordigit will immediately return a 1 on my system, unless the outfd is initialized to -1 before calling the nandfds func
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index e4304a556..35be3ecdf 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -6079,6 +6079,7 @@ static void *ss_thread(void *data)
ast_hangup(chan);
return NULL;
} else if (res) {
+ ast_debug(1,"waitfordigit returned '%c' (%d), timeout = %d\n", res, res, timeout);
exten[len++]=res;
exten[len] = '\0';
}