|
|
发表于 2016-8-28 22:08:26
|
显示全部楼层
metarouter asterisk openWRT
本帖最后由 stevemorris廉 于 2016-8-28 22:38 编辑
我在RB750上用metarouter的功能上了OpenWRT,运行Asterisk18,GUI配置。wifi覆盖范围内,手机可以打出电话了优势在于电话费全部在sip捆绑的固定电话上,家里或小型办公室完全不需要布线,包括电话线也不需要!每一个手机都是内部的一个分机。
客户看到的是公司的电话号码,体现了客户是公司的,而不是员工的
GUI配置很不稳定,以后打算还是改为sip/extension配置文件
毕竟是在路由器上运行,稳定性比PC/服务器好。何况路由器一般不会去关机,也不像托管机房难以操作。最大的优势是路由器无论如何总是需要一个的,手机的演进迟早会取代固话。
暂时仅仅是打出固话,因为打入的应用场景没有想好。只有手机开着apk,才能接VOIP电话(主要是这个限制),还是让单个电话机来接。可以绑定外线和分机号,但是这样就需要登记多个外线的电话号码了。
这是网上找到的标准步骤:
Howto install ASTERISK 1.8 with GUI
Make metarouter machine with following image,and setup proper networking.
1
/tool fetch url=http://ms1.nserver.us/openwrt.wk.cz/kamikaze/openwrt-mr-mips-rootfs-18961.tar.gz
Edit /etc/opkg.conf and use following repository
src/gz snapshots http://ms1.nserver.us/openwrt.wk.cz/kamikaze/packages/mr-mips
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /jffs
Save and exit. then update opkg , install asterisk , and start it.
opkg update
opkg install asterisk18 asterisk18-codec-alaw asterisk18-chan-iax2 asterisk-gui
/etc/init.d/asterisk enable
/etc/init.d/asterisk start
Upon successful start you can see following ports (5038 and 8088 started) as showed below …
1
2
3
4
5
6
7
root@metarouter:~# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:5038 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN
Now you can access asterisk GUI via
http://ipofmetarouter:8088
Default ID Password is
Id = admin
Password = ast-owrt
You can change the password and other stuff in /etc/asterisk/manager.conf
|
|