mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 22:38:08 +00:00
This commit contains the bug fixes and documentation updates
which were committed to trunk in revision 153223. I blocked that commit from 1.6.1 since it also contained a new feature. Note to self: Separate commits so that you don't end up with a situation where part of a commit should be merged but part should be blocked from stable branches. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1037,7 +1037,7 @@ void ast_dial_set_global_timeout(struct ast_dial *dial, int timeout)
|
||||
{
|
||||
dial->timeout = timeout;
|
||||
|
||||
if (dial->timeout > 0 && dial->actual_timeout > dial->timeout)
|
||||
if (dial->timeout > 0 && (dial->actual_timeout > dial->timeout || dial->actual_timeout == -1))
|
||||
dial->actual_timeout = dial->timeout;
|
||||
|
||||
return;
|
||||
@@ -1058,7 +1058,7 @@ void ast_dial_set_timeout(struct ast_dial *dial, int num, int timeout)
|
||||
|
||||
channel->timeout = timeout;
|
||||
|
||||
if (channel->timeout > 0 && dial->actual_timeout > channel->timeout)
|
||||
if (channel->timeout > 0 && (dial->actual_timeout > channel->timeout || dial->actual_timeout == -1))
|
||||
dial->actual_timeout = channel->timeout;
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user