simplify function __ast_request_and_dial() as follows:
authorLuigi Rizzo <rizzo@icir.org>
Sun, 16 Apr 2006 15:13:39 +0000 (15:13 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sun, 16 Apr 2006 15:13:39 +0000 (15:13 +0000)
commitad5cfd80c0163d087a7cb2586740a42f8ecc5251
tree6d577f4c18da62190f7f3a8e43260379f43a582e
parent5a6cc1ea4eecfe9cf5c5c9cca74e51993d1b38a6
simplify function __ast_request_and_dial() as follows:
- handle immediately failures in ast_request();
  This removes the need for checking 'chan' multiple times afterwards.
- handle immediately failures in ast_call(), by moving the one-line
  case at the top of the 'if' statement;
- use ast_strlen_zero in several places instead of expanding it inline;
- make outstate always a valid pointer;
On passing mark an unclear statement and replace a magic number
with sizeof(tmp).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20511 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channel.c