原文地址:http://blog.tech4k.com/?p=23
不小心看到了Cisco加入开源推广Asterisk.
忠心一片的我当然要看看这是啥东西。
不堪不知道,居然据说要replace call manager.
然后好奇心强烈的我当然要看看怎么让它run起来。
run起来以后当然要找Phone来用咯。
79XX貌似很难配置的样子,
突然之间发现原来还有传说中的free SIP softphones –X Lite.
于是Asterisk + Xlite 3的组合就诞生了了。
晚上终于自己革自己打了第一个电话,特此纪念。
?
Asterisk的安装
Asterisk主页
Asterisk on Ubuntu
Asterisk quickstart
入门级的安装几乎没有任何要求
?
Asterisk GUI的安装
AstRecipes ? Installing the Asterisk GUI
?
Xlite的安装
X Lite 3
XLite and Asterisk
?
基本的配置就是两个电话,两个线路
sip.conf
[1000]
type=friend
secret=1000
callerid="Jane Smith" <1000>
host=dynamic
canreinvite=no??????????????? ; Typically set to NO if behind NAT
disallow=all
allow=gsm???????????????????? ; GSM consumes far less bandwidth than G711-u (ulaw)
allow=ulaw
allow=alaw
dtmfmode=rfc2833
context=xiuxiu
[2000]
type=friend
secret=2000
callerid="Jane Smith" <2000>
host=dynamic
canreinvite=no??????????????? ; Typically set to NO if behind NAT
disallow=all
allow=gsm???????????????????? ; GSM consumes far less bandwidth than G711-u (ulaw)
allow=ulaw
allow=alaw
dtmfmode=rfc2833
context=xiuxiu
[callmanager]
type=friend
context=xiuxiu
host=*.*.*.*
type=friend
context=xiuxiu
host=*.*.*.*
disallow=all
allow=ulaw
allow=alaw
nat=no
canreinvite=yes
qualify=yes
allow=ulaw
allow=alaw
nat=no
canreinvite=yes
qualify=yes
extensions.conf
[xiuxiu]
exten => 1/1000,1,Answer()
exten => 1/1000,2,Dial(SIP/2000)
exten => 1/1000,3,Hangup()
exten => 1/2000,1,Answer()
exten => 1/2000,2,Dial(SIP/1000)
exten => 1/2000,3,Hangup()
exten => 1/1000,2,Dial(SIP/2000)
exten => 1/1000,3,Hangup()
exten => 1/2000,1,Answer()
exten => 1/2000,2,Dial(SIP/1000)
exten => 1/2000,3,Hangup()
?
exten => 9000,1,Answer()
exten => 9000,2,Dial(SIP/1000)
exten => 9000,3,Hangup()
exten => 9000,2,Dial(SIP/1000)
exten => 9000,3,Hangup()
exten => 5555,1,Dial(SIP/5555@*.*.*.*,30,rT)
exten => 5555,2,Hangup()
exten => 5555,2,Hangup()
下一步的课题
- sip.conf的配置
- extension.conf的配置(重点,dianplan的编写)
- asterisk与79XX的连接配置
- asterisk与CallManager的连接配置 (完成,已更新) Asterisk and Call Manager
- asterisk的VoiceMail功能
- sip协议深入(重点)