Set up or edit Call Blocking on a number
Description
Add a new Call Blocking Rule to the specified number.
Parameters
string Number | The number to set a Call Blocking rule on. |
string CLI | The CLI to be blocked. This can be a CLI fragment, and any CLI matching from the starting of the CLI. For example setting a Call Blocking Rule with CLI string 020 will block all calls with a CLI start 020 (London). Sending the string anonymous will block any calls with withheld CLIs. |
string Description | A description for the Blocking rule. |
Request
<?xml version="1.0"?>
<NoveroRequest>
<Request target="NoveroNumbers" name="NewBlockingRule" id="TestRequest">
<Number>01245123456</Number>
<CLI>01245123123</CLI>
<Description>Pesky insurance claim people</Description>
</Request>
</NoveroRequest>
<?php
require_once('TTNCApi.php');
$Api = new TTNCApi('<username>', '<password>', '<VKey>');
$Request = $Api->NewRequest('NoveroNumbers', 'NewBlockingRule', 'TestRequest');
$Request->SetData('Number', '01245123456');
$Request->SetData('CLI', '01245123123');
$Request->SetData('Description', 'Pesky insurance claim people');
$Api->MakeRequests();
$Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumbers', 'RemoveTag', 'TestRequest')
request.setdata('Number', '01245123456')
request.setdata('CLI', '01245123123')
request.setdata('Description', 'Pesky insurance claim people')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumbers', 'RemoveTag', 'TestRequest')
request.setdata('Number', '01245123456')
request.setdata('CLI', '01245123123')
request.setdata('Description', 'Pesky insurance claim people')
api.makerequest()
p request.getresponse()
using System;
using TTNCApi;
class Program
{
static void Main(string[] args)
{
TTNCApi api = new TTNCApi("<username>", "<password>", "<vkey>");
TTNCRequest request = api.NewRequest("NoveroNumbers", "NewBlockingRule", "TestRequest");
request.setData("Number", "01245123456");
request.setData("CLI", "01245123123");
request.setData("Description", "Pesky insurance claim people");
api.MakeRequests();
TTNCParser dic = request.GetResponse();
}
}
Response
<?xml version="1.0"?>
<NoveroResponse>
<Response target="NoveroNumbers" name="NewBlockingRule" Code="200" RequestId="TestRequest">
<ResponseMessage>1</ResponseMessage>
<Success>1</Success>
</Response>
</NoveroResponse>