1 package javax.sip; 2 3 import java.util.Collection; 4 import java.util.Iterator; 5 import javax.sip.address.Router; 6 7 public interface SipStack { 8 /** 9 * Deprecated. Use {@link #createListeningPoint(String, int, String)} 10 * instead. 11 */ 12 ListeningPoint createListeningPoint(int port, String transport) 13 throws TransportNotSupportedException, InvalidArgumentException; 14 ListeningPoint createListeningPoint(String ipAddress, int port, 15 String transport) throws TransportNotSupportedException, 16 InvalidArgumentException; 17 void deleteListeningPoint(ListeningPoint listeningPoint) 18 throws ObjectInUseException; 19 20 SipProvider createSipProvider(ListeningPoint listeningPoint) 21 throws ObjectInUseException; 22 void deleteSipProvider(SipProvider sipProvider) throws ObjectInUseException; 23 24 Collection getDialogs(); 25 String getIPAddress(); 26 Iterator getListeningPoints(); 27 Router getRouter(); 28 Iterator getSipProviders(); 29 String getStackName(); 30 31 /** 32 * @deprecated 33 * Use {@link ServerTransaction#enableRetransmissionAlerts()} to enable 34 * retransmission alerts instead. 35 */ 36 boolean isRetransmissionFilterActive(); 37 38 void start() throws ProviderDoesNotExistException, SipException; 39 void stop(); 40 } 41 42