cdrs

package
v0.9.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2014 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Freswitch event property names
	FS_CDR_MAP      = "variables"
	FS_DIRECTION    = "direction"
	FS_SUBJECT      = "cgr_subject"
	FS_ACCOUNT      = "cgr_account"
	FS_DESTINATION  = "cgr_destination"
	FS_REQTYPE      = "cgr_reqtype" //prepaid or postpaid
	FS_TOR          = "cgr_tor"
	FS_UUID         = "uuid" // -Unique ID for this call leg
	FS_CSTMID       = "cgr_tenant"
	FS_CALL_DEST_NR = "dialed_extension"
	FS_PARK_TIME    = "start_epoch"
	FS_ANSWER_TIME  = "answer_epoch"
	FS_HANGUP_TIME  = "end_epoch"
	FS_DURATION     = "billsec"
	FS_USERNAME     = "user_name"
	FS_IP           = "sip_local_network_addr"
	FS_CDR_SOURCE   = "freeswitch_json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CDRS

type CDRS struct{}

func (*CDRS) StartCapturingCDRs

func (cdrs *CDRS) StartCapturingCDRs()

type FSCdr

type FSCdr map[string]string

func (FSCdr) AsRatedCdr

func (fsCdr FSCdr) AsRatedCdr(runId, reqTypeFld, directionFld, tenantFld, torFld, accountFld, subjectFld, destFld, answerTimeFld, durationFld string, extraFlds []string, fieldsMandatory bool) (*utils.RatedCDR, error)

Used in extra mediation

func (FSCdr) GetAccId

func (fsCdr FSCdr) GetAccId() string

func (FSCdr) GetAccount

func (fsCdr FSCdr) GetAccount() string

func (FSCdr) GetAnswerTime

func (fsCdr FSCdr) GetAnswerTime() (t time.Time, err error)

func (FSCdr) GetCdrHost

func (fsCdr FSCdr) GetCdrHost() string

func (FSCdr) GetCdrSource

func (fsCdr FSCdr) GetCdrSource() string

func (FSCdr) GetCgrId

func (fsCdr FSCdr) GetCgrId() string

func (FSCdr) GetDestination

func (fsCdr FSCdr) GetDestination() string

Charging destination number

func (FSCdr) GetDirection

func (fsCdr FSCdr) GetDirection() string

func (FSCdr) GetDuration

func (fsCdr FSCdr) GetDuration() time.Duration

Extracts duration as considered by the telecom switch

func (FSCdr) GetExtraFields

func (fsCdr FSCdr) GetExtraFields() map[string]string

func (FSCdr) GetHangupTime

func (fsCdr FSCdr) GetHangupTime() (t time.Time, err error)

func (FSCdr) GetReqType

func (fsCdr FSCdr) GetReqType() string

func (FSCdr) GetSubject

func (fsCdr FSCdr) GetSubject() string

func (FSCdr) GetTOR

func (fsCdr FSCdr) GetTOR() string

func (FSCdr) GetTenant

func (fsCdr FSCdr) GetTenant() string

func (FSCdr) New

func (fsCdr FSCdr) New(body []byte) (utils.RawCDR, error)

func (FSCdr) Restore

func (fsCdr FSCdr) Restore(input string) error

func (FSCdr) Store

func (fsCdr FSCdr) Store() (result string, err error)

Jump to

Keyboard shortcuts

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