返回列表 發帖

【Raspberry Pi】—— 專為Telecom-Cafe 發放 的 IPPBX (欠Asterisk GUI更新) 2015年1月:抱歉,沒有空搞GUI 教學

本帖最後由 ckleea 於 2015-1-17 09:16 編輯

2014年1月19日發佈的 Raspberry Pi IPPBX Image 有以下功能

VOIP:
1. Asterisk 11.X (SVN version)
2. Asterisk GUI
3. Support USB 3G Dongle with SMS and Voice (Dongle must be compatible voice activated/enabled)
4. Provide Fax support via IAXModem + Hylafax
5. Web based SMS client to send SMS (English SMS only)
6. Mail tools to send received SMS via Google Mail SMTP or your preferred ISP Mail server (note: some ISP may block the use of port 25 if user wants to use own SMTP server)

Other Server and Important Functions
1. VPN
- SSTP, IPSec, OpenVPN provided by Softether VPN (2014/01/04)
- PPTP server
2. Remote destop via
- VNC server
- xRDP server using Windows Remote Desktop
3. Network filing
- CIFS Samba client and server
- NFS client and server
- FTP by proftpd
4. MySQL database server
- phpmyadmin
5. Webmin for GUI server management including
- Printing support - PDF, Airprint
- Backup and email important configuration files
6. Airdrop support

按此下載

本帖最後由 ckleea 於 2013-12-24 08:32 編輯

硬件要求
1. Raspberry Pi Board
關於此 Raspberry Pi 一些基本資料,可在這裡找到
12112614510bb8ed59697bb730.png.jpg
2013-12-14 21:21
12112614519e16a0698126930b.png
2013-12-14 21:21
1211261451f63d0128e8c44fe5.png
2013-12-14 21:21

2. USB Hub (with power)
充足電力 Power Supply - 最好使用帶電 USB 2.0 Hub
建議使用呢款 USB 3.0 Hub,完全解決電力不足 reboot 的情況。
3. 支援  USB 3G 手指,例如華為 E180
4. USB Wifi 手指,例如 TP-Link WN823N

參考網頁
官方Raspberry Pi 支援硬件
http://www.telecom-cafe.com/foru ... ight=raspberry%2Bpi

TOP

本帖最後由 ckleea 於 2013-12-24 08:39 編輯

軟件要求

1. SSH - Client Putty
2. File Manager - WinSCP
3. VOIP - Soft client - 如 Zoiper
4. Windows VNC Clients - Tight VNC Viewer  &  Ultra VNC Viewer
5. Image Backup and Restore - Win32DiskImager
6. SD Card Formatter

TOP

本帖最後由 ckleea 於 2013-12-25 07:17 編輯

下載、準備、啟動

下載及基本安裝程序:

1. 下載 最新版本
2. 用 Winzip 或 7-zip 打開和放出 RASPASTDON-XXXXXXXX.img
3. 使用 Win32DiskImager  打開 RASPASTDON-XXXXXXXX.img, 寫入一張有 8GB或以上的 SD Card
4. 將 SD Card 放入,並起動 Raspberry Pi;如果有 HMDI 出 Mon 或 電視,可以看到Raspberry Pi系統起動資訊
5. 正常的話,Raspberry Pi系統應該可以從 Router DHCP 取得網內 IP
6. 使用 putty 登入 raspberrypi, root password is raspberrypi

TOP

本帖最後由 ckleea 於 2014-1-12 08:12 編輯

系統和網絡設定

由於部份設定要經 linux command line 進行,請先掌握基本指令使用 putty和 winscp
參考網頁
http://www.bu.edu/tech/support/desktop/software/windows/gsputty/
http://www.bu.edu/tech/support/desktop/software/windows/winscp/

系統設定
(一) 更改 root password

  • 用 putty 進入系統 as root
  • 輸入passwd 更改 your root password

2. 更改 pi user password

  • login as pi; default password - raspberry
  • 輸入passwd 更改 your password

(二) 網絡設定
基本設定為經 wired ethernet 上網,從router 路由器 DHCP 取得內聯網 Lan IP。
初階使用方法

  • 在wired ethernet 上,使用固定 Lan IP
    用 putty 進入系統 as root
    更改 /etc/network/interfaces
    [attach]3002[/attach]
    改為
    [attach]3003[/attach]
    例如 網友的網絡設定為
    <ip-address> = 192.168.1.10
    <netmask address> = 255.255.255.0
    <gateway address> = 192.168.1.1

    [attach]3004[/attach]
    儲存檔案,然後
    /etc/init.d/networking reload
    or
    reboot

    參考網頁:http://elinux.org/RPi_Setting_up_a_static_IP_in_Debian

  • 經 wireless adaptor 到router 路由器取DHCP派的Lan IP


進階使用方法

  • 經USB 3G 手指上網
  • 將wireless adaptor變成 hotspot,經wired ethernet  上網

TOP

本帖最後由 ckleea 於 2014-1-12 16:55 編輯

設定 Asterisk 功能 - 1o

The Asterisk server has been compiled with most common options and has almost all modules available. However, the configuration files are changed to a simpler and cleaner version. All the default configuration files are moved to other directory for backup  (/etc/asterisk.samples/)

By default, Asterisk GUI Management IP is http://your_raspberrypi:8088/
Login with admin/raspberrypi

Asterisk Login Screen.png
2014-1-12 16:54

Asterisk Status.png
2014-1-12 16:54

TOP

本帖最後由 ckleea 於 2014-1-12 08:13 編輯

設定 Asterisk 功能 - 2

TOP

本帖最後由 ckleea 於 2014-1-19 16:51 編輯

設定 Asterisk 功能 - 3

To make change to use your supported dongle, you need to change the telephone number is 3 files
1. dongle.conf
2. dongle_extensions.conf
3. extensions.conf

Find the text +85291234567 to your phone associated with the SIM

screenshot.19-01-2014 16.28.55.png
2014-1-19 16:35


If you want to change the extension for the incoming call, change Local/1001 to Local/exten or SIP/exten

Handling SMS incoming and outgoing
1. For incoming SMS, you need to change the following parameters (user@gmail.com) in the dongle_extensions.conf
screenshot.19-01-2014 16.30.34.png
2014-1-19 16:40


Update credentials for your mailserver  in the file /etc/ssmtp/ssmtp.conf
screenshot.19-01-2014 16.31.23.png
2014-1-19 16:38


Remember to restart the Asterisk service.
2. For outgoing SMS, go to /var/www/mySMS directory
update the value of phone number your own number in the line of index.php
<option value="dongle0">SIMS 0 - 91234567</option>

Login in via your browser to http://raspberrypi-ip/mySMS/
username: smsuser
password: raspberrypi

screenshot.19-01-2014 16.44.36.png
2014-1-19 16:51

TOP

本帖最後由 ckleea 於 2014-1-12 16:26 編輯

設定 VPN - 1

Softether VPN is installed by default and started when Raspberry Pi is up. All you need is to open the appropriate TCP/UDP ports of your router for VPN connections (SSTP, OpenVPN, IPSec). PPTP will be discussed in next thread.

To manage the Softether VPN server, you need to install the Softether VPN server admin tools for Windows.
At the linux command line, 2 commands are available
- "service VPN status" to check whether the VPN server is running
- "service vpnserver restart" to restart the VPN service.

VPN command line.png
2014-1-12 07:51


GUI Management is easy
1.Click on Windows VPN Server Manger (Tools)
Login.png
2014-1-12 07:52

2.Once you login (default password is raspberrypi), you are in dashboard
Dashboard.png
2014-1-12 07:52

3. Click on Manage Virtual Hub to manage
Managment.png
2014-1-12 07:53

4. User management
User Management.png
2014-1-12 07:53

5. Create a new user
Create New User.png
2014-1-12 07:53

6. For SSTP, you need to enable VPN Azure, but remember to change your DDNS hostname to your preferred name
VPN Azaure.png
2014-1-12 07:54

7. Change the DDNS name to a different name
Change VPN Azure Hostname.png
2014-1-12 08:05

8. Change the preshared key to something
IPSec Pre shared Key.png
2014-1-12 07:54

9. Download the OpenVPN certificates
OpenVPN SSTP.png
2014-1-12 07:55

TOP

本帖最後由 ckleea 於 2014-1-12 16:29 編輯

設定 VPN - 2

PPTP is also installed and enabled by default. What you need to do is to change and add your user and password

The file to edit is /etc/ppp/chap-secrets with the content below
  1. # Secrets for authentication using CHAP
  2. # client        server        secret                        IP addresses
  3. user        *        strong_password        *
複製代碼
After editing, a restart of the pptpd service is required.

TOP

本帖最後由 ckleea 於 2014-1-12 16:42 編輯

設定 遠程連接

By default, SSH should not be enabled for remote access outside your LAN. The Raspberry Pi image has installed VNC server and RDP service. Both are enabled at boot time.
1. VNC
The default login is using your favourite VNC client point to the RPi server IP and when prompt for the password, it is "raspberrypi"
You should be the X Windows GUI screen/
VNC Client.png
2014-1-12 16:37

VNC Login.png
2014-1-12 16:37

VNC GUI Screen.png
2014-1-12 16:37


2. RDP
The same for RDP, one can use the Windows built in Remote Desktop Connection to connect. But you need to put in username and password.

RDP.png
2014-1-12 16:42

RDP Security Prompt.png
2014-1-12 16:42

RDP Login.png
2014-1-12 16:42

TOP

本帖最後由 ckleea 於 2014-1-19 17:04 編輯

系統維護 - 1

1. Webmin
webmin in running by default and can be accessed via https://raspberrypi-ip:10000/

2. A default backup script is created and enabled

TOP

系統維護 - 2

TOP

其他功能 - 1

TOP

其他功能 - 2

TOP

返回列表