Text us or call us on : 011 33 20 30 40

VoicePush API

service icon

The text to voice service provided by aql.com is an easy to use method of converting text into voice via a telephone call.

HTTP Interface

Text to voice requests are processed via our HTTP Post Interface at http://vp1.aql.com/voice_push.php

Outbound messages

The text to voice gateway requires an HTTP POST call with the following variables;

ParameterDescription
usernameYour aql.com username
passwordYour aql.com password
msisdnThe number to be dialled in international format
messageThe text to be converted to voice
dlrDataDelivery report url [optional]
dlrTypeType of delivery report (e.g. httpget) [optional]

Responses

You will receive a response from our gateway as follows;

VP_OK
Message queued for sending
This take the form of a two-line response, the first line is an error code with the second a short string describing the status. The complete list of possible values are as follows;
Error CodeDescription
VP_OKSuccess
VP_ERR_INVALIDMOBNUMThe number provided was invalid
VP_ERR_NOCREDITThere is insufficient credit to send this message
VP_ERR_INVALIDAUTHThe username or password provided were incorrect
VP_ERR_NOAUTHNo username/password pair was provided
VP_ERR_NOMSGNo message was provided

Delivery Reports

If delivery reports are required you can specify a url in the dlrData parameter which will be called when a message is confirmed as being successfully delivered.

The placeholder %code will be translated to the status code of the message which will be one of the following;

Status CodeDescription
1Confirmed Delivered (Acknowledged)

At present no delivery reports will be sent for failed deliveries.

You may wish to include a unique identifier in the URL to enable you to keep track of messages e.g.;

http://www.yourcompany.com/reports/voicepush.php?code=%code&id=YOURID