[solved] Missing class on outboud route save ? Class DialPlan not found

Hello,

I am configuring an output route, and when I want to save the route, I have the following error:

Fatal error: Uncaught Error: Class 'modules\tenants\Asterisk\DialPlan' not found in /usr/share/vitalpbx/www/modules/trunk_group/Asterisk/Dialplan.php:0 Stack trace: #0 /usr/share/vitalpbx/www/modules/trunk_group/Asterisk/Dialplan.php(0): modules\trunk_group\Asterisk\Dialplan->_detect_tenant_did(Object(vitalpbx\Dialplan), Object(vitalpbx\outbound_routes)) #1 /usr/share/vitalpbx/www/modules/trunk_group/Asterisk/Dialplan.php(0): modules\trunk_group\Asterisk\Dialplan->_build_pattern_dp(Object(stdClass), Object(vitalpbx\Dialplan), Object(vitalpbx\outbound_routes)) #2 /usr/share/vitalpbx/www/modules/trunk_group/trunk_group.php(0): modules\trunk_group\Asterisk\Dialplan->build() #3 /usr/share/vitalpbx/www/includes/OmbuSystemConf.php(0): modules\trunk_group\trunk_group->getDialPlan() #4 /usr/share/vitalpbx/www/includes/OmbuSystemConf.php(0): vitalpbx\OmbuSystemConf::_ApplyDialPlan() #5 /usr/share/vitalpbx/www/includes/app/Core.php(0): vitalpbx\OmbuSystemConf::applyConfigUI() #6 /usr/share/vitalpbx/www/includes/app/Core.php(0): app in /usr/share/vitalpbx/www/modules/trunk_group/Asterisk/Dialplan.php on line 0

The only outbound route I have has the following settings:
Pattern => .
CID Pattern => XXXX

No other routes exists.

The version is “VitalPBX Starter 3.1.5-1”
Asterisk 18.6.0-2

Do I missed something ?

Thank you for your help

Nicolas

Check in the System General module if the highlighted option is enabled. If it is, then disable it.

image

Hello,

big thank you, that was it !!

Best regards,
Nicolas