CentOS 7 Asterisk + FreePBX安装:

我试图在我的FreePBX安装上运行./install -n,得到:

===== Checking if Asterisk is running and we can talk to it as the 'asterisk' user...Error! Could not determine Asterisk version (got: No ethernet interface found for seeding global EID. You will have to set it manually.). Please report this. ===== 

在Asterisk上做核心显示版本给我No ethernet interface found for seeding global EID. You will have to set it manually. No ethernet interface found for seeding global EID. You will have to set it manually. 然后在该行下的版本号。

我环顾四周,无法find解决scheme

在源文件freepbx / installlib / installcommand.class.php中

replace266行如下所示:

 $lastline = exec("runuser" . $answers['user'] . ' -s /bin/bash -c "cd ~/ && asterisk -rx \'core show version\' | grep ^Asterisk 2>&1"', $tmpout, $ret); 

代替:

 $lastline = exec("runuser" . $answers['user'] . ' -s /bin/bash -c "cd ~/ && asterisk -rx \'core show version\' 2>&1"', $tmpout, $ret);