asterisk1.8中设置presence或blf

voip-info.org中介绍如下:


Asterisk presence


Current CVS -HEAD provides some support of SIP presence as defined in RFC 3856 - A Presence Event Package for the Session Initiation Protocol (SIP). The release version (1.0.9) has some support too.

To support this, you have to somehow tell which SIP user is mapped to the extension mentioned. A "hint" priority is used to describe this, as in this example:

exten => 100,hint,SIP/peername


(it says, that for presence purposes, extension 100's presence should be mapped the SIP peer)

  • IMPORTANT: In Asterisk 1.4 the inner workings of the hint functionality have slightly changed. It is now imperative that you set a call-limit (even if it's an arbitrarily-high value like 100) and/or the new limitonpeers value in sip.conf. Presence will not work without this. If you are using friend instead of peer, you will need limitonpeers = yes as well as a call-limit statement (new in Asterisk 1.4) for each SIP device
  • If you do not add a hint, the extension will be free ("open") always, more or less.
  • If you add incominglimit=1 to your peer (in Asterisk 1.2 only) in sip.conf, the SIP channel will notify you when that extension is busy.
  • IMPORTANT: In Asterisk 1.6.2.X in sip.conf you need callcounter=yes for presence to work (http://lists.digium.com/pipermail/asterisk-users/2010-May/248222.html)

在asterisk1.8中
在dialplan中分机对应拨号计划上添加如下:
exten=>600,hint,SIP/600
exten=>600,1,Dial(SIP/600)

如遇到通话中状态不对应在sip.conf中添加 callcounter=yes 即可
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值