From: Sean Bright Date: Wed, 15 Feb 2012 17:24:22 +0000 (+0000) Subject: Use TRUNK_CALL_START as originally intended. X-Git-Tag: 1.8.11.0-rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62b7e35b719d4d2e64774e20dd06a96bf1749a3c;p=thirdparty%2Fasterisk.git Use TRUNK_CALL_START as originally intended. Back in r646, TRUNK_CALL_START was added and defined as 0x4000. That same value was also hard-coded in one part of the IAX2 code instead of using the #define. TRUNK_CALL_START has changed over the years (for dealing with LOW_MEMORY), but the hard-coded usage was never updated to match. This patch fixes that. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@355448 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 0598aa868f..5f4ed07300 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -3431,7 +3431,7 @@ retry: ast_channel_unlock(owner); } - if (callno & 0x4000) { + if (callno & TRUNK_CALL_START) { update_max_trunk(); } }