public class RegistryEvent extends ManagerEvent
This event is implemented in channels/chan_iax2.c
and
channels/chan_sip.c
Modifier and Type | Field and Description |
---|---|
static String |
STATUS_AUTH_SENT |
static String |
STATUS_NO_AUTHENTICATION |
static String |
STATUS_REGISTERED |
static String |
STATUS_REJECTED |
static String |
STATUS_REQUEST_SENT |
static String |
STATUS_TIMEOUT |
static String |
STATUS_UNREACHABLE |
static String |
STATUS_UNREGISTERED |
source
Constructor and Description |
---|
RegistryEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
String |
getCause()
Returns the cause of a rejected registration.
|
String |
getChannel()
Deprecated.
|
String |
getChannelDriver()
Deprecated.
|
String |
getChannelType()
Returns the type of channel that is registered, that is "IAX2" for an IAX2
channel or "SIP" for a SIP channel.
|
String |
getDomain()
Returns the domain or host name of the SIP or IAX2 server.
|
String |
getStatus()
Returns the registration state.
|
String |
getUsername()
Returns the username used for registration.
|
void |
setCause(String cause)
Sets the cause of a rejected registration.
|
void |
setChannel(String channel)
Deprecated.
|
void |
setChannelDriver(String channelDriver)
Deprecated.
|
void |
setChannelType(String channelType)
Sets the type of channel that is registered.
|
void |
setDomain(String domain)
Sets the domain or host name of the SIP or IAX2 server.
|
void |
setStatus(String status)
Sets the registration state.
|
void |
setUser(String username)
Deprecated.
Please do not use this method it is a workaround for Asterisk
1.0.x servers. See Asterisk bug 4916.
|
void |
setUsername(String username)
Sets the username used for registration.
|
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, toString
getSource
public static final String STATUS_REGISTERED
public static final String STATUS_UNREGISTERED
public static final String STATUS_REQUEST_SENT
public static final String STATUS_AUTH_SENT
public static final String STATUS_REJECTED
public static final String STATUS_TIMEOUT
public static final String STATUS_NO_AUTHENTICATION
public static final String STATUS_UNREACHABLE
public RegistryEvent(Object source)
source
- public String getChannelType()
public void setChannelType(String channelType)
channelType
- the type of channel that is registered.@Deprecated public String getChannelDriver()
getChannelType()
@Deprecated public void setChannelDriver(String channelDriver)
setChannelType(String)
@Deprecated public String getChannel()
getChannelType()
@Deprecated public void setChannel(String channel)
setChannelType(String)
public String getDomain()
This is the host part used in the register
lines in
iax.conf
and sip.conf
.
public void setDomain(String domain)
domain
- the domain or host name of the SIP or IAX2 server.public String getUsername()
SIP send the username in case of a registration timeout, IAX2 in case of
a registration failure. Otherwise the username is null
.
public void setUsername(String username)
username
- the username used for registration.@Deprecated public void setUser(String username)
setUsername(String)
public String getStatus()
For sip this may be one of (not sure if all of these are exposed via the manager api, at least "Registered" and "Timeout" are used though)
public void setStatus(String status)
status
- the registration state.public String getCause()
null
if the cause is unknown.public void setCause(String cause)
cause
- the cause of a rejected registration.Copyright © 2004–2016. All rights reserved.