nethesis / dev

Nethesis issue tracker
http://www.nethesis.it
4 stars 1 forks source link

NethVoice broken after restore-data #6172

Closed Stell0 closed 2 years ago

Stell0 commented 2 years ago

After restoring a backup, NethVoice "Apply changes" is broken

Steps to reproduce

retrieve conf will fail with this error:

exit: 1
Unable to continue. json_decode() expects parameter 1 to be string, array given in /var/www/html/freepbx/admin/modules/sipsettings/Sipsettings.class.php on line 435 #0 [internal function]: Whoops\Run->handleError(2, 'json_decode() e...', '/var/www/html/f...', 435, Array) #1 /var/www/html/freepbx/admin/modules/sipsettings/Sipsettings.class.php(435): json_decode(Array, true) #2 /var/www/html/freepbx/admin/libraries/BMO/DialplanHooks.class.php(107): Sipsettings->doDialplanHook(Object(extensions), 'asterisk', 900) #3 /var/lib/asterisk/bin/retrieve_conf(860): FreePBX\DialplanHooks->processHooks('asterisk', Array) #4 {main}

See also

https://helpdesk.nethesis.it/a/tickets/151739

Stell0 commented 2 years ago

Test case:

Stell0 commented 2 years ago

freepbx-14.0-12.2.gae9407e.ns7.noarch.rpm

nrauso commented 2 years ago

Test case verified The disaster recovery was completed flawlessly.

Stell0 commented 2 years ago

freepbx-14.0-13.ns7.noarch.rpm