01-21-2025 09:30 AM
I am working on the Developer Sandbox, so I have thee users created with their respective extensions. The administrator and two other users.
If I go onto the developer portal and try to generate a call from there, I need to enter the access token, the endpointId and the destination. Being logged in as the administrator, the access token is the personal one by default and I had to get the endpoint ID using the personal ID but once I enter all the parameters, I can trigger the call between the amin's extension and the destination.
Now even when I get the endpoint id for the other two users, I try to trigger the call and it throws an 400 error. It kind of make sense if you are working with the administrator login.
So I created an integration and I built a program that gets a token using the details of that integration and try to triggers the call. It also works for the admin's device but not for the other to users.
Can someone tell me if I am doing anything wrong? maybe there is another API control to make calls between any extension and the destination.
Thank you in advance for your help.
01-21-2025 08:51 PM
Hi @Hugo Franco,
Is it possible to share us the complete API request payload and the corresponding response please.
By checking the error description and the error trackingId - we could investigate it further.
So, if I'm understanding your problem description correctly, then you're using the Integration token to make a call to the other 2 Users of your Sandbox org and it's throwing the error.
However when you try to make a call to the Admin's extension and endpointId, then it's fine.
Please correct me if my understanding is wrong!
So the probable cause of this error I believe is the Calling License which might be missing for those 2 Users in your Sandbox Org. Could you kindly check that & confirm as well!
Please make a note, to be able to use the https://developer.webex.com/docs/api/v1/call-controls/dial API, both the Users, Dialler and Receiver - both should have at least the basic calling license. Else it'd throw error.
Regards!
Sandip
01-22-2025 05:35 AM
Hi Sandiban,
Thank you for your response.
Yes, I think I can share it because it is a lab environment after all.
You have a good understanding of the scenario, but I just have to clarify that I am trying to connect the users extension with an auto-attendant, so to pick the user extension I am using the endpoint and then the AA pilot as destination. However, it works with the administrator’s extension and connects it to the AA, while gives a 400 not found error for the other users.
About the licensing, the three users have the configuration shown below.
Do the dialer and receiver have to be extensions? Because I am connecting with an AA but it could be an external phone so how would it be in that situation?
Find the program output attached.
Please, let me know if you need any further information
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide