setCallStatus

Request Method: PUT

Description: Sets the Call Status of a VoxNumber ("ON" or "OFF"). A VoxNumber whose Call Status is set to "OFF" will not have any Calling Rules actioned when called and any incoming calls will be dropped. Setting a status to "ON" will cause any incoming calls to action the attached Calling Rule Template.Only VoxNumbers that are attached to a Link can have their Call Status set.

URL: https://api.iovox.com:444/Voxnumbers?v=3&method=setCallStatus

Note: This function does not send a VoxNumber back to the pool, it is still attached to the link

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use
INTEGERYES

Payload

<?xml version="1.0" encoding="utf-8"?>
<request>
    <call_status>OFF</call_status>
     <voxnumbers>
         <voxnumber>448001020304</voxnumber>
         <voxnumber>448451234567</voxnumber>
         <voxnumber>442077277277</voxnumber>
     </voxnumbers>
 </request>

Parameters

ParameterDescriptionDefault ValueData TypeMandatory
call_statusCan be ON or OFF
STRINGYES
voxnumbers > voxnumberOne or multiple VoxNumbers
INTEGERYES

Result

Error Result

HTTP CodeError StringResolution
400API Version EmptyAdd a value for the v parameter in the query string
400API Version InvalidCorrect v parameter
400XML EmptyCorrect XML payload
400XML Parse Error

Correct XML payload

400VoxNumber x of y does not existCorrect VoxNumber
400VoxNumber x of y is not attached to a LinkAttach VoxNumber to a link in order to set the call status
400Call Status InvalidCorrect call_status parameter
400VoxNumbers EmptyCorrect VoxNumber(s)