|
|
CDR.GET - get CDR information.
|
|
Description
|
|
CDR.GET API Action is used to get CDR information for a given account.
|
|
Arguments
|
|
ACCOUNT_NUMBER
Optional. Account number for which CDR information needs to be retrieved. Account Number can be either one of your sub-accounts or your customer (if you use Anveo Whitelabel/Reseller)
|
|
CDR.GET API action is available on the Business subscription only.
|
|
FILTER.FROM.E164
Optional. Only return records with a given CallerID number.
|
|
FILTER.TO.E164
Optional. Only return records with a given destination phone number.
|
|
FILTER.DATE.FROM
Optional. Only return records starting from a given date. FILTER.DATE.FROM format is YEAR-MONTH-DAY. For example: 2013-01-22
|
|
FILTER.DATE.FROM
Optional. Only return records not greater than a given date. FILTER.DATE.TO format is YEAR-MONTH-DAY. For example: 2013-01-22
|
|
FILTER.DIRECTION
Optional. FILTER.DIRECTION can be either IN, OUT or ALL. Setting FILTER.DIRECTION to 'IN' will only return INCOMING calls, setting FILTER.DIRECTION to 'OUT' will only return OUTGOING calls and setting to 'ALL' will return all calls.
|
|
|
Example:
<PARAMETER NAME="ACCOUNT_NUMBER">1234567890</PARAMETER>
<PARAMETER NAME="FILTER.DIRECTION">IN</PARAMETER>
|
|
Example:
param[ACCOUNT_NUMBER]=1234567890¶m[FILTER.DIRECTION]=IN
|
|
Each parameter value needs to be URL Encoded separately.
|
|
|
Response
|
|
RESULT XML node will contain SUCCESS if action is successful and SIPDETAILS XML node will contain USERNAME and PASSWORD information.
|
|
API Request Example
|
|
<?xml version="1.0" standalone="no" ?>
<REQUEST>
<USERTOKEN>
<USERKEY>df141891e2e883904b0b294dc5bq79c1c1c13f6d</USERKEY>
</USERTOKEN>
<ACTION NAME="CDR.GET">
<PARAMETER NAME="ACCOUNT_NUMBER">1234567890</PARAMETER>
<PARAMETER NAME="FILTER.DIRECTION">OUT</PARAMETER>
</ACTION>
</REQUEST>
|
|
https://www.anveo.com/api/v2.asp?userkey=YOURAPIKEY&action=CDR.GET¶m[ACCOUNT_NUMBER]=1234567890¶m[FILTER.DIRECTION]=OUT
|
|
Each parameter value needs to be URL Encoded separately.
|
|
|
Response Example
|
<?xml version="1.0" standalone="no" ?>
<RESPONSE>
<RESULT>SUCCESS</RESULT>
<CDR>
<DIRECTION>OUT</DIRECTION>
<TYPE>DIALOUT</TYPE>
<INIT_TIMESTAMP>7/30/2013 1:27:59 PM</INIT_TIMESTAMP>
<CONNECT_TIMESTAMP>7/30/2013 1:28:08 PM</CONNECT_TIMESTAMP>
<END_TIMESTAMP>7/30/2013 1:41:10 PM</END_TIMESTAMP>
<CALL_FROM>19153308003</CALL_FROM>
<CALLERID_NAME></CALLERID_NAME>
<CALL_TO>+13153423700</CALL_TO>
<DURATION>782</DURATION>
<AMOUNT>-0.122774</AMOUNT>
</CDR>
<CDR>
<DIRECTION>OUT</DIRECTION>
<TYPE>DIALOUT</TYPE>
<INIT_TIMESTAMP>7/30/2013 1:37:59 PM</INIT_TIMESTAMP>
<CONNECT_TIMESTAMP>7/30/2013 1:38:18 PM</CONNECT_TIMESTAMP>
<END_TIMESTAMP>7/30/2013 1:41:10 PM</END_TIMESTAMP>
<CALL_FROM>12153318402</CALL_FROM>
<CALLERID_NAME></CALLERID_NAME>
<CALL_TO>+14153523410</CALL_TO>
<DURATION>792</DURATION>
<AMOUNT>-0.134</AMOUNT>
</CDR>
</RESPONSE>
|
|
|