[SOLVED] When i delete all trunks one by one from freepbx so i get error?

Error!
close
Reload failed because retrieve_conf encountered an error: 255

exit: 255
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = amp111
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = asteriskuser
Added to globals: AMPDBPASS = astpassWD
Added to globals: VMX_CONTEXT = from-internal
Added to globals: VMX_PRI = 1
Added to globals: VMX_TIMEDEST_CONTEXT =
Added to globals: VMX_TIMEDEST_EXT = dovm
Added to globals: VMX_TIMEDEST_PRI = 1
Added to globals: VMX_LOOPDEST_CONTEXT =
Added to globals: VMX_LOOPDEST_EXT = dovm
Added to globals: VMX_LOOPDEST_PRI = 1
Added to globals: MIXMON_DIR =
Added to globals: MIXMON_POST =
Added to globals: DIAL_OPTIONS = Ttr
Added to globals: TRUNK_OPTIONS = Tt
Added to globals: TRUNK_RING_TIMER = 20
Added to globals: MIXMON_FORMAT = wav
Added to globals: REC_POLICY = caller
Added to globals: RINGTIMER_DEFAULT = 15
Added to globals: TRANSFER_CONTEXT = from-internal-xfer
PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Critical error when splicing into macro-dialout-trunk. I was asked to splice into an empty section with a priority greater than 1. This is always a bug in a module. I was asked to add null’ in /var/www/html/admin/libraries/extensions.class.php:233
Stack trace:
#0 /var/www/html/admin/modules/trunkbalance/functions.inc.php(73): extensions->splice(‘macro-dialout-t…’, ‘continue’, 2, Object(ext_execif))
#1 /var/www/html/admin/libraries/BMO/DialplanHooks.class.php(87): trunkbalance_hookGet_config(‘asterisk’)
#2 /var/lib/asterisk/bin/retrieve_conf(727): DialplanHooks->processHooks(‘asterisk’, Array)
#3 {main}
thrown in /var/www/html/admin/libraries/extensions.class.php on line 233

I have deleted all trunks one by from freepbx than i clicked “Apply Config” but after that i got and error like above.
What is the reason of this error? And how can i fix this error?My freepbx version is 12.0.7

Looks like the issue is the Trunk Balancing module, remove it and retest.

Voila!! It works. Thank a lot for your help.

2 Likes