Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package gov.nist.javax.sip;
  
  
 
SIP Stack extensions to be added to the next spec revision. Only these may be safely used in the interim between now and the next release. SipStackImpl implements this interface. The following new stack initialization flags are defined (not the gov.nist prefix will be dropped when the spec is updated):
  • gov.nist.javax.sip.AUTOMATIC_DIALOG_ERROR_HANDLING
  • gov.nist.javax.sip.IS_BACK_TO_BACK_USER_AGENT
  • gov.nist.javax.sip.DELIVER_TERMINATED_EVENT_FOR_NULL_DIALOG
  • gov.nist.javax.sip.MAX_FORK_TIME_SECONDS

Author(s):
M. Ranganathan
 
 public interface SipStackExt extends SipStack {

    
Get the collection of dialogs currently in the Dialog table. This is useful for debugging purposes.
 
     public Collection<DialoggetDialogs();

    
Get the ReferedTo dialog in the Replaces header.

Returns:
Dialog object matching the Replaces header, provided it is in an appropriate state to be replaced, null otherwise
Since:
2.0
 
     public Dialog getReplacesDialog(ReplacesHeader replacesHeader);

    
Get the authentication helper.

Parameters:
accountManager -- account manager (for fetching credentials).
headerFactory -- header factory.
Returns:
- the authentication helper which can be used for generating the appropriate headers for handling authentication challenges for user agents.
Since:
2.0
 
             HeaderFactory headerFactory);

    
Get the authentication helper.

Parameters:
accountManager -- account manager (for fetching credentials).
headerFactory -- header factory.
Returns:
- the authentication helper which can be used for generating the appropriate headers for handling authentication challenges for user agents.
Since:
2.0
 
             HeaderFactory headerFactory);

    
Set the address resolution interface. The address resolver allows you to register custom lookup schemes ( for example DNS SRV lookup ) that are not directly supported by the JDK.

Parameters:
addressResolver -- the address resolver to set.
Since:
2.0
 
     public void setAddressResolver(AddressResolver addressResolver);

    
Get the dialog in the Join header.

Returns:
Dialog object matching the Join header, provided it is in an appropriate state to be replaced, null otherwise
Since:
2.0
    public Dialog getJoinDialog(JoinHeader joinHeader);

    
Set the list of cipher suites supported by the stack. A stack can have only one set of suites. These are not validated against the supported cipher suites of the java runtime, so specifying a cipher here does not guarantee that it will work.
The stack has a default cipher suite of:
  • TLS_RSA_WITH_AES_128_CBC_SHA
  • SSL_RSA_WITH_3DES_EDE_CBC_SHA
  • TLS_DH_anon_WITH_AES_128_CBC_SHA
  • SSL_DH_anon_WITH_3DES_EDE_CBC_SHA
NOTE: This function must be called before adding a TLS listener

Parameters:
newCipherSuites -- The new set of ciphers to support.
Since:
2.0
    public void setEnabledCipherSuites(String[] newCipherSuites);

    
Creates and binds, if necessary, a TCP socket connected to the specified destination address and port and then returns its local address.

Parameters:
dst the destination address that the socket would need to connect to.
dstPort the port number that the connection would be established with.
localAddress the address that we would like to bind on (null for the "any" address).
localPort the port that we'd like our socket to bind to (0 for a random port).
Returns:
the local SocketAddress that this handler would use when connecting to the specified destination address and port.
Throws:
java.io.IOException if we fail binding the socket
Since:
2.0
    public SocketAddress getLocalAddressForTcpDst(InetAddress dstint dstPort,
                    InetAddress localAddressint localPort)
        throws IOException;

    
Creates and binds, if necessary, a TLS socket connected to the specified destination address and port and then returns its local address.

Parameters:
dst the destination address that the socket would need to connect to.
dstPort the port number that the connection would be established with.
localAddress the address that we would like to bind on (null for the "any" address).
Returns:
the local SocketAddress that this handler would use when connecting to the specified destination address and port.
Throws:
java.io.IOException if we fail binding the socket
Since:
2.0
    public SocketAddress getLocalAddressForTlsDst(InetAddress dstint dstPort,
                    InetAddress localAddress)
        throws IOException;
New to GrepCode? Check out our FAQ X