NoveroOriginateCall

Description

Used to make a call. Creates two channels and bridges them together. This can be used to present your TTNC number as the CLI on the callee's phone.

Parameters

string caller

The phone number of the calling party (usually yourself). This will be the first number dialled and the optional prompt message played.

string callee

The phone number of the party to be called. Once the caller has accepted the call, will we dial this number and bridge the call.

string cli

The CLI to be presented to the callee. This needs to be a number in your TTNC account.

bool record optional

Sending this parameter as a value equivalent to TRUE will enable call recording for this call.

Request

<?xml version="1.0"?>
<NoveroRequest>
    <Request target="NoveroOriginateCall" name="Make" id="TestRequest">
        <caller>01245123456</caller>
        <callee>02031511000</callee>
        <cli>08004681000</cli>
        <record>1</record>
    </Request>
</NoveroRequest>
<?php
    require_once('TTNCApi.php');
    $Api = new TTNCApi('<username>', '<password>', '<VKey>');
    $Request = $Api->NewRequest('NoveroOriginateCall', 'Make', 'TestRequest');
    $Request->SetData('caller', '01245123456');
    $Request->SetData('callee', '02031511000');
    $Request->SetData('cli', '08004681000');
    $Api->MakeRequests();
    $Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroOriginateCall', 'Make', 'TestRequest')
request.setdata('caller', '01245123456')
request.setdata('callee', '02031511000')
request.setdata('cli', '08004681000')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroOriginateCall', 'Make', 'TestRequest')
request.setdata('caller', '01245123456')
request.setdata('callee', '02031511000')
request.setdata('cli', '08004681000')
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("NoveroOriginateCall", "Make", "TestRequest");
        request.setData("caller", "01245123456");
        request.setData("callee", "02031511000");
        request.setData("cli", "08004681000");
        api.MakeRequests();
        TTNCParser dic = request.GetResponse();
     }
}

Response

<?xml version="1.0"?>
<NoveroResponse>
    <Response target="NoveroOriginateCall" name="Make" Code="200" RequestId="TestRequest">
        <ResponseMessage>1</ResponseMessage>
        <Success>1</Success>
    </Response>
</NoveroResponse>