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:
- First we make an API call to get the challenge code. (This works always)
- Using the md5(challenge_code+password) we call API to login. This too works fine and we get back a cookie.
- 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)
- Next we tried API call for outbound call using the cookie. It returns error code -6 (invalid cookie)