getAccountCDRs()

  • This application is used to get CDRs of an account.
  • Only CDRs of account that belongs to authenticated customer can be fetched.
  • Only CDRs for the last hour and for all accounts are returned unless specified precisely.


** The application supports trusted mode and i_customer parameter should be supplied in this case.


Parameters:

  • i_account - i_account of account. Integer. Optional
  • offset - skip fist offset CDRs. Integer. Optional.
  • limit - return only limit CDRs. Integer. Optional.
  • start_date - fetch CDRs from start_date, format is '%H:%M:%S.000 GMT %a %b %d %Y' (e.g. 09:57:29.000 GMT Wed Mar 18 2026). String. Optional.
  • end_date - fetch CDRs till end_date, format is '%H:%M:%S.000 GMT %a %b %d %Y' (e.g. 09:57:29.000 GMT Wed Mar 18 2026). String. Optional.
  • cli - fetch CDRs with CLI (after translation rules applied) like cli. String. Optional.
  • cld - fetch CDRs with CLD (after translation rules applied) like cld. String. Optional.
  • i_cdr - return only specified CDR. String. Optional.
  • type - type of fetched CDRs. String. Optional. Possible values:
    • non_zero_and_errors - return only non-zero duration and errors CDRs (default type)
    • non_zero - return only non-zero duration CDRs
    • all - return all CDRs
    • complete - return only CDRs of completed calls
    • incomplete - return only CDRs of incomplete calls
    • errors - return errors CDRs

Returns:

  • cdrs - an array containing structures:
    • accessibility_cost - Cost according to accessibility surcharges configured in the account's service plan. Double.
    • area_name - Area name of the prefix. String.
    • billed_duration - Billed duration of the call in seconds. Integer.
    • call_id - Call-ID of the call. String.
    • cld - CLD of the call after incoming translation rules have been applied. String.
    • cld_in - CLD of the call before any translation has been applied. String.
    • cli - CLI of the call after incoming translation rules have been applied. String.
    • cli_in - CLI of the call before any translation has been applied. String.
    • conn_proc_time - Time spent processing call setup before the call was connected. Double.
    • connect_fee - Connect fee applied to the call according to the tariff. Double.
    • connect_time - Connect time of the call in '%H:%M:%S.000 GMT %a %b %d %Y' format (e.g. 09:57:29.000 GMT Wed Mar 18 2026). String.
    • cost - Amount charged to the account for the call in the account's base currency. String.
    • country - Dialed country. String.
    • delay - Total delay for the call. Double.
    • description - Description of the dialed destination. String.
    • disconnect_time - Time when the call was disconnected, in '%H:%M:%S.000 GMT %a %b %d %Y' format. (e.g. 09:57:29.000 GMT Wed Mar 18 2026). String.
    • duration - Duration of the call. Double.
    • free_seconds - Free seconds of the call according to the tariff. Integer.
    • grace_period - Grace period of the call according to the tariff. Integer.
    • i_account - i_account of the account. Integer.
    • i_call - Unique i_call value of the call. String.
    • i_cdr - Unique i_cdr value of the call. String.
    • i_protocol - Signaling protocol used for the call. Integer.
    • interval_1 - Interval 1 according to the tariff rate. Integer.
    • interval_n - Interval N according to the tariff rate. Integer.
    • lrn_cld - Translated LRN CLD of the call. String.
    • lrn_cld_in - Incoming LRN CLD of the call. String.
    • lrn_cld_result - Result of the LRN lookup performed for the called number. Integer.
    • lrn_cli - Translated LRN CLI of the call. String.
    • lrn_cli_in - Incoming LRN CLI of the call before translation. String.
    • lrn_cli_result - Result of the LRN lookup performed for the calling number. Integer.
    • media_timeout_correction - Adjustment applied to the CDR when media timeout handling changes the measured call duration or billing. Double.
    • p_asserted_id - P-Asserted-Identity of the call. String.
    • pdd1xx - Time between sending the outgoing INVITE and receiving the first provisional or final response other than 100 Trying. Double.
    • parent_local_i_call - Local parent i_call identifier when this CDR belongs to a related leg of another call. String.
    • plan_duration - Number of seconds covered by the account's minute plan. Integer.
    • post_call_surcharge - Post-call surcharge applied to the call according to the tariff. Double.
    • prefix - Rate prefix used for the call. String.
    • price_1 - Price 1 according to the tariff rate. Double.
    • price_n - Price N according to the tariff rate. Double.
    • protocol - Protocol used for the call (SIP/IAX2). String.
    • release_source - Release source of the call. String.
    • remote_ip - Remote IP address of the call originator. String.
    • remote_party_id - Remote party ID of the call (RPID). String.
    • result - Call result. Integer.
    • setup_time - Setup time of the call in '%H:%M:%S.000 GMT %a %b %d %Y' format (e.g. 09:57:29.000 GMT Wed Mar18 2026). String. (Available starting from Sippy 2024)
    • user_agent - User-Agent of the caller. String.
  • result - OK means that query was successful. String.
  • XMLRPC fault in case of any error.