“Fwconsole commands支持FreePBX-13 以上版本”的版本间的差异

来自最权威最新完整开源SIP,语音通信,融合通信中文技术文档资料,提供详细的Asterisk Freepbx, FreeSBC, 免费会话边界控制器,网关,语音板卡,IPPBX,SBC配置资料-asterisk,freepbx,freesbc 用户手册 界面配置,呼叫路由,IVR, 网关对接,拨号规则,SIP 分机呼叫,pjsip, IVR, 录音, CDR, 队列呼叫,振铃组,CLI 命令中文资料手册
跳转至: 导航搜索
(创建页面,内容为“'''fwconsole commands (13+)''' "fwconsole" is the Linux command that controls FreePBX 13+ from the Linux command prompt.   To access the command prompt, log-i...”)
 
第1行: 第1行:
'''fwconsole commands (13+)'''
+
'''fwconsole commands FreePBX 13 以上版本 用户使用指南'''
  
"fwconsole" is the Linux command that controls FreePBX 13+ from the Linux command prompt.  
+
"fwconsole" 是Linux命令行的系统指令,用来控制支持FreePBX 13以上版本。
  
To access the command prompt, log-in to the machine where you installed FreePBX/Asterisk using your "root" username and password.  You can do so by accessing the keyboard of the machine where you installed FreePBX, or remotely using an SSH client such as Putty.
+
访问fwconsole 命令,用户需要获得Linux SSH 访问权限来访问freepbx后台系统。
  
Then type one of the following "fwconsole" commands:
+
以下是命令解释:
 
+
* [ Command List]
+
* [ Stop/Start]
+
* [ Chown]
+
* [ Reload]
+
* [ Unlock]
+
* [ Database]
+
  
 
'''Command List'''
 
'''Command List'''
  
*   chown     Change ownership of files
+
*   chown     修改用户权限
*   context   Shows the specified context from the dialplan
+
*   context   从拨号规则中显示指定的context
*   cx        Shows the specified context from the dialplan
+
*   cx        从拨号规则中显示指定的context
*   dbug      Stream files for debugging
+
*   dbug      保存排查日志打印文件
*   extip     Get External IP
+
*   extip     获得外部IP地址
*   help      Displays help for a command
+
*   help      显示帮助命令
*   list      Lists commands
+
*   list      命令列表
*   m         Run a mysql Query:
+
*   m         执行mysql查询语句
*   ma        Module Administration
+
*   ma        模块管理员
 
*   motd      Prints MOTD
 
*   motd      Prints MOTD
*   mysql     Run a mysql Query:
+
*   mysql     执行mysql查询:
*   r         Reload Configs
+
*   r         重新加载配置文件
*   reload    Reload Configs
+
*   reload    重新加载配置文件
*   restart   Start Asterisk and run other needed FreePBX commands
+
*   restart   启动 Asterisk,并且运行其他FreePBX相关命令
*   session   Manage Session
+
*   session   管理回话
*   set       View and update settings
+
*   set       查看更新设置
 
*   setting   View and update settings
 
*   setting   View and update settings
 
*   start     Start Asterisk and run other needed FreePBX commands
 
*   start     Start Asterisk and run other needed FreePBX commands
*   stop      Stop Asterisk and run other needed FreePBX commands
+
*   stop      停止Asterisk 并且运行其他FreePBX相关命令
*   trunks    Enable and disable trunks from the command line
+
*   trunks    从命令行开启孩子关闭中继
*   unlock    Unlock Session
+
*   unlock    解锁会话
  
 
'''Stop/Start'''
 
'''Stop/Start'''

2015年11月3日 (二) 10:53的版本

fwconsole commands FreePBX 13 以上版本 用户使用指南

"fwconsole" 是Linux命令行的系统指令,用来控制支持FreePBX 13以上版本。

访问fwconsole 命令,用户需要获得Linux SSH 访问权限来访问freepbx后台系统。

以下是命令解释:

Command List

  •   chown     修改用户权限
  •   context   从拨号规则中显示指定的context
  •   cx        从拨号规则中显示指定的context
  •   dbug      保存排查日志打印文件
  •   extip     获得外部IP地址
  •   help      显示帮助命令
  •   list      命令列表
  •   m         执行mysql查询语句
  •   ma        模块管理员
  •   motd      Prints MOTD
  •   mysql     执行mysql查询:
  •   r         重新加载配置文件
  •   reload    重新加载配置文件
  •   restart   启动 Asterisk,并且运行其他FreePBX相关命令
  •   session   管理回话
  •   set       查看更新设置
  •   setting   View and update settings
  •   start     Start Asterisk and run other needed FreePBX commands
  •   stop      停止Asterisk 并且运行其他FreePBX相关命令
  •   trunks    从命令行开启孩子关闭中继
  •   unlock    解锁会话

Stop/Start

stopstart.gif

This is how FreePBX starts asterisk and any other processes it need.  You should always start and restart asterisk with the amportal command not the service asterisk or /etc/init.d/asterisk commands

fwconsole stop

fwconsole start

Chown

chown.gif

''''fwconsole chown - This will change ownership of all files and directories that FreePBX needs to be owned by the apache user.

 

Reload

reload.gif

fwconsole reload - This will perform a reload of all the dialplan in Asterisk and all the modules in asterisk.  This is the same as pressing the "Apply Changes" button in the GUI of FreePBX

 

Unlock

unlock.gif

fwconsole u xxxxxxxxxxxxxxxx- The fwconsole u command will unlock the GUI login of FreePBX to let you into the FreePBX GUI without the username and password.  This is handy if you lost or misplaced your FreePBX GUI username or password and need to get into the GUI to change or setup a new user.  You need to replace the xxxxxxx with your PHP session ID.  Follow the steps below.

  • Bring up the main login page to FreePBX in your browser.  Such as http://192.168.0.2/admin
  • Do a "ctrl a" to highlight the whole page and look to the left center of the screen for some text.  This is your unique php session ID.  Copy this into your clipboard.

unlockselect.gif

  • Go into the linux CLI and type the following command replacing the session ID below with your own.
  • [root@localhost ~]# fwconsole u ppnr8l1vle32s3q8b79s4n1sp7
  • Please wait...
  • session unlocked!

[root@localhost ~]#

  • Go refresh your browser page and it will log you in this one time automatically for you based on that php session ID. Now you can go add or change the FreePBX admin users.

Database

fwconsole m This will log you to pass queries into the mysql database as the FreePBX user automatically for you based on the username and password for MySQL in /etc/freepbx.conf

[root@localhost ~]# fwconsole m 'SELECT * FROM trunks;'

+---+--------+-------+------------+-----+--+--+-----+---------------------+--+--+-----+-----+

| 1 | | dahdi | | | | | 555 | g0 | | | off | off |

| 3 | fpbx-2 | sip | 4805001104 | off | | | | fpbx-2-Dz2RzUvGHZCR | | | off | off |

| 2 | fpbx-1 | sip | 4805001104 | off | | | | fpbx-1-Dz2RzUvGHZCR | | | off | off |

+---+--------+-------+------------+-----+--+--+-----+---------------------+--+--+-----+-----+