11-01-2023 05:58 AM
Hi,
I would like to ask about Webex Calling REST API. I'm trying to perform simple agent-to-agent calling scenario using API requests (following this CallControl documentation) but somehow the created call (by Agent1) is not associated with Agent2. Another words the call cannot be controlled by Agent2
Steps to reproduce:
Agent1 and Agent2 are signed in to Webex App, both are ready to call, both have no HW phones (SW only)
Step by step:
1) Agent1 dials to Agent2 using sip as destination -> /v1/telephony/calls/dial
- as a result I receive CallID, also I can see Incomming call on Agent1's desktop (Webex App)
- as Agent1 I can see the call has `Alerting` state usign API GET request /v1/telephony/calls
2) Following the documentation Agent1 needs to answer first by calling /v1/telephony/calls/answer POST request
- the call is started, I can see Incomming call on Agent2's desktop now
- as Agent1 I can see the call has `Connecting` state usign API GET request /v1/telephony/calls
3) As Agent2 try to GET calls (/v1/telephony/calls)
- there is no active calls associated with Agent2
- also if Agent2 answers the call manually on Webex App it is still not associated with Agent2
Could you help me out with this, please? Maybe I miss something?
Thank you in advance and have a great day!
Solved! Go to Solution.
11-02-2023 08:10 AM
The call control APIs only work if the call routes across the Webex Calling service. If your users have the "Call on Webex" and "Webex Calling" licenses then dialing by SIP will route across the "Call on Webex" service instead of "Webex Calling". If you were to dial by the users Webex Calling extension or PSTN then it should route the call across Webex Calling service and the receiver of the call should see it when listing calls and then should be able to answer it via the API.
11-02-2023 08:10 AM
The call control APIs only work if the call routes across the Webex Calling service. If your users have the "Call on Webex" and "Webex Calling" licenses then dialing by SIP will route across the "Call on Webex" service instead of "Webex Calling". If you were to dial by the users Webex Calling extension or PSTN then it should route the call across Webex Calling service and the receiver of the call should see it when listing calls and then should be able to answer it via the API.
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