Documentation ¶
Index ¶
- Constants
- type CDRS
- type FSCdr
- func (fsCdr FSCdr) AsRatedCdr(...) (*utils.RatedCDR, error)
- func (fsCdr FSCdr) GetAccId() string
- func (fsCdr FSCdr) GetAccount() string
- func (fsCdr FSCdr) GetAnswerTime() (t time.Time, err error)
- func (fsCdr FSCdr) GetCdrHost() string
- func (fsCdr FSCdr) GetCdrSource() string
- func (fsCdr FSCdr) GetCgrId() string
- func (fsCdr FSCdr) GetDestination() string
- func (fsCdr FSCdr) GetDirection() string
- func (fsCdr FSCdr) GetDuration() time.Duration
- func (fsCdr FSCdr) GetExtraFields() map[string]string
- func (fsCdr FSCdr) GetHangupTime() (t time.Time, err error)
- func (fsCdr FSCdr) GetReqType() string
- func (fsCdr FSCdr) GetSubject() string
- func (fsCdr FSCdr) GetTOR() string
- func (fsCdr FSCdr) GetTenant() string
- func (fsCdr FSCdr) New(body []byte) (utils.RawCDR, error)
- func (fsCdr FSCdr) Restore(input string) error
- func (fsCdr FSCdr) Store() (result string, err error)
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 ¶
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) GetAccount ¶
func (FSCdr) GetCdrHost ¶
func (FSCdr) GetCdrSource ¶
func (FSCdr) GetDestination ¶
Charging destination number
func (FSCdr) GetDirection ¶
func (FSCdr) GetDuration ¶
Extracts duration as considered by the telecom switch
func (FSCdr) GetExtraFields ¶
func (FSCdr) GetReqType ¶
func (FSCdr) GetSubject ¶
Click to show internal directories.
Click to hide internal directories.