cdr

package
v0.0.0-...-70e9e40 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2019 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addresses

func Addresses() (string, string)

random Addresses IPV4 in a collection

func CdrTimers

func CdrTimers(c int) (int, int)

generate ms_duration, setuptime based on sip_code

func PhoneNumberBrazil

func PhoneNumberBrazil() string

generate brazilian phone number on default E164

func ResponseCode

func ResponseCode() string

random ResponseCode in a collection

Types

type CdrValues

type CdrValues struct {
	AcctStatusType int
	ServiceType    int
	ResponseCode   string
	Method         string
	EventTimestamp time.Time
	FromTag        string
	ToTag          string
	AcctSessionId  string
	MsDuration     int
	SetupTime      int
	CallerId       string
	CalleeId       string
	DstNumber      string
}

func FillCdr

func FillCdr() *CdrValues

create and set all struct CdrValues with generated data

Jump to

Keyboard shortcuts

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