恩山论坛的帖子
本来以为voip版可以直接接普通电话玩的,仔细研究一下发现没戏,不过milkfish还是有点存在的价值。
坛子里面已经有高人用过,但是没有说设置细节。这里发出来,大家一起研究体验一下吧
dd集成voip是milkfish,这个东西有好几个版本,milkfish-dd是给dd用的,大部分功能和boozy差不多。
应用模式:
http://wiki.milkfish.org/index.p … amples#techexamples
1. 内置openser软交换,可以创建voip帐号,供内网用户打电话。注意要用sip网络电话,或者x-lite之类的软件电话
2. 作为proxy,如果有电信网通之类的公网voip帐号,可以把dd-wrt作为你的outgoing proxy
3. 动态域名支持
上面的链接中有几种模式的图。
假设我们要实现上面的全部功能,步骤如下:
1. 去milkfish的论坛注册,动态域名就用这个帐号
2. 刷上v24rc5 voip版本,4M flash(贝尔金刷了这个usb驱动怎么挂?)
2. wan口要插网线,保证有ip
3. 进入web管理页面,services-milfish SIP router
所有的开关都打开
from domain: steeven.homesip.net(把steeven替换成你的)
用户名和密码:和论坛相同
然后apply settings
4. telnet进路由。(参照howardZ教程:http://forum.milkfish.org/viewtopic.php?id=118)
nvram get sip_domain (确认你的内网sip domain, 应该和路由ip一致,一般是192.168.1.1)
milkfish_services sipdb adduser steeven xxx (增加内网用户,用户名steeven密码xxx)
milkfish_services sipdb addalias 007 steeven@192.168.1.1 (设定分机号)
milkfish_services sipdb storenv(存到nvram)
nvram commit
你新添加的帐号在:
cat /var/openser/dbtext/subscriber (for local users)
cat /var/openser/dbtext/aliases (for local aliases)
对于外网的voip帐号通过milkfish proxy时,alias会自动学习到。
5. 检查,web页面上:
SIP status:
QUOTE:
The Milkfish Router Services
Checking the local Router Status…
SIP Transaction Statistics:
Current: 0 (0 waiting) Total: 0 (0 local)
Replied localy: 0
Completion status 6xx: 0, 5xx: 0, 4xx: 0, 3xx: 0,2xx: 0
NVRAM:
SIP_DOMAIN: steeven.homesip.net
OPENSER_CFG: /var/openser/milkfish_openser.cfg
Processes (first receiver process per IP:port):
2 877 receiver child=0 sock= 192.168.0.1:5060
3 878 receiver child=0 sock= 61.172.87.155:5060
RTPproxy:
192.168.0.1 61.172.87.155
IP addresses:
LAN: 192.168.0.1
WAN: 61.172.87.155
SER Uptime:
Now: Thu Dec 20 20:24:27 2007
Up Since: Thu Dec 20 14:51:20 2007
Up time: 19987 [sec]
SIP Phonebook应该能看到你刚才添加的帐号和别名
SIP Database下面的两个按钮好像没用
SIP Trace是协议记录的。等下通话后就能看到
6. 电脑上安装x-lite, 有ubuntu的在internet菜单里面有个软电话也能用。eyeBeam可以和x-lite同时运行,在一个xp上就能测试
帐号设置如下(x-lite:
Authorization user name和user name都是刚才注册的用户名
domain是192.168.1.1和前面一样
tips:
同一帐号可以在多个电话上用。同时响铃。
外网的voip帐号参照服务商设置说明,只要把send outbound via选择proxy: 192.168.1.1就可以。
如果呼叫对方的别名(分机号)没有响应,可以在电话簿中添加对方帐号的全名再呼叫,比如steeven@192.168.1.1
两个x-lite之间可以发消息玩
视频通话应该也可以。还没试验
好了,有空的可以玩玩看吧。有条件的最好买个sip网络电话(100多)或者wifi网络电话(几百吧)
目前还有几个问题:
1. 两个dd-wrt之间能不能相互呼叫
2. 怎样从外网用内网用内网帐号登录,并且呼叫(有人说是改/var/openser/milkfish_openser.cfg, 尚未成功)。如果成功,就是voip私服了?
3. 如果不用homesip.net会怎样?
4. 贝尔金的4p一定要刷micro吗?刷了voip版本怎么加载usb驱动?能不能写脚本从internet上面加载usb驱动?或者刷micro吧voip的模块放到usb里面?
5. 能不能在路由里面装个软电话,音频用usb声卡?或者用gpio DIY出来? |