Android Open Source - restcomm-android-sdk Sip Profile






From Project

Back to project page restcomm-android-sdk.

License

The source code is released under:

GNU General Public License

If you think the Android project restcomm-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.mobicents.restcomm.android.sdk;
//  w  w  w .  j ava2s .c  om
public class SipProfile {
  private  String localIp;
  private  int localPort = 5080;
  private  String transport = "udp";

  private  String remoteIp = "23.23.228.238";
  private  int remotePort = 5060;
  private  String sipUserName;
  private  String sipPassword;

  public  String getLocalIp() {
    return localIp;
  }

  public  void setLocalIp(String localIp) {
    System.out.println("Setting localIp:" + localIp);
    this.localIp = localIp;
  }

  public  int getLocalPort() {
    return localPort;
  }

  public  void setLocalPort(int localPort) {
    System.out.println("Setting localPort:" + localPort);
    this.localPort = localPort;
  }

  public  String getLocalEndpoint() {
    return localIp + ":" + localPort;
  }

  public  String getRemoteIp() {
    return remoteIp;
  }

  public  void setRemoteIp(String remoteIp) {
    System.out.println("Setting remoteIp:" + remoteIp);
    this.remoteIp = remoteIp;
  }

  public  int getRemotePort() {
    return remotePort;
  }

  public  void setRemotePort(int remotePort) {
    System.out.println("Setting remotePort:" + remotePort);
    this.remotePort = remotePort;
  }

  public  String getRemoteEndpoint() {
    return remoteIp + ":" + remotePort;
  }

  public String getSipUserName() {
    return sipUserName;
  }

  public void setSipUserName(String sipUserName) {
    System.out.println("Setting sipUserName:" + sipUserName);
    this.sipUserName = sipUserName;
  }

  public String getSipPassword() {
    return sipPassword;
  }

  public void setSipPassword(String sipPassword) {
    System.out.println("Setting sipPassword:" + sipPassword);
    this.sipPassword = sipPassword;
  }

  public String getTransport() {
    return transport;
  }

  public void setTransport(String transport) {
    System.out.println("Setting transport:" + transport);
    this.transport = transport;
  }

  
}




Java Source Code List

com.example.sipmessagetest.MainActivity.java
com.example.sipmessagetest.SettingsActivity.java
org.mobicents.restcomm.android.sdk.IDevice.java
org.mobicents.restcomm.android.sdk.ISipEventListener.java
org.mobicents.restcomm.android.sdk.ISipManager.java
org.mobicents.restcomm.android.sdk.NotInitializedException.java
org.mobicents.restcomm.android.sdk.SipManagerState.java
org.mobicents.restcomm.android.sdk.SipProfile.java
org.mobicents.restcomm.android.sdk.impl.AccountManagerImpl.java
org.mobicents.restcomm.android.sdk.impl.DeviceImpl.java
org.mobicents.restcomm.android.sdk.impl.SipEvent.java
org.mobicents.restcomm.android.sdk.impl.SipManager.java
org.mobicents.restcomm.android.sdk.impl.SoundManager.java
org.mobicents.restcomm.android.sdk.impl.UserCredentialsImpl.java
org.mobicents.restcomm.android.sdk.impl.sipmessages.Invite.java
org.mobicents.restcomm.android.sdk.impl.sipmessages.Message.java
org.mobicents.restcomm.android.sdk.impl.sipmessages.Register.java
org.mobicents.restcomm.android.sdk.ui.IncomingCall.java