Set Forwarding on a number
SOAP API
URL:
http://virtualphoneline.com/webservice/CFMSCallForwardingManager.php
-
Method: SetForwardingForNumber (UserID, Pass, Number,
Forwarding Address, Forwarding ID)
-
UserID: Numeric Account ID or the email address
registered with sandbox.virtualphoneline.com
- Pass: MD5 Encrypted Password
- Return Type: String
- Return Values:
-
Upon successful authentication, the method will return "1",
otherwise return the error codes.
- -1. Invalid login ID/Pass
- -2. Blank number provided
- -3. Blank ringto address
- -4. Blank Forwarding ID
- -5. Invalid Forwarding ID
- -10. Forbidden
- -11. Invalid number for PSTN
- -12. Not allowed on current customer rating.
- -130. Blocked forwarding number
- -131. Blocked forwarding number
- -132. Blocked forwarding number
- -133. Blocked forwarding number
-
Example Code: Following example shows the forwarding
setting for a number for PSTN
-
$parameters=array("000000",md5("ae762636272ff276236"));
-
$parameters=array("30000",md5("dsds"),"11111111","9999999","3");
-
$soapclient= new
soapclient('http://sandbox.virtualphoneline.com/webservice/CFMSCallForwardingManager.php');
- $SoapResult = array();
-
$SoapResult = $soapclient->call("SetForwardingForNumber",
$parameters,'urn:SetForwardingForNumber');
- print_r($SoapResult);
- exit;
REST API
URL:
https://api.virtualphoneline.com/vplapi/SetForwardingCall.php?UserID=306017&Password=md5(%22de9c8e1486%22)&ffDID=15672553507&RingToAddress=00923352998070&CarrierID=1
-
Method: SetForwardingForNumber (UserID, Pass, Number,
Forwarding Address, Forwarding ID)
-
UserID: Numeric Account ID or the email address
registered with virtualphoneline.com
- Pass: MD5 Encrypted Password
- Return Values:
-
Upon successful authentication, the method will return "1",
otherwise return the error codes.
- -1. Invalid login ID/Pass
- -2. Blank number provided
- -3. Blank ringto address
- -4. Blank Forwarding ID
- -5. Invalid Forwarding ID
- -10. Forbidden
- -11. Invalid number for PSTN
- -12. Not allowed on current customer rating.
- -130. Blocked forwarding number
- -131. Blocked forwarding number
- -132. Blocked forwarding number
- -133. Blocked forwarding number
|