Knowladge Base

METHOD FOR GETTING CURRENT RINGTO ADDRESS TYPE

To get the type of the ring to address set in your DID number, use this function.

Method Signature

GetRingToType($UserID,$Password,$DIDNumber)

Example Usage

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

<?php

require_once “nusoap.php”;

$parameters=array(“584884″,”asdf5″,”44554645587”);
$soapclient= new soapclient(‘http://api.didx.net/webservice/WebEditURLServer.php’);
$SoapResult = array();
$SoapResult = $soapclient->call(“GetRingToType”, $parameters,’urn:GetRingToType’);

print_r($SoapResult);

?>

First argument is the DIDx User ID, second the password, third the DID number that you’ve bought.

Return values:

On successfull query, the method may return

1 – SIP
2 – IAX

Error Codes

It will return an ‘Error Code’ in case there is some thing 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 = This DID is not in your ownership.
-4 = No such DID Number exists.
-5 = Please provide a valid value for the fifth parameter