Knowladge Base

GET A LIST OF AVAILABLE CHANNEL BASED DIDS

1F. METHOD FOR GETTING AVAILABLE CHANNEL BASED

This method returns the list of available DIDs which have been offered as Channel Based DIDs rather per minute charges with limited minutes.

Method Signature

sub GetChannelSupportedDIDsByPrefix($UserID,$Password,$CountryCode,$VendorRatingFrom,$VendorRatingTo, $Vendors (csv values), $RateFrom, $RateTo,$CountryID)

Example Usage

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

<?php

require_once “nusoap.php”;

$parameters=array(“65948″,”sdaf485″,”1567″,”1″,”9”);
$soapclient= new soapclient(‘http://api.didx.net/webservice/WebGetChannelSupportedDIDs.php’);
$SoapResult = array();
$SoapResult = $soapclient->call(“GetChannelSupportedDIDsByPrefix”, $parameters,’urn:GetChannelSupportedDIDsByPrefix’);

print_r($SoapResult);

?>

exit;

The first two arguments passed to the method are user id and password. The third argument is the country code / area code prefix e.g. 1567, the fourth represents starting Rating and the fifth represents the ending Rating. In this case, we’ve provided ratings from 5 to Vendor Rating 9. (Optional: Then sixt list of preferred vendors in csv, seventh & eight are monthly charges range, 9th is the country ID)

Fields Returned:
DIDNumber
OurSetupCost?
OurMonthlyCharges?
OurPerMinuteCharges?
Country
Area
CountryCode?
StateCode?
VendorID
RateCenter?
DIDID
HideNumber?
CountryID
SMSEnable
VoiceEnable?
ChannelSetup?
ChannelMonthly?
TotalChannels?
ChannelID

Error Codes

In case of any incorrect information provided by the user or in case of no matching data, an error code will be returned. Error codes correspond to the following messages:

-1 = User ID does not exist
-2 = Your Password is Incorrect
-3 = There are no rated DIDs Areas avaiable in our record.