Convert2pjsip error

freepbx 17, just installed and fully updated

sudo fwconsole trunks --convert2pjsip all

Convert the sip trunks to pjsip (Trunk name : Vodafone)
TypeError: array_keys(): Argument #1 ($array) must be of type array, string given in file /var/www/html/admin/modules/core/functions.inc/drivers/PJSip.class.php on line 1588
Stack trace:

  1. TypeError->() /var/www/html/admin/modules/core/functions.inc/drivers/PJSip.class.php:1588
  2. array_keys() /var/www/html/admin/modules/core/functions.inc/drivers/PJSip.class.php:1588
  3. FreePBX\modules\Core\Drivers\PJSip->addTrunk() /var/www/html/admin/modules/core/Core.class.php:4682
  4. FreePBX\modules\Core->chansipToPJSIP() /var/www/html/admin/modules/core/Console/Trunks.class.php:39
  5. FreePBX\Console\Command\Trunks->execute() /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php:312
  6. Symfony\Component\Console\Command\Command->run() /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:1022
  7. Symfony\Component\Console\Application->doRunCommand() /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:314
  8. Symfony\Component\Console\Application->doRun() /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:168
  9. Symfony\Component\Console\Application->run() /var/lib/asterisk/bin/fwconsole:163

any ideas?

looks like codec settings is not right, please check your sip trunk codec attribute value from SELECT * FROM sip where id =<trunk-id> db table.

If you think , settings are good and still failing then please raise Github issue with the modules version list.

thanks

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.