|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject net.sf.asterisk.manager.event.ManagerEvent net.sf.asterisk.manager.event.PeerStatusEvent
public class PeerStatusEvent
A PeerStatusEvent is triggered when a SIP or IAX client attempts to registrer at this asterisk
server.
This event is implemented in channels/chan_iax2.c
and
channels/chan_sip.c
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
PeerStatusEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.String |
getCause()
Returns the cause of a rejection or unregistration. For IAX peers this is set only if the status equals "Rejected". For SIP peers this is set if the status equals "Unregistered" and the peer was unregistered due to an expiration. |
java.lang.String |
getPeer()
Returns the name of the peer that registered. |
java.lang.String |
getPeerStatus()
Returns the registration state. This may be one of Registered Unregistered Reachable Lagged Unreachable Rejected (IAX only) |
java.lang.Integer |
getTime()
Returns the ping time of the client if status equals "Reachable" or "Lagged"; if the status equals "Unreachable" it returns how long the last response took (in ms) for IAX peers or -1 for SIP peers. |
void |
setCause(java.lang.String cause)
Sets the cause of the rejection or unregistration. |
void |
setPeer(java.lang.String peer)
Sets the name of the peer that registered. |
void |
setPeerStatus(java.lang.String peerStatus)
Sets the registration state. |
void |
setTime(java.lang.Integer time)
|
Methods inherited from class net.sf.asterisk.manager.event.ManagerEvent |
---|
getDateReceived, getPrivilege, setDateReceived, setPrivilege, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PeerStatusEvent(java.lang.Object source)
source
- Method Detail |
---|
public java.lang.String getPeer()
public void setPeer(java.lang.String peer)
public java.lang.String getPeerStatus()
public void setPeerStatus(java.lang.String peerStatus)
public java.lang.String getCause()
public void setCause(java.lang.String cause)
public java.lang.Integer getTime()
public void setTime(java.lang.Integer time)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |