搭建自己的PBX-asterisk
原文地址: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 UbuntuAsterisk quickstart入门级的安装几乎没有任何要求?Asterisk GUI的安装AstRecipes ? Installing the Asterisk GUI?Xlite的安装X Lite 3XLite 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
extensions.conf
[xiuxiu]
exten => 1/1000,1,Answer()