rs_get_call_data {ringostat}R Documentation

Get calls data

Description

Get calls data

Usage

rs_get_call_data(
  date_from = Sys.Date() - 14,
  date_to = Sys.time(),
  fields = c("caller", "dst", "pool_name", "disposition", "calldate", "category_mark",
    "duration", "call_type", "waittime", "billsec", "connected_with", "call_counter",
    "proper_flag", "repeated_flag", "utm_source", "utm_medium", "utm_campaign",
    "utm_content", "utm_term", "uniqueid", "category_number", "employee_number",
    "employee_mark", "client_id", "remote_ip", "refferrer", "landing", "recording",
    "recording_wav", "call_card", "additional_number", "has_recording", "scheme_name",
    "duration_ms", "department", 
     "caller_number"),
  filters = NULL,
  merge = 0,
  order = NULL
)

Arguments

date_from

Start date

date_to

End date

fields

List of fields for selection from the call log, see link

filters

Filters for selecting data that meet a condition by field value

merge

Aggregating the sample by the caller's number: 0 - do not combine; 1 - combine every 24 hours; 2 - combine for all time;

order

Sorting a selection

Value

tibble with calls data

Examples

## Not run: 
calls <- rs_get_call_data(
    date_from = "2021-09-01",
    date_to = "2021-09-30",
    fields = c('caller', 'utm_campaign'),
    filters = "utm_campaign=brand"
)

## End(Not run)


[Package ringostat version 0.1.5 Index]