Loading voip/java/android/net/sip/SipProfile.java +1 −1 Original line number Diff line number Diff line Loading @@ -177,7 +177,7 @@ public class SipProfile implements Parcelable, Serializable, Cloneable { */ public Builder setPort(int port) throws IllegalArgumentException { if ((port > 65535) || (port < 1000)) { throw new IllegalArgumentException("incorrect port arugment"); throw new IllegalArgumentException("incorrect port arugment: " + port); } mProfile.mPort = port; return this; Loading voip/java/com/android/server/sip/SipSessionGroup.java +6 −4 Original line number Diff line number Diff line Loading @@ -1333,10 +1333,12 @@ class SipSessionGroup implements SipListener { SipURI uri = (SipURI) address.getURI(); String username = uri.getUser(); if (username == null) username = ANONYMOUS; return new SipProfile.Builder(username, uri.getHost()) .setPort(uri.getPort()) .setDisplayName(address.getDisplayName()) .build(); int port = uri.getPort(); SipProfile.Builder builder = new SipProfile.Builder(username, uri.getHost()) .setDisplayName(address.getDisplayName()); if (port > 0) builder.setPort(port); return builder.build(); } catch (IllegalArgumentException e) { throw new SipException("createPeerProfile()", e); } catch (ParseException e) { Loading Loading
voip/java/android/net/sip/SipProfile.java +1 −1 Original line number Diff line number Diff line Loading @@ -177,7 +177,7 @@ public class SipProfile implements Parcelable, Serializable, Cloneable { */ public Builder setPort(int port) throws IllegalArgumentException { if ((port > 65535) || (port < 1000)) { throw new IllegalArgumentException("incorrect port arugment"); throw new IllegalArgumentException("incorrect port arugment: " + port); } mProfile.mPort = port; return this; Loading
voip/java/com/android/server/sip/SipSessionGroup.java +6 −4 Original line number Diff line number Diff line Loading @@ -1333,10 +1333,12 @@ class SipSessionGroup implements SipListener { SipURI uri = (SipURI) address.getURI(); String username = uri.getUser(); if (username == null) username = ANONYMOUS; return new SipProfile.Builder(username, uri.getHost()) .setPort(uri.getPort()) .setDisplayName(address.getDisplayName()) .build(); int port = uri.getPort(); SipProfile.Builder builder = new SipProfile.Builder(username, uri.getHost()) .setDisplayName(address.getDisplayName()); if (port > 0) builder.setPort(port); return builder.build(); } catch (IllegalArgumentException e) { throw new SipException("createPeerProfile()", e); } catch (ParseException e) { Loading