Knowladge Base

GET DID CALL LOGS

This method retrieves DID call logs.

Method Signature

1. getDIDCallLog ($UserID, $Password, $DIDNumber, $PageNo.)

2. getDIDCallLogByDate($UserID, $Password, $DIDNumber, $StartDate, $EndDate, $PageNo, $RecordOrder)

Example Usage

We are providing a sample code in PHP that accesses and uses this service.

<?php

require_once “nusoap.php”;

$parameters=array(“1001001″,”kts772″,”15673456789”);
$soapclient= new soapclient(‘http://api.didx.net/webservice/WebGetDIDUsage.php’);
$SoapResult = array();
$SoapResult = $soapclient->call(“getDIDCallLog”, $parameters,’urn:getDIDCallLog’);

print_r($SoapResult);

?>

Note: Page Number Starts from ‘0’. This function will return 100 records in 1 page

Fields Returned:
CallID
CallerID
RingTo
DIDNumber
Trunk
Status
Date
Billseconds
BillCost

<?php

require_once “nusoap.php”;

Note: Page Number Starts from ‘0’. This function will return 100 records in 1 page and result order like ascending (asc) or descending (desc). by default it will show 0 to 100 records in ascending order.

$parameters=array(“1001001″,”kts772″,”15673456789″,”2007-02-01″,”,”2007-02-28″,”0″,”asc”);
$soapclient= new soapclient(‘http://api.didx.net/webservice/WebGetDIDUsage.php’);
$SoapResult = array();
$SoapResult = $soapclient->call(“getDIDCallLogByDate”, $parameters,’urn:getDIDCallLogByDate’);

print_r($SoapResult);

?>

On successfull command, the function will return call id, caller id, ring to, did number, trunk, call status, call date, call duration in seconds, call cost.

Fields Returned:
CallID
CallerID
RingTo
DIDNumber
Trunk
Status
Date
Billseconds
BillCost

Error Codes

It will return an ‘Error Code’ in case there is something wrong with the information provided or there is no matching data in our record.

-1 = User ID does not exist
-2 = Your Password is Incorrect
-3 = There are no LOG in our Database.