All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mobius.software.telco.protocols.diameter.primitives.accounting.ServiceModeEnum Maven / Gradle / Ivy

There is a newer version: 10.0.0-18-java11
Show newest version
package com.mobius.software.telco.protocols.diameter.primitives.accounting;

import java.util.HashMap;
import java.util.Map;

import com.mobius.software.telco.protocols.diameter.primitives.IntegerEnum;

/*
 * Mobius Software LTD, Open Source Cloud Communications
 * Copyright 2023, Mobius Software LTD and individual contributors
 * by the @authors tag.
 *
 * This program is free software: you can redistribute it and/or modify
 * under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see 
 */
/**
*
* @author yulian oifa
*
*/
/*
 * 	7.2.193 Service-Mode AVP
	The Service-Mode AVP (AVP Code 2032) is of type Unsigned32 and provides the mode for CDIV, CB and ECT
	MMTel supplementary services. The following values are defined:

	0 Communication Forwarding Unconditional (CFU)
	1 Communication Forwarding Busy (CFB)
	2 Communication Forwarding No Reply (CRNR)
	3 Communication Forwarding on Not Logged-In (CFNL)
	4 Communication Deflection (CD
	5 Communication Forwarding on Subscriber Not Reachable (CFNRc)
	6 Incoming Call Barring (ICB)
	7 Outgoing Call Barring (OCB)
	8 Anonymous Communication Rejection (ACR)
	9 Blind Transfer
	10 Consultative Transfer
	11 Three-Party (3PTY)
	12 Advice of Charge -S (AoC-S)
	13 Advice of Charge -D (AoC-D)
	14 Advice of Charge -E (AoC-E)

	Values ≥ 1024 are reserved for specific Network/Manufacturer variants 
 */
public enum ServiceModeEnum implements IntegerEnum
{
	CFU(0),CFB(1),CRNR(2),CFNL(3),CD(4),CFNRc(5),ICB(6),OCB(7),ACR(8),BT(9),CT(10),THREEPTY(11),AoC_S(12),AoC_D(13),AoC_E(14);

	private static final Map intToTypeMap = new HashMap();
	static 
	{
	    for (ServiceModeEnum type : ServiceModeEnum.values()) 
	    {
	    	intToTypeMap.put(type.value, type);
	    }
	}

	public static ServiceModeEnum fromInt(Integer value) 
	{
		ServiceModeEnum type = intToTypeMap.get(value);
	    return type;
	}
	
	private int value;
	
	private ServiceModeEnum(int value)
	{
		this.value=value;
	}
	
	public int getValue()
	{
		return value;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy