aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2000-07-04 15:50:00 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2000-07-04 15:50:00 +0000
commitf707dba0474bb51b0aadc134e15a80d97b027f56 (patch)
treebc8dce68e31f28e85d0378f400d27ef1606d5da4 /pbx.c
parentaa0ab7648c5268d4c7ba2bca8776b89eb2031632 (diff)
Version 0.1.4 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index 99d09eae9..c84784beb 100755
--- a/pbx.c
+++ b/pbx.c
@@ -471,8 +471,11 @@ static void *pbx_thread(void *data)
digit = ast_waitstream(c, AST_DIGIT_ANY);
ast_stopstream(c);
/* Hang up if something goes wrong */
- if (digit < 0)
+ if (digit < 0) {
+ if (option_verbose > 2)
+ ast_verbose(VERBOSE_PREFIX_3 "Lost connection on %s\n", c->name);
goto out;
+ }
else if (digit) {
exten[pos++] = digit;
break;
@@ -487,7 +490,7 @@ static void *pbx_thread(void *data)
else
waittime = c->pbx->rtimeout;
while(!ast_exists_extension(c, c->context, exten, 1) &&
- ast_canmatch_extension(c, c->context, exten, 1)) {
+ ast_canmatch_extension(c, c->context, exten, 1)) {
/* As long as we're willing to wait, and as long as it's not defined,
keep reading digits until we can't possibly get a right answer anymore. */
digit = ast_waitfordigit(c, waittime * 1000);