Board logo

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

作者: ckleea    時間: 2013-12-14 20:09     標題: 【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-14 20:10

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

硬件要求
1. Raspberry Pi Board
關於此 Raspberry Pi 一些基本資料,可在這裡找到
12112614510bb8ed59697bb730.png.jpg 12112614519e16a0698126930b.png 1211261451f63d0128e8c44fe5.png
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

圖片附件: 12112614510bb8ed59697bb730.png.jpg (2013-12-14 21:21, 177.11 KB) / 下載次數 5032
http://www.telecom-cafe.com/forum/attachment.php?aid=3054&k=1617ccf09ff7178e1d12775007de6214&t=1714065888&sid=Ei4x2x



圖片附件: 12112614519e16a0698126930b.png (2013-12-14 21:21, 142.2 KB) / 下載次數 4100
http://www.telecom-cafe.com/forum/attachment.php?aid=3055&k=8b6ff94e24b98afb37cfa3dc70381054&t=1714065888&sid=Ei4x2x



圖片附件: 1211261451f63d0128e8c44fe5.png (2013-12-14 21:21, 19.53 KB) / 下載次數 4146
http://www.telecom-cafe.com/forum/attachment.php?aid=3056&k=588cbcccaf6e86a83039fccb604a3a20&t=1714065888&sid=Ei4x2x


作者: ckleea    時間: 2013-12-14 20:10

本帖最後由 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
作者: ckleea    時間: 2013-12-14 20:11

本帖最後由 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
作者: ckleea    時間: 2013-12-14 20:11

本帖最後由 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

2. 更改 pi user password

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


進階使用方法

作者: ckleea    時間: 2013-12-14 20:12

本帖最後由 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
Asterisk Status.png

圖片附件: Asterisk Login Screen.png (2014-1-12 16:54, 47.17 KB) / 下載次數 3936
http://www.telecom-cafe.com/forum/attachment.php?aid=3144&k=646c6d709014378180b929f7466c608d&t=1714065888&sid=Ei4x2x



圖片附件: Asterisk Status.png (2014-1-12 16:54, 83.13 KB) / 下載次數 3897
http://www.telecom-cafe.com/forum/attachment.php?aid=3145&k=d8e49590c01de464cd235c1555cc8ccc&t=1714065888&sid=Ei4x2x


作者: ckleea    時間: 2013-12-14 20:12

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

設定 Asterisk 功能 - 2
作者: ckleea    時間: 2013-12-14 20:13

本帖最後由 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

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

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

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

圖片附件: screenshot.19-01-2014 16.28.55.png (2014-1-19 16:35, 2.71 KB) / 下載次數 4639
http://www.telecom-cafe.com/forum/attachment.php?aid=3155&k=772fc0a674b62ae9e2cb4443aeead370&t=1714065888&sid=Ei4x2x



圖片附件: screenshot.19-01-2014 16.31.23.png (2014-1-19 16:38, 1.97 KB) / 下載次數 4671
http://www.telecom-cafe.com/forum/attachment.php?aid=3157&k=93199d7a4622e629d92ca39ea79de3e1&t=1714065888&sid=Ei4x2x



圖片附件: screenshot.19-01-2014 16.30.34.png (2014-1-19 16:40, 11.67 KB) / 下載次數 4613
http://www.telecom-cafe.com/forum/attachment.php?aid=3159&k=97ae183f2d28f96812411ce9c674f8e3&t=1714065888&sid=Ei4x2x



圖片附件: screenshot.19-01-2014 16.44.36.png (2014-1-19 16:51, 6.58 KB) / 下載次數 4653
http://www.telecom-cafe.com/forum/attachment.php?aid=3160&k=98c05aeea9698cc346c7d375bcad082e&t=1714065888&sid=Ei4x2x


作者: ckleea    時間: 2013-12-14 20:13

本帖最後由 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

GUI Management is easy
1.Click on Windows VPN Server Manger (Tools)
Login.png
2.Once you login (default password is raspberrypi), you are in dashboard
Dashboard.png
3. Click on Manage Virtual Hub to manage
Managment.png
4. User management
User Management.png
5. Create a new user
Create New User.png
6. For SSTP, you need to enable VPN Azure, but remember to change your DDNS hostname to your preferred name
VPN Azaure.png
7. Change the DDNS name to a different name
Change VPN Azure Hostname.png
8. Change the preshared key to something
IPSec Pre shared Key.png
9. Download the OpenVPN certificates
OpenVPN SSTP.png

圖片附件: VPN command line.png (2014-1-12 07:51, 8.68 KB) / 下載次數 3981
http://www.telecom-cafe.com/forum/attachment.php?aid=3127&k=e8eabe8db3571052da02645a10ea0768&t=1714065888&sid=Ei4x2x



圖片附件: Login.png (2014-1-12 07:52, 73.32 KB) / 下載次數 3918
http://www.telecom-cafe.com/forum/attachment.php?aid=3128&k=703c03b2e1f1dbfec8fdbb258fae6249&t=1714065888&sid=Ei4x2x



圖片附件: Dashboard.png (2014-1-12 07:52, 95.21 KB) / 下載次數 3857
http://www.telecom-cafe.com/forum/attachment.php?aid=3129&k=918b51a95fa2564e3253ef94a65dfbd5&t=1714065888&sid=Ei4x2x



圖片附件: Managment.png (2014-1-12 07:53, 62.39 KB) / 下載次數 3836
http://www.telecom-cafe.com/forum/attachment.php?aid=3130&k=d85a176628464fe82f3383a60203e448&t=1714065888&sid=Ei4x2x



圖片附件: Create New User.png (2014-1-12 07:53, 51.37 KB) / 下載次數 4039
http://www.telecom-cafe.com/forum/attachment.php?aid=3131&k=cb64e3f9a3514a7b3e8ed3182fa4db04&t=1714065888&sid=Ei4x2x



圖片附件: User Management.png (2014-1-12 07:53, 27.98 KB) / 下載次數 3844
http://www.telecom-cafe.com/forum/attachment.php?aid=3132&k=7d23e068ebcf2e7310ebc98d3d1a321a&t=1714065888&sid=Ei4x2x



圖片附件: VPN Azaure.png (2014-1-12 07:54, 83.86 KB) / 下載次數 3880
http://www.telecom-cafe.com/forum/attachment.php?aid=3133&k=0c85da6d89ec99b1a470426d2d442a4e&t=1714065888&sid=Ei4x2x



圖片附件: IPSec Pre shared Key.png (2014-1-12 07:54, 75.64 KB) / 下載次數 3927
http://www.telecom-cafe.com/forum/attachment.php?aid=3135&k=fec7a24e01de593926d15dfca5e3d0ad&t=1714065888&sid=Ei4x2x



圖片附件: OpenVPN SSTP.png (2014-1-12 07:55, 77.07 KB) / 下載次數 3913
http://www.telecom-cafe.com/forum/attachment.php?aid=3136&k=f236df61e813615ff82914306ccde670&t=1714065888&sid=Ei4x2x



圖片附件: Change VPN Azure Hostname.png (2014-1-12 08:05, 65.15 KB) / 下載次數 3751
http://www.telecom-cafe.com/forum/attachment.php?aid=3137&k=5244eabbbc0dbccdaa8064cb95db8ab5&t=1714065888&sid=Ei4x2x


作者: ckleea    時間: 2013-12-14 20:13

本帖最後由 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.
作者: ckleea    時間: 2013-12-14 20:14

本帖最後由 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
VNC Login.png
VNC GUI Screen.png

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
RDP Security Prompt.png
RDP Login.png

圖片附件: VNC Client.png (2014-1-12 16:37, 21.04 KB) / 下載次數 3975
http://www.telecom-cafe.com/forum/attachment.php?aid=3138&k=75b664d811ccb1558c40f0e583f0fe86&t=1714065888&sid=Ei4x2x



圖片附件: VNC Login.png (2014-1-12 16:37, 14.16 KB) / 下載次數 3903
http://www.telecom-cafe.com/forum/attachment.php?aid=3139&k=8bdeea33269703c214950c8e3f904e65&t=1714065888&sid=Ei4x2x



圖片附件: VNC GUI Screen.png (2014-1-12 16:37, 71.91 KB) / 下載次數 3851
http://www.telecom-cafe.com/forum/attachment.php?aid=3140&k=ccf55d99d55aacbd2f12fcc202dbfce2&t=1714065888&sid=Ei4x2x



圖片附件: RDP.png (2014-1-12 16:42, 30.95 KB) / 下載次數 3796
http://www.telecom-cafe.com/forum/attachment.php?aid=3141&k=09232a0457704fcd2afe891068c8bba3&t=1714065888&sid=Ei4x2x



圖片附件: RDP Security Prompt.png (2014-1-12 16:42, 28.79 KB) / 下載次數 3882
http://www.telecom-cafe.com/forum/attachment.php?aid=3142&k=1fde0e2793ee4ad84d2b7490ab3851f0&t=1714065888&sid=Ei4x2x



圖片附件: RDP Login.png (2014-1-12 16:42, 3.25 KB) / 下載次數 3964
http://www.telecom-cafe.com/forum/attachment.php?aid=3143&k=e42b8baf169bb20a65f90b69c2aeaaed&t=1714065888&sid=Ei4x2x


作者: ckleea    時間: 2013-12-14 20:14

本帖最後由 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
作者: ckleea    時間: 2013-12-14 20:15

系統維護 - 2
作者: ckleea    時間: 2013-12-14 20:15

其他功能 - 1
作者: ckleea    時間: 2013-12-14 20:15

其他功能 - 2
作者: ckleea    時間: 2013-12-14 20:15

其他功能 - 3
作者: orangelau    時間: 2014-1-1 01:59

Good! 謝謝分享
作者: wai146    時間: 2014-1-9 13:58

Good! 謝謝分享
作者: ckleea    時間: 2014-1-19 17:16

現時的功能差不多,只是修改 asterisk 內的 config files 和其他 bug fixes
作者: fysy    時間: 2014-1-19 17:26

谢谢CK大哥分享。
作者: ckleea    時間: 2014-1-19 17:44

請大家留意怎樣收發SMS短訊
作者: 亞星    時間: 2014-11-13 10:43

Login 時 upgrade GUI, 之後出事

圖片附件: GUI.jpg (2014-11-13 10:40, 62.04 KB) / 下載次數 2801
http://www.telecom-cafe.com/forum/attachment.php?aid=3390&k=bbccdde87cab28f3899d881a3d6ef61f&t=1714065888&sid=Ei4x2x


作者: 角色    時間: 2014-11-13 16:10

哈哈重新再set就可以,我们以前的帖子都有说过。
作者: tomleehk    時間: 2014-11-25 08:05

Very helpful post..
作者: ckleea    時間: 2014-11-26 20:36

已經很久沒有更新。

現在又有新raspberrypi pi hardware 版本。
作者: 角色    時間: 2014-11-26 22:03

调link呢?
作者: milanolarry    時間: 2015-1-5 12:20

本帖最後由 milanolarry 於 2015-1-5 12:26 編輯

新的A+沒有 Network
想問樓主個 image 係咪有問題? 我用 Windows 個 Winzip,佢話個檔案格式有問題,unzip 吾到!
作者: ckleea    時間: 2015-1-5 13:12

我沒有更新軟件的image。下載後,應該開到。

別外,提大家如有需要,可以更新 系統內軟件。方法是在
root access command line後,打上 apt-get update ; apt-get dist-upgrade; apt-get clean

第一個 command 是 軟件更新
第二個 command 是 系統更新 (如有)
第三個 command 是清除更新後的 cache

Asterisk 的更新就不建議,因為如沒有大問題,image 內的版本應該夠用,而且更新後要更新 dongle channel,比較麻煩。


注意:個人不建議做 firmware 更新,因為試過更新後出問題,不能解決。

Debian linux 系統更新一般沒有問題。
作者: ckleea    時間: 2015-1-5 13:16

其實要維護整套系統需要時間和心機。

我想還欠了softether VPN 的更新,但它不是自動就可以。
作者: ckleea    時間: 2015-1-8 19:16

請大家留意 Version 1.8 更新
作者: milanolarry    時間: 2015-2-27 11:34

多謝樓主。
想問這個 image 是否可用於 Banana Pi ?
作者: ckleea    時間: 2015-2-27 12:38

回復 31# milanolarry


    建議再做個新,因硬件有些不同,。再做過會好好多。這是我從使用Raspberry Pi 2 的經驗。
作者: milanolarry    時間: 2015-3-3 16:57

是不是說這個 image 若行在 raspberry pi 2 也會出現問題?
作者: ckleea    時間: 2015-3-3 20:35

回復 33# milanolarry


    我沒有詳細試,雖然可以boot up 和 running,但相信做過會好點。而且有其他applications想再裝,如 switchfin GUI
作者: milanolarry    時間: 2015-3-19 23:10

想請教樓主, Raspberry Pi 個 OS 有冇 firewall 架? 即係裝左個 VPN 之後駛吾駛響個 firewall 開個 port 先用到?
作者: ckleea    時間: 2015-3-20 19:03

回復 35# milanolarry


    我應該沒有加 firewall or iptables。softether VPN 是方便大家使用 SSTP, OpenVPN. L2TP/IPSec,還有加上 PPTP。
作者: milanolarry    時間: 2015-4-25 21:19

請問若 Raspberry Pi 是放在 router 後面,只 forward port 1723 是否足夠?
作者: ckleea    時間: 2015-4-27 12:54

請問若 Raspberry Pi 是放在 router 後面,只 forward port 1723 是否足夠?
milanolarry 發表於 2015-4-25 21:19



    1723 是 PPTP 用,看你的需要。
作者: milanolarry    時間: 2015-4-29 16:44

因為吾夠ip,所以個 Raspberry Pi 一定要放響個 router 後面。發現 log in 到個 pptp,但 log in 後就行吾到。有人話 log in 果時的確係用 port 1723,但 log in 後用既 port 就 random 既。我既問題係需吾需要響個 router forward 多D port 俾個 Raspberry Pi,如果要,又應該 forward 邊 D port?但總吾可能所有 port 都 forward 曬俾部 Raspberry Pi 架!
作者: ckleea    時間: 2015-4-30 19:55

回復 39# milanolarry


    理論上一個port就可以

To enable VPN tunnels between individual host computers or entire networks that have a firewall between them, you must open the following ports:

PPTP

    To allow PPTP tunnel maintenance traffic, open TCP 1723.
    To allow PPTP tunneled data to pass through router, open Protocol ID 47.

L2TP over IPSec

    To allow Internet Key Exchange (IKE), open UDP 500.
    To allow IPSec Network Address Translation (NAT-T) open UDP 5500.
    To allow L2TP traffic, open UDP 1701.
作者: milanolarry    時間: 2015-5-1 12:49

many thanks
作者: ckleea    時間: 2015-5-12 07:18

注意: Debian 8 Jessis has been released in 25 April.

Please do not update your raspberry image by apt-get dist-upgrade. It may break your present configuration.
作者: milanolarry    時間: 2015-5-17 13:49

又想請教樓主,softether 上面行 local bridge 其實係咪已經有加密既效果?發覺吾行 SSL 個速度真係快好多好多。
作者: ckleea    時間: 2015-5-17 14:14

回復 43# milanolarry


    May be but I am not sure
作者: 3388570    時間: 2015-7-2 18:16

Hi,CK.
請教一下,RASPASTDON-V1.8-20150117這個FW是否無法行在Raspi 2主機板上?thx?

ps:您的GG Driver無法訪問,提示限制訪問,可以麻煩您Check下嗎?

per.png

圖片附件: per.png (2015-7-2 18:15, 12.03 KB) / 下載次數 3386
http://www.telecom-cafe.com/forum/attachment.php?aid=3637&k=7b936507bf3e667f558fdd310a554c94&t=1714065888&sid=Ei4x2x


作者: 亞星    時間: 2018-2-19 21:30

Hi,CK.
請教一下,RASPASTDON-V1.8-20150117這個FW是否無法行在Raspi 2主機板上?thx?

ps:您的GG Driver ...
3388570 發表於 2015-7-2 18:16


Raspi 2 可用
作者: ckleea    時間: 2018-2-20 17:06

我已經沒有玩 Raspberry Pi 1/2 一段時間,所以舊的image 也沒有更新




歡迎光臨 電訊茶室 (http://www.telecom-cafe.com/forum/) Powered by Discuz! 7.2