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).
2F EDIT DID IAF PORT
Example URL:
Example Code in PHP:
<?php $curl_handle = curl_init(); $url = "http://newapi.didx.net/DidxApis/api/EditURL.php?UserID=700290&Password=XXXX&DIDNumber=14194643509&SIPorIAX=14194643509@159.89.41.88:5080&Flag=1"; curl_setopt($curl_handle, CURLOPT_URL, $url); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true); $curl_data = curl_exec($curl_handle); curl_close($curl_handle); $response_data = json_decode($curl_data); print_r($response_data); die(); ?>
Input Fields:
-
- UserID
- Password
- DIDNumber
- SIPorIAX
- Flag
Returned Fields:
None
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 = This DID is not in your ownership.
-4 = No such DID Number exists.
-5 = Please provide a valid value for the fifth parameter