config

package
v0.0.0-...-983ff77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateManagerMemory = "memory"
	StateManagerRedis  = "redis"
)

Supported values for the State Manager setting

View Source
const (
	// SettingListenUDP is the config key for enabling the UDP protocol
	SettingListenUDP = "listen_udp"
	// SettingListenUDPDefault is the default value for the UDP protocol
	SettingListenUDPDefault = ":9060"

	// SettingListenTCP is the config key for enabling the TCP protocol
	SettingListenTCP = "listen_tcp"
	// SettingListenTCPDefault is the default value for the TCP protocol
	SettingListenTCPDefault = ":9060"

	// SettingMessageBusURI is the config key for the message bus URI
	SettingMessageBusURI = "message_bus_uri"
	// SettingMessageBusURIDefault is the default value for the message bus URI
	SettingMessageBusURIDefault = "amqp://user:password@localhost:5672//"

	// SettingStateManager is the config key for the state manager
	SettingStateManager = "state_manager"
	// SettingStateManagerDefault is the default value for the state manager
	SettingStateManagerDefault = StateManagerMemory

	// SettingRedisAddress is the config key for the redis address
	SettingRedisAddress = "redis_address"
	// SettingRedisAddressDefault is the default value for the redis address
	SettingRedisAddressDefault = "localhost:6379"

	// SettingRedisPassword is the config key for the redis password
	SettingRedisPassword = "redis_password"

	// SettingRedisDb is the config key for the redis database
	SettingRedisDb = "redis_db"
	// SettingRedisDbDefault is the default value for the redis database
	SettingRedisDbDefault = 0

	// SettingTenant is the config key for the tenant identifier
	SettingTenant = "tenant"
	// SettingTenantDefault is the default value for the tenant
	SettingTenantDefault = "default"

	// SettingSIPHeaderCaller is the SIP header used to extract the identifier of the caller
	SettingSIPHeaderCaller = "sip_header_caller"

	// SettingSIPHeaderCallee is the SIP header used to extract the identifier of the callee
	SettingSIPHeaderCallee = "sip_header_callee"

	// SettingSIPHeaderHistoryInfo is the SIP header used to extract the identifier of the caller on call forwarding
	SettingSIPHeaderHistoryInfo = "sip_header_history_info"
	// SettingSIPHeaderHistoryInfoDefault is the default value for sip_header_history_info
	SettingSIPHeaderHistoryInfoDefault = "History-Info"

	// SettingSIPHeaderHistoryInfoIndex is the index of the SIP header used to extract the identifier of the caller on call forwarding
	SettingSIPHeaderHistoryInfoIndex = "sip_header_history_info_index"
	// SettingSIPHeaderHistoryInfoIndexDefault is the default value for sip_header_history_info_index
	SettingSIPHeaderHistoryInfoIndexDefault = 1

	// SettingSIPLocalDomains is a comma separated list of local domains
	SettingSIPLocalDomains = "sip_local_domains"

	// SettingAccountTagMatchRegexp is a regular expression to extract the sip account
	SettingAccountTagMatchRegexp = "account_tag_match_regexp"

	// SettingProductTag is the product tag
	SettingProductTag = "product_tag"
	// SettingProductTagDefault is the product tag default value
	SettingProductTagDefault = "VOICE"

	// SettingTransactionTags is a comma separated list of transaction tags
	SettingTransactionTags = "transaction_tags"
)

Variables

Functions

func Init

func Init(configPath string) error

Init initializes the configuration from the given config file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL