mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@11275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2392,7 +2392,8 @@ struct ast_channel *__ast_request_and_dial(const char *type, int format, void *d
|
|||||||
ast_set_callerid(chan, cid_num, cid_name, cid_num);
|
ast_set_callerid(chan, cid_num, cid_name, cid_num);
|
||||||
|
|
||||||
if (!ast_call(chan, data, 0)) {
|
if (!ast_call(chan, data, 0)) {
|
||||||
while(timeout && (chan->_state != AST_STATE_UP)) {
|
res = 1; /* in case chan->_state is already AST_STATE_UP */
|
||||||
|
while (timeout && (chan->_state != AST_STATE_UP)) {
|
||||||
res = ast_waitfor(chan, timeout);
|
res = ast_waitfor(chan, timeout);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
/* Something not cool, or timed out */
|
/* Something not cool, or timed out */
|
||||||
|
Reference in New Issue
Block a user