public class ChannelReloadEvent extends ManagerEvent
channels/chan_sip.c
triggers the channel reload
event when the SIP configuration is reloaded from sip.conf because the 'sip
reload' command was issued at the Manager interface, the CLI, or for another
reason.
channels/chan_sip.c
Modifier and Type | Field and Description |
---|---|
static String |
REASON_CLI_RELOAD
The channel module has been reloaded from the command line.
|
static String |
REASON_LOAD
The channel module has been loaded for the first time.
|
static String |
REASON_MANAGER_RELOAD
The channel module has been reloaded due to a manager action.
|
static String |
REASON_RELOAD
The channel module has been reloaded.
|
callerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, priority
source
Constructor and Description |
---|
ChannelReloadEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
String |
getChannel()
Deprecated.
use
getChannelType() instead. |
String |
getChannelType()
Returns the type of channel that was reloaded.
|
Integer |
getPeerCount()
Returns the number of peers defined during the configuration of this
channel (e.g.
|
Integer |
getRegistryCount() |
String |
getReloadReason()
Returns the reason that this channel was reloaded as received from Asterisk, for
example "CLIRELOAD (Channel module reload by CLI command)".
|
String |
getReloadReasonCode()
Returns the reason that this channel was reloaded.
|
String |
getReloadReasonDescription()
Returns the reason that this channel was reloaded as a human readable descriptive
string, for example "Channel module reload by CLI command".
|
Integer |
getUserCount() |
void |
setChannel(String channel) |
void |
setChannelType(String channelType) |
void |
setPeerCount(Integer peerCount) |
void |
setRegistryCount(Integer registryCount) |
void |
setReloadReason(String reloadReason)
Sets the reason that this channel was reloaded, for
example "CLIRELOAD (Channel module reload by CLI command)".
|
void |
setUserCount(Integer userCount) |
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 REASON_LOAD
public static final String REASON_RELOAD
public static final String REASON_CLI_RELOAD
public static final String REASON_MANAGER_RELOAD
public ChannelReloadEvent(Object source)
source
- public String getChannelType()
channels/chan_sip.c
, this would be "SIP".public void setChannelType(String channelType)
@Deprecated public String getChannel()
getChannelType()
instead.channels/chan_sip.c
, this would be "SIP"public void setChannel(String channel)
public Integer getPeerCount()
public void setPeerCount(Integer peerCount)
peerCount
- the number of peers defined during the configuration of
this channel (e.g. sip peer definitions)public Integer getRegistryCount()
public void setRegistryCount(Integer registryCount)
registryCount
- the number of registrations with other channels
(e.g. registrations with other sip proxies)public String getReloadReason()
getReloadReasonCode()
,
getReloadReasonDescription()
public void setReloadReason(String reloadReason)
reloadReason
- the reason that this channel was reloadedpublic String getReloadReasonCode()
Only the code part of the reason is returned. This is one of
REASON_CLI_RELOAD
,
REASON_LOAD
,
REASON_RELOAD
,
REASON_MANAGER_RELOAD
public String getReloadReasonDescription()
public Integer getUserCount()
public void setUserCount(Integer userCount)
userCount
- the number of users defined during the configuration of
this channel (e.g. sip user definitions)Copyright © 2004–2017. All rights reserved.