Set up or edit Voicemail on a number

Description

Set the Voicemail destination of a number.

Parameters

string NumberThe TTNC number which is to be modified.
string VoicemailEmailDestsList of destination email addresses, comma separated.
string VoicemailSMSDests optionalList of destination UK Mobile numbers, comma separated. Please note; Voicemail Alerts sent to Mobile numbers are SMSs which are chargeable. Please consult your pricing for details.
bool ReplaceForwarding optionalSending this parameter as a value equivalent to TRUE will cause any call forwarding to telephone numbers or VoIP destinations to be overwritten so only Voicemail is present.

Request

<?xml version="1.0"?>
<NoveroRequest>
    <Request target="NoveroNumbers" name="SetVoicemailDestination" id="TestRequest">
        <Number>01245123456</Number>
        <VoicemailEmailDests>[email protected],[email protected]</VoicemailEmailDests>
        <VoicemailSMSDests>07777000001,07777000002</VoicemailSMSDests>
    </Request>
</NoveroRequest>
<?php
    require_once('TTNCApi.php');
    $Api = new TTNCApi('<username>', '<password>', '<VKey>');
    $Request = $Api->NewRequest('NoveroNumbers', 'SetVoicemailDestination', 'TestRequest');
    $Request->SetData('Number', '01245123456');
    $Request->SetData('VoicemailEmailDests', '[email protected],[email protected]');
    $Request->SetData('VoicemailSMSDests', '07777000001,07777000002');
    $Api->MakeRequests();
    $Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumbers', 'SetVoicemailDestination', 'TestRequest')
request.setdata('Number', '01245123456')
request.setdata('VoicemailEmailDests', '[email protected],[email protected]')
request.setdata('VoicemailSMSDests', '07777000001,07777000002')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumbers', 'SetVoicemailDestination', 'TestRequest')
request.setdata('Number', '01245123456')
request.setdata('VoicemailEmailDests', '[email protected],[email protected]')
request.setdata('VoicemailSMSDests', '07777000001,07777000002')
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", "SetVoicemailDestination", "TestRequest");
        request.setData("Number", "01245123456");
        request.setData("VoicemailEmailDests", "[email protected],[email protected]");
        request.setData("VoicemailSMSDests", "07777000001,07777000002");
        api.MakeRequests();
        TTNCParser dic = request.GetResponse();
     }
}

Response

<?xml version="1.0"?>
<NoveroResponse>
    <Response target="NoveroNumbers" name="SetVoicemailDestination" Code="200" RequestId="TestRequest">
        <ResponseMessage>Voicemail set up successfully</ResponseMessage>
        <Success>Voicemail set up successfully</Success>
    </Response>
</NoveroResponse>