org.mitre.jsip
Clase SipRegister

public class SipRegister
extends Object
implements PollTask
Detalle del constructor

SipRegister

public SipRegister(SipUser user,
                   SipUri serveruri)
SipRegister
Parameters:
user -
serveruri -

Detalle del método

getRegisterState

public int getRegisterState()
getRegisterState
Returns:
RegisterState

getAuthenticationType

public int getAuthenticationType()
getAuthenticationType
Returns:
AuthType

setAuthentication

public void setAuthentication(SipResponseMessage respMessage)
Sets the authentication required as detailed in a response message

getServerUri

public SipUri getServerUri()
getServerUri
Returns:
SipUri

setServerUri

public void setServerUri(SipUri newregserver)
setServerUri
Parameters:
newregserver -

requestRegister

public void requestRegister(boolean clear)
Request registration using already provided username and password

requestRegister

public void requestRegister(String password)
Requests registration from the proxy.

requestClearRegistration

public void requestClearRegistration()
Disable a registration to a Registrar server. Does this by sending a REGISTER with "Expires: 0" to the server

getRegisterCall

public SipCall getRegisterCall()
getRegisterCall
Returns:
SipCall *

getAuthRealm

public String getAuthRealm()
getAuthRealm
Returns:
String

getProxyAuthRealm

public String getProxyAuthRealm()
getProxyAuthRealm
Returns:
String

activate

public void activate()
PollTask interface implementation

localStatusUpdated

private void localStatusUpdated(SipResponseMessage resp)
Update the register status depending on the response message received

localStatusUpdated

private void localStatusUpdated()
localStatusUpdated