diff options
author | kmoore <kmoore@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-05 23:10:54 +0000 |
---|---|---|
committer | kmoore <kmoore@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-05 23:10:54 +0000 |
commit | 39c315e0e7cabcaa68cdc77fe1ab451c1fb0ae3d (patch) | |
tree | 6c23cddc2eb4be72770e8eb62205c9d17f7da769 /apps/app_test.c | |
parent | a876a3d85d249699de942e1f8d9b4a3ebafe314f (diff) |
Add a wait to ensure TestServer thinks it has finished sending the final digit.
This was previously committed to 1.4, 1.6.0, 1.6.1, and trunk just after 1.6.2 was created (and missed). 1.6.2 also needs this patch to resolve the bug.
(closes issue #16550)
Reported by: opticron
Patches:
apptest.diff uploaded by opticron (license 267)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@237924 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_test.c')
-rw-r--r-- | apps/app_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_test.c b/apps/app_test.c index 205571ffe..1ec892d1e 100644 --- a/apps/app_test.c +++ b/apps/app_test.c @@ -297,6 +297,9 @@ static int testclient_exec(struct ast_channel *chan, void *data) res = -1; } if (!res) { + res = ast_safe_sleep(chan, 1000); + } + if (!res) { /* Step 12: Hangup! */ ast_debug(1, "TestClient: 12. Hangup\n"); } |