From: Joshua Colp Date: Thu, 28 May 2009 18:45:11 +0000 (+0000) Subject: Fix a bug where the trunkmtu setting was not set to the default value of 1240 on... X-Git-Tag: 1.8.0-beta1~2242 X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=commitdiff_plain;h=e9e4efdcb6acf6b81891d686ca74e941bbcce5eb;ds=sidebyside Fix a bug where the trunkmtu setting was not set to the default value of 1240 on load but was on reload. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197697 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index e6e1280..a6a56b4 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -11413,7 +11413,6 @@ static void set_config_destroy(void) strcpy(language, ""); strcpy(mohinterpret, "default"); strcpy(mohsuggest, ""); - global_max_trunk_mtu = MAX_TRUNK_MTU; trunkmaxsize = MAX_TRUNKDATA; amaflags = 0; delayreject = 0; @@ -11490,6 +11489,7 @@ static int set_config(char *config_file, int reload) min_reg_expire = IAX_DEFAULT_REG_EXPIRE; max_reg_expire = IAX_DEFAULT_REG_EXPIRE; + global_max_trunk_mtu = MAX_TRUNK_MTU; maxauthreq = 3;