]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fixes regression caused by randomized call numbers.
authorDavid Vossel <dvossel@digium.com>
Tue, 9 Feb 2010 23:35:55 +0000 (23:35 +0000)
committerDavid Vossel <dvossel@digium.com>
Tue, 9 Feb 2010 23:35:55 +0000 (23:35 +0000)
(closes issue 0015997)
    Reported by: exarv
    Patches:
          iax_fix.diff uploaded by dvossel (license 671)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@245874 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 2b15d056d5f32fbbc191917e440fe0aae8f7f599..19066fcc7c53356abe5c85965011d1150cbecbca 100644 (file)
@@ -824,8 +824,8 @@ static void jb_debug_output(const char *fmt, ...)
 
 
 /* XXX We probably should use a mutex when working with this XXX */
-static struct chan_iax2_pvt *iaxs[IAX_MAX_CALLS];
-static ast_mutex_t iaxsl[IAX_MAX_CALLS];
+static struct chan_iax2_pvt *iaxs[IAX_MAX_CALLS + 1];
+static ast_mutex_t iaxsl[IAX_MAX_CALLS + 1];
 
 /*!
  * \brief Another container of iax2_pvt structures