public class PeerEntryEvent extends ResponseEvent
SipPeersAction
,
SipShowPeerAction
or
IaxPeerListAction
and contains
information about a SIP or IAX peer.
It is implemented in channels/chan_sip.c
and
channels/chan_iax.c
Modifier and Type | Field and Description |
---|---|
static String |
CHANNEL_TYPE_IAX |
static String |
CHANNEL_TYPE_SIP |
actionId
callerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, priority
source
Constructor and Description |
---|
PeerEntryEvent(Object source)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccountcode() |
Boolean |
getAcl() |
String |
getAutoComedia() |
String |
getAutoForcerport() |
String |
getChannelType()
Returns whether this event represents a SIP or an IAX peer.
|
String |
getChanObjectType()
For SIP peers this is either "peer" or "user".
|
String |
getComedia() |
String |
getDescription() |
Boolean |
getDynamic() |
String |
getEncryption() |
Boolean |
getForceRport()
Returns whether the nat option is set to
force_rport .Available since Asterisk 1.8 |
String |
getIpAddress()
Returns the IP address of the peer.
|
Integer |
getIpPort()
Deprecated.
since 1.0.0, use
getPort() instead. |
Boolean |
getNatSupport() |
String |
getObjectName() |
String |
getObjectUserName() |
Integer |
getPort()
Returns the port of the peer.
|
String |
getRealtimeDevice()
Available since Asterisk 1.4.
|
String |
getStatus()
Returns the status of this peer.
|
Boolean |
getTextSupport()
Returns whether the peer supports text messages.
|
Boolean |
getTrunk()
Returns whether to use IAX2 trunking with this peer.
|
Boolean |
getVideoSupport()
Available since Asterisk 1.4.
|
void |
setAccountcode(String accountcode) |
void |
setAcl(Boolean acl) |
void |
setAutoComedia(String autoComedia) |
void |
setAutoForcerport(String autoForcerport) |
void |
setChannelType(String channelType) |
void |
setChanObjectType(String chanObjectType) |
void |
setComedia(String comedia) |
void |
setDescription(String description) |
void |
setDynamic(Boolean dynamic) |
void |
setEncryption(String encryption) |
void |
setForceRport(Boolean forceRport) |
void |
setIpAddress(String ipAddress)
Sets the IP address of the peer.
|
void |
setIpPort(Integer ipPort) |
void |
setNatSupport(Boolean natSupport) |
void |
setObjectName(String objectName) |
void |
setObjectUserName(String objectUserName) |
void |
setPort(Integer port) |
void |
setRealtimeDevice(String realtimeDevice)
Available since Asterisk 1.4.
|
void |
setStatus(String status)
Sets the status of this peer.
|
void |
setTextSupport(Boolean textSupport) |
void |
setTrunk(Boolean trunk) |
void |
setVideoSupport(Boolean videoSupport)
Available since Asterisk 1.4.
|
getActionId, getInternalActionId, setActionId, setInternalActionId
appendPropertyIfNotNull, getCallerIdName, getCallerIdNum, getChannelState, getChannelStateDesc, getConnectedLineName, getConnectedLineNum, getContext, getDateReceived, getExten, getFile, getFunc, getLine, getPriority, getPrivilege, getSequenceNumber, getServer, getSystemName, getTimestamp, setCallerIdName, setCallerIdNum, setChannelState, setChannelStateDesc, setConnectedLineName, setConnectedLineNum, setContext, setDateReceived, setExten, setFile, setFunc, setLine, setPriority, setPrivilege, setSequenceNumber, setServer, setSystemName, setTimestamp, toString
getSource
public static final String CHANNEL_TYPE_SIP
public static final String CHANNEL_TYPE_IAX
public PeerEntryEvent(Object source)
source
- public String getChannelType()
CHANNEL_TYPE_SIP
,
CHANNEL_TYPE_IAX
public void setChannelType(String channelType)
public String getObjectName()
public void setObjectName(String objectName)
public String getObjectUserName()
public void setObjectUserName(String objectUserName)
public String getChanObjectType()
public void setChanObjectType(String chanObjectType)
public String getIpAddress()
public void setIpAddress(String ipAddress)
ipAddress
- the IP address of the peer.@Deprecated public Integer getIpPort()
getPort()
instead.public void setIpPort(Integer ipPort)
public Integer getPort()
public void setPort(Integer port)
public Boolean getDynamic()
public void setDynamic(Boolean dynamic)
public Boolean getNatSupport()
public void setNatSupport(Boolean natSupport)
public Boolean getForceRport()
force_rport
.true
if the nat option is set to
force_rport
, false
otherwise or
null
if not supported by Asterisk.public void setForceRport(Boolean forceRport)
public Boolean getVideoSupport()
public void setVideoSupport(Boolean videoSupport)
public Boolean getTextSupport()
Available since Asterisk 1.6.
true
if the peer supports text messages,
false
otherwise or null
if the property
is not set (i.e. for Asterisk prior to 1.6).public void setTextSupport(Boolean textSupport)
public Boolean getAcl()
public void setAcl(Boolean acl)
public String getStatus()
For SIP peers this is one of:
public void setStatus(String status)
status
- the status of this peer.public String getRealtimeDevice()
public void setRealtimeDevice(String realtimeDevice)
public Boolean getTrunk()
Available since Asterisk 1.6.
true
if trunking is used, false
if not
or null
if not set.public void setTrunk(Boolean trunk)
public String getEncryption()
public void setEncryption(String encryption)
public String getAutoComedia()
public void setAutoComedia(String autoComedia)
autoComedia
- the autoComedia to setpublic String getAutoForcerport()
public void setAutoForcerport(String autoForcerport)
autoForcerport
- the autoForcerport to setpublic String getComedia()
public void setComedia(String comedia)
comedia
- the comedia to setpublic String getDescription()
public void setDescription(String description)
the
- description to setpublic String getAccountcode()
public void setAccountcode(String accountcode)
the
- accountcode to setCopyright © 2004–2022. All rights reserved.