2010年秋季開始,Brad和oej開始做一個Pinana的項(xiàng)目,Pinana是在Asterisk SIP發(fā)布/訂閱框架的基礎(chǔ)上來分發(fā)設(shè)備狀態(tài)和分機(jī)狀態(tài)的項(xiàng)目。 這是兩個不同的東西。 設(shè)備狀態(tài)是一個驅(qū)動通道信號對象,表示狀態(tài)不能到達(dá),不可用,或正在忙。Extension states is an aggregated state - one extension in a server can have a state based on multiple devices.The connection between an extension and a device in Asterisk is called a hint .
使用SIP服務(wù)器分發(fā)狀態(tài)
在Pinana項(xiàng)目中,我們使用一個外部SIP表現(xiàn)服務(wù)器 - Kamailio。 我們首先發(fā)布設(shè)備狀態(tài),使所有集群中的Asterisk服務(wù)器可以訂閱并得到更新。發(fā)布一臺服務(wù)器狀態(tài)的變化會更新一次,Kamailio組中的所有其他服務(wù)器。 This code exist today - the possibility to PUBLISH (in SIP terminology) a device state and SUBSCRIBE to it (as a hint device state provider)。這些狀態(tài)真的只為Asterisk內(nèi)部使用,不為別的。