NCC Data Structure

NCC Data Structure

The N2 Logic Node has many built-in data values, mostly used to provide helper functions for various other actions. However, these references may be used by your custom libraries or other functionality as well.

ncc.alarm

Alarm severities sent by the NCC SDK are enumerated values. The NCC API Lua values reflect this.

ncc = {
	alarm = {
		severity = {
			["NOTICE"] = 0,
			["WARNING"] = 1,
			["ERROR"] = 2,
			["CRITICAL"] = 3
		}
	}
}

ncc.profile

Available NCC profile blocks are kept in this data structure, and can be used when calling profile API functions.

ncc = {
	profile = {
		block = {
			["INVALID"] = 0,
			["VPN_NETWORK"] = 1,
			["VPN_STATION"] = 2,
			["CUSTOMER"] = 3,
			["CALL_PLAN"] = 4,
			["GLOBAL"] = 5,
			["CLI_SUBSCRIBER"] = 6,
			["SN"] = 7,
			["ABS_ACCT_REFERENCE"] = 8,
			["CCS_ACCT_REFERENCE"] = 8,
			["APP1"] = 8,
			["APP2"] = 9,
			["APP3"] = 10,
			["APP4"] = 11,
			["APP5"] = 12,
			["CCS_GLOBAL_CONFIG"] = 12,
			["APP6"] = 13,
			["APP7"] = 14,
			["APP8"] = 15,
			["ANY_VALID"] = 16,
			["ANY"] = 16,
			["TEMPORARY_STORAGE"] = 17,
			["TEMPORARY"] = 17,
			["TEMP"] = 17,
			["CALL_CONTEXT"] = 18,
			["CONTEXT"] = 18,
			["CC"] = 18,
			["INCOMING_EXTENSIONS"] = 19,
			["INCOMING"] = 19,
			["OUTGOING_EXTENSIONS"] = 20,
			["OUTGOING"] = 20
		}
	}
}