Hello,
I have been deploying FreePBX via ansible on Debian, using Asterisk 14 from source. In general all is working well, but when I downloaded the SIPStation module, inputted my SIPStation account key, and came back to the SIPStation page I consistently get an error page:
- Whoops\Exception\ErrorException
/var/www/freepbx/admin/modules/sipstation/functions.inc/sipstation.inc.php322 - Whoops\Run handleError
<#unknown>0 - implode
/var/www/freepbx/admin/modules/sipstation/functions.inc/sipstation.inc.php322 - sipstation get_or_create_trunks
/var/www/freepbx/admin/modules/sipstation/sipstation.html.php96 - include_once
/var/www/freepbx/admin/modules/sipstation/page.sipstation.php836 - ajax_get
/var/www/freepbx/admin/modules/sipstation/page.sipstation.php33 - include
/var/www/freepbx/admin/config.php555
Whoops \ Exception \ ErrorException (E_WARNING)
HELP
implode(): Invalid arguments passed
/var/www/freepbx/admin/modules/sipstation/functions.inc/sipstation.inc.php
if (isset($tlist[“SIP/$channelid”])) {
$globalvar = $tlist[“SIP/$channelid”][‘globalvar’];
$trunknum = ltrim($globalvar,‘OUT_’);
// Now get some trunk status info
$trunk_status = $this->get_peer_status($channelid);
if ($trunk_status[‘sipstation_status’] == ‘ok’) {
$json_array[‘trunk_qualify’][$gidx] = $trunk_status[‘Status’];
$json_array[‘trunk_codecs’][$gidx] = implode(’ | ',$this->get_configured_codecs($channelid,$trunk_status));
}
$trunk_details = core_trunks_getDetails($trunknum);
I would love to get SIPStation working on these deployments and would appreciate any helpful tips in troubleshooting this. I have updated all my FreePBX modules using “fwconsole ma updateall”
Asterisk 14.3.0
freepbx-13.0-latest.tgz (download 2 days ago)