第一步:从asterisk.org上下载最新的安装包,例如:asterisk-1.4.0-beta3.tar.gz;解压
#tar -zxvf asterisk-1.4.0-beta3.tar.gz
第二步:配置、安装
#cd asterisk-1.4.0-beta3
#./configure
#make
#make install
#make examples
#make progdocs
第三步:修改/etc/asterisk/extensions.conf;加入一个最简单的
[welv]
exten => _.,1,Answer()
exten => _.,n,Ringing
exten => _.,n,Dial(SIP/${EXTEN},60,tr)
exten => _.,Hangup()
第四步:修改/etc/asterisk/sip.conf;加入两个新用户
[1xxx]
type=friend
host=dynamic
username=1xxx
context=welv
regexten=1xxx
[2xxx]
type=friend
host=dynamic
username=2xxx
context=welv
regexten=2xxx
第五步:运行
#asterisk -vvvgc
*CLI>sip list users
Username Secret Accountcode Def.context Acl Nat
1xxx welv No RFC3581
2xxx welv No RFC3581
第六步:找俩电话注册,互相打吧!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment