public class SipShowPeerAction extends AbstractManagerAction
The result is returned in the response received in reply to this action.
Use ManagerResponse.getAttribute(String)
to retrieve the properties. Consider using SipPeersAction
instead.
Available since Asterisk 1.2
SipPeersAction
,
SipShowPeerResponse
,
Serialized FormConstructor and Description |
---|
SipShowPeerAction()
Creates a new empty SipShowPeerAction.
|
SipShowPeerAction(String peer)
Creates a new SipShowPeerAction that requests the details about the given
SIP peer.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Returns the name of the action for example "Hangup".
|
String |
getPeer()
Returns the name of the peer to retrieve.
|
void |
setPeer(String peer)
Sets the name of the peer to retrieve.
|
getActionId, setActionId, toString
public SipShowPeerAction()
public SipShowPeerAction(String peer)
This is just the peer name without the channel type prefix. For example if your channel is called "SIP/john", the peer name is just "john".
peer
- the name of the SIP peer to retrieve details for.public String getAction()
ManagerAction
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public String getPeer()
This parameter is mandatory.
public void setPeer(String peer)
This is just the peer name without the channel type prefix. For example if your channel is called "SIP/john", the peer name is just "john".
This parameter is mandatory.
peer
- the name of the peer to retrieve without the channel type prefix.Copyright © 2004–2016. All rights reserved.