[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/sip/

emcho at dev.java.net emcho at dev.java.net
Tue May 18 11:23:49 CEST 2004


User: emcho   
Date: 04/05/18 02:23:49

Modified:
 /sip-communicator/src/net/java/sip/communicator/sip/
  SipManager.java

Log:
 Fixed type errors reported by Luca Bincoletto

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/sip/
===============================================================

File [changed]: SipManager.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/sip/SipManager.java?r1=1.25&r2=1.26
Delta lines:  +11 -6
--------------------
--- SipManager.java	10 May 2004 21:16:49 -0000	1.25
+++ SipManager.java	18 May 2004 09:23:46 -0000	1.26
@@ -271,9 +271,9 @@
                 messageFactory = sipFactory.createMessageFactory();
             }
             catch (PeerUnavailableException ex) {
-                console.error("Could not could not create factories!", ex);
+                console.error("Could not create factories!", ex);
                 throw new CommunicationsException(
-                    "Could not could not create factories!",
+                    "Could not create factories!",
                     ex
                     );
             }
@@ -282,9 +282,9 @@
                 sipStack = sipFactory.createSipStack(System.getProperties());
             }
             catch (PeerUnavailableException ex) {
-                console.error("Could not could not create SipStack!", ex);
+                console.error("Could not create SipStack!", ex);
                 throw new CommunicationsException(
-                    "Could not could not create SipStack!\n"
+                    "Could not create SipStack!\n"
                     +
                     "A possible reason is an incorrect OUTBOUND_PROXY property\n"
                     + "(Syntax:<proxy_address:port/transport>)",
@@ -333,9 +333,9 @@
                 sipProvider = sipStack.createSipProvider(listeningPoint);
             }
             catch (ObjectInUseException ex) {
-                console.error("Could not could not create factories!\n", ex);
+                console.error("Could not create factories!\n", ex);
                 throw new CommunicationsException(
-                    "Could not could not create factories!\n", ex);
+                    "Could not create factories!\n", ex);
             }
             try {
                 sipProvider.addSipListener(this);
@@ -585,6 +585,11 @@
 
             UserCredentials initialCredentials = securityAuthority.obtainCredentials(realm,
                 defaultCredentials);
+            //put the returned user name in the properties file
+            //so that it appears as a default one next time user is prompted for pass
+            PropertiesDepot.setProperty("net.java.sip.communicator.sip.USER_NAME",
+                                        initialCredentials.getUserName()) ;
+            PropertiesDepot.storeProperties();
 
             register(initialCredentials.getUserName());
 




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net




More information about the commits mailing list