Knowladge Base

METHOD FOR CHANGING CURRENT SIP OR IAX ADDRESS

If you’ve already bought a number from ‘didx.net’ and mapped it to a SIP or IAX address, but later on you need to change it, this webservice can help you do that. You’d have to provide DIDx User ID, Password, DID Number, SIP/IAX address and a 1 or 2 (1 for SIP and 2 for IAX).

Method Signature

EditURL(“584884″,”asdf5″,”44554645587″,”44554645587@\phoneopia.com”,”1″)

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″,”44554645587@\phoneopia.com”,”1″);
$soapclient= new soapclient(‘http://api.didx.net/webservice/WebEditURLServer.php’);
$SoapResult = array();
$SoapResult = $soapclient->call(“EditURL”, $parameters,’urn:EditURL’);

print_r($SoapResult);

?>

First argument is the DIDx User ID, second the password, third the DID number that you’ve bought, fourth the new SIP or IAX address and fifth can either be set to 1 or 2 (1 for SIP and 2 for IAX). In case of successful changing of SIP/IAX address the DID number would be returned, otherwise an error code.

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