use timeout value insted of 0. Bug #286
authorJeremy McNamara <jj@nufone.net>
Tue, 30 Sep 2003 02:46:52 +0000 (02:46 +0000)
committerJeremy McNamara <jj@nufone.net>
Tue, 30 Sep 2003 02:46:52 +0000 (02:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1583 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index ba5f8c0..49a3af3 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -3844,7 +3844,7 @@ int ast_pbx_outgoing_exten(char *type, int format, void *data, int timeout, char
                if (!as)
                        return -1;
                memset(as, 0, sizeof(struct async_stat));
-               chan = ast_request_and_dial(type, format, data, 0, reason, callerid);
+               chan = ast_request_and_dial(type, format, data, timeout, reason, callerid);
                if (!chan) {
                        free(as);
                        return -1;
@@ -3939,7 +3939,7 @@ int ast_pbx_outgoing_app(char *type, int format, void *data, int timeout, char *
                if (!as)
                        return -1;
                memset(as, 0, sizeof(struct async_stat));
-               chan = ast_request_and_dial(type, format, data, 0, reason, callerid);
+               chan = ast_request_and_dial(type, format, data, timeout, reason, callerid);
                if (!chan) {
                        free(as);
                        return -1;