Finding out device ID?

Download the API here: http://api.aapp.al-enterprise.com
Post Reply
CodingMonkey
Member
Posts: 1
Joined: 18 Jul 2019 02:48

Finding out device ID?

Post by CodingMonkey » 18 Jul 2019 05:20

Hi guys,
been trying to write a small program to start calls via the REST-API, similar to the Sample-Application that Alcatel provides at https://api.aapp.al-enterprise.com/open ... -services/.
I ...
  • Authenticate via

    Code: Select all

    /api/rest/1.0/authenticate
    , recieving a "Credential"
  • Open a session via

    Code: Select all

    /api/rest/1.0/sessions
    , recieving a list of available services (including BasicTelephony)
This is where things get fuzzy: I tried the request at /telephony/basicCall/, but apparently to start a call I need a device ID. First I thought leaving it out would use the default phone (which would be perfect) but it didn't, instead I got an error:

Code: Select all

{
    "httpStatus": "BAD_REQUEST",
    "code": 1006,
    "helpMessage": "Request parameters are not correct. Please fix the problem and resend the request.",
    "type": "BAD_PARAMETER",
    "innerMessage": "deviceId null or empty",
    "canRetry": true
}
I tried various values for "deviceID", like the phone number, the extension number... For most attempts it actually returns a 201 response so it SHOULD be working but there is no reaction on the users' phones, no call happening.

So, how do I find out the DeviceID? There are several numbers on the back of my phone (like 15 different kinds of numbers) but some phones don't have any number at all.

Any advice is appreciated,

Post Reply

Return to “Web Services”