Set Forwarding on a number
- 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 successfull 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. Forbiden
- -11. Invalid number for PSTN
- -12. Not allowed on current customer rating.
- -130. Blocked fowarding number
- -131. Blocked fowarding number
- -132. Blocked fowarding number
- -133. Blocked fowarding number
- Example Code: Following example show the fowarding setting for a number for PSTN
- $parameters=array("000000",md5("ae762636272ff276236"));
- $parameters=array("30000",md5("dsds"),"11111111","9999999","3");
- #print_r($parameters);
- $soapclient= new soapclient('http://sandbox.virtualphoneline.com/webservice/CFMSCallForwardingManager.php');
- $SoapResult = array();
- $SoapResult = $soapclient->call("SetForwardingForNumber", $parameters,'urn:SetForwardingForNumber');
- print_r($SoapResult);
- exit;
|