UCM6202 API not consistent


#1

We are facing some problem in API calls and need urgent help to resolve the same.

We are trying to write code that will trigger an outbound call. This is erratically working i.e. it didn’t work initially, then worked for an hour or so and again its not working.

What we do is this:

  1. First we make an API call to get the challenge code. (This works always)
  2. Using the md5(challenge_code+password) we call API to login. This too works fine and we get back a cookie.
  3. Next we try to trigger outbound call. Here when we first tried it, the response indicated we need to apply changes. So we added an API call to apply changes using the cookie received in login step. Now this call – apply changes – is returning error code -8 (timeout)
  4. Next we tried API call for outbound call using the cookie. It returns error code -6 (invalid cookie)

#2

In order for others to help, it may prove useful to post the command lines that triggered the error responses. Otherwise, you are asking folks to guess what might have caused the error.


#3

Here is the output we get when running the api. First we run to get the challenge which successful and then we get the cookie which is also successful and based on the cookie call apply change action api which is given error -8 ie time out. This error comes and suddenly it starts working for some time and again giving this error. We are not able to understand when it works and when it stops working. Need your help in this issue. We are already in production and team is struggling to connect calls because of this issue

Challenge request: Array
(
[response] => Array
(
[challenge] => 0000000979155455
)

[status] => 0

)
login action: Array
(
[response] => Array
(
[cookie] => sid1754440495-1581710323
)

[status] => 0

)

apply changes action: Array
(
[response] => Array
(
)

[status] => -8

)


#4

My suggestion is to submit a ticket to the helpdesk on the issue. Other forum users may see the post in the meantime, but their is no guarantee that they will have an answer.