電訊茶室's Archiver

ckleea 發表於 2013-12-14 20:09

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

[i=s] 本帖最後由 ckleea 於 2015-1-17 09:16 編輯 [/i]

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[color=Red] (2014/01/04)[/color]
- 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

[url=https://drive.google.com/file/d/0B9oltMKtfpe3emZxdkJ5dnRpV3M/view?usp=sharing]按此下載[/url]

ckleea 發表於 2013-12-14 20:10

[i=s] 本帖最後由 ckleea 於 2013-12-24 08:32 編輯 [/i]

[size=5][color=DarkOrange]硬件要求[/color][/size]
1. Raspberry Pi Board
關於此 Raspberry Pi 一些基本資料,可在[url=http://www.raspberrypi.org/faqs]這裡[/url]找到
[attach]3054[/attach][attach]3055[/attach][attach]3056[/attach]
2. USB Hub (with power)
充足電力 Power Supply - 最好使用帶電 USB 2.0 Hub
建議使用[url=http://www.connectland.com.hk/main/product/html/product_detail.php?id=966]呢款 USB 3.0 Hub[/url],完全解決電力不足 reboot 的情況。
3. 支援  USB 3G 手指,例如華為 E180
4. USB Wifi 手指,例如 [url=http://www.tp-link.com/en/products/details/?categoryid=&model=TL-WN823N]TP-Link WN823N[/url]

參考網頁
[url=http://elinux.org/RPi_VerifiedPeripherals]官方Raspberry Pi 支援硬件[/url]
[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=5046&highlight=raspberry%2Bpi[/url]

ckleea 發表於 2013-12-14 20:10

[i=s] 本帖最後由 ckleea 於 2013-12-24 08:39 編輯 [/i]

[size=5][color=DarkOrange]軟件要求[/color][/size]

1. SSH - Client [url=http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]Putty[/url]
2. File Manager - [url=http://winscp.net/eng/download.php]WinSCP[/url]
3. VOIP - Soft client - 如 [url=http://www.zoiper.com/en/voip-softphone/download/zoiper3]Zoiper[/url]
4. Windows VNC Clients - [url=http://portableapps.com/node/11285]Tight VNC Viewer[/url]  &  [url=http://portableapps.com/node/2031]Ultra VNC Viewer[/url]
5. Image Backup and Restore - [url=http://sourceforge.net/projects/win32diskimager/]Win32DiskImager[/url]
6. [url=https://www.sdcard.org/downloads/formatter_4/]SD Card Formatter[/url]

ckleea 發表於 2013-12-14 20:11

[i=s] 本帖最後由 ckleea 於 2013-12-25 07:17 編輯 [/i]

[color=Orange][size=5]下載、準備、啟動[/size][/color]

下載及基本安裝程序:

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

[i=s] 本帖最後由 ckleea 於 2014-1-12 08:12 編輯 [/i]

[size=5][color=DarkOrange]系統和網絡設定[/color][/size]

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

[size=4]系統設定[/size]
(一) 更改 root password
[list=1]
[*]用 putty 進入系統 as root
[*]輸入passwd 更改 your root password
[/list]
2. 更改 pi user password
[list=1]
[*]login as pi; default password - raspberry
[*]輸入passwd 更改 your password
[/list]
[size=4](二) 網絡設定[/size]
基本設定為經 wired ethernet 上網,從router 路由器 DHCP 取得內聯網 Lan IP。
初階使用方法
[list=1]
[*]在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

參考網頁:[url]http://elinux.org/RPi_Setting_up_a_static_IP_in_Debian[/url]

[*]經 wireless adaptor 到router 路由器取DHCP派的Lan IP
[/list]

進階使用方法
[list=1]
[*]經USB 3G 手指上網
[*]將wireless adaptor變成 hotspot,經wired ethernet  上網
[/list]

ckleea 發表於 2013-12-14 20:12

[i=s] 本帖最後由 ckleea 於 2014-1-12 16:55 編輯 [/i]

[size=5][color=DarkOrange]設定 Asterisk 功能 - 1[/color][/size]o

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

[attach]3144[/attach]
[attach]3145[/attach]

ckleea 發表於 2013-12-14 20:12

[i=s] 本帖最後由 ckleea 於 2014-1-12 08:13 編輯 [/i]

[size=5][color=DarkOrange]設定 Asterisk 功能 - 2[/color][/size]

ckleea 發表於 2013-12-14 20:13

[i=s] 本帖最後由 ckleea 於 2014-1-19 16:51 編輯 [/i]

[size=5][color=DarkOrange]設定 Asterisk 功能 - 3[/color][/size]

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

[attach]3155[/attach]

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

[color=Red][u]Handling SMS incoming and outgoing[/u][/color]
1. For incoming SMS, you need to change the following parameters ([email]user@gmail.com[/email]) in the dongle_extensions.conf
[attach]3159[/attach]

Update credentials for your mailserver  in the file /etc/ssmtp/ssmtp.conf
[attach]3157[/attach]

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

[attach]3160[/attach]

ckleea 發表於 2013-12-14 20:13

[i=s] 本帖最後由 ckleea 於 2014-1-12 16:26 編輯 [/i]

[size=5][color=DarkOrange]設定 VPN - 1[/color][/size]

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
- "[b][color=RoyalBlue]service VPN status[/color][/b]" to check whether the VPN server is running
- "[b][color=RoyalBlue]service vpnserver restart[/color][/b]" to restart the VPN service.

[attach]3127[/attach]

[size=4]GUI Management is easy[/size]
1.Click on Windows VPN Server Manger (Tools)
[attach]3128[/attach]
2.Once you login (default password is raspberrypi), you are in dashboard
[attach]3129[/attach]
3. Click on Manage Virtual Hub to manage
[attach]3130[/attach]
4. User management
[attach]3132[/attach]
5. Create a new user
[attach]3131[/attach]
6. For SSTP, you need to enable VPN Azure, but remember to change your DDNS hostname to your preferred name
[attach]3133[/attach]
7. Change the DDNS name to a different name
[attach]3137[/attach]
8. Change the preshared key to something
[attach]3135[/attach]
9. Download the OpenVPN certificates
[attach]3136[/attach]

ckleea 發表於 2013-12-14 20:13

[i=s] 本帖最後由 ckleea 於 2014-1-12 16:29 編輯 [/i]

[size=5][color=DarkOrange]設定 VPN - 2[/color][/size]

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[code]# Secrets for authentication using CHAP
# client        server        secret                        IP addresses
user        *        strong_password        *

[/code]After editing, a restart of the pptpd service is required.

ckleea 發表於 2013-12-14 20:14

[i=s] 本帖最後由 ckleea 於 2014-1-12 16:42 編輯 [/i]

[size=5][color=DarkOrange]設定 遠程連接 [/color][/size]

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/
[attach]3138[/attach]
[attach]3139[/attach]
[attach]3140[/attach]

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.

[attach]3141[/attach]
[attach]3142[/attach]
[attach]3143[/attach]

ckleea 發表於 2013-12-14 20:14

[i=s] 本帖最後由 ckleea 於 2014-1-19 17:04 編輯 [/i]

[size=5][color=DarkOrange]系統維護 - 1[/color][/size]

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, 之後出事 :'(

角色 發表於 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

[i=s] 本帖最後由 milanolarry 於 2015-1-5 12:26 編輯 [/i]

新的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 更新

頁: [1] 2

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.