Android Open Source - SipgateInfo E Call Status

From Project

Back to project page SipgateInfo.


The source code is released under:

GNU General Public License

If you think the Android project SipgateInfo 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 net.skweez.sipgate.api;
/*from   w w w  .  j a  va 2s.  c  o m*/
public enum ECallStatus {

  public static ECallStatus fromString(String status) {
    if (status.equals("accepted")) {
      return ACCEPTED;
    } else if (status.equals("outgoing")) {
      return OUTGOING;
    } else if (status.equals("missed")) {
      return MISSED;
    } else {
      throw new IllegalArgumentException();

Java Source Code List