Azure / Azure/azure-sdk-for-python

Requesting answer_call using azure-communication-callautomation and getting error

Open
#38,974 1 comment 0 reactions 0 assignees View on GitHub
Client Communication - Call Automation customer-reported needs-team-attention question Service Attention
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

- **Package Name**: azure-communication-callautomation
- **Package Version**: 1.4.0b1
- **Operating System**: linux
- **Python Version**: 3.11

**Describe the bug**
I'm using azure-communication-callautomation, It was working fine till 21 dec 2024, and on 23 dec 2024 I started getting error
`(None) No HTTP resource was found that matches the request URI 'https://nextpma.plat.skype.com/calling/callConnections:answer?api-version=2024-11-15-preview'`
I have not changed anything is code and this error suddenly started.

**To Reproduce**
Steps to reproduce the behavior:
1. create azure communication services, get number in it.
2. create event-grid trigger azure function.
3. subscribe azure function from azure communication service, in event tab.
4. write code to catch the event and answer call in azure function
5. sample code
`CALL_CONNECTION_CLIENT.answer_call(
incoming_call_context=incoming_call_context,
callback_url=ANSWER_CALL_CALLBACK_URL,
cognitive_services_endpoint=COGNATIVE_SERVICES_ENDPOINT, # Correctly pass the endpoint
operation_context=f"{caller_id}"
)'
6. It deploy on azure function, and call on the azure number, you will get error in logs.

**Expected behavior**
call should get answered.

**Screenshots**
![Image](https://github.com/user-attachments/assets/df82934d-63a3-4d90-97a4-e91b64ae3e5c)
in last 2-3 lined you can observe error

**Additional context**
I am adding logs for analysis:
Received event: {'to': {'kind': 'phoneNumber', 'rawId': '4:+12222221673', 'phoneNumber': {'value': '+1222222673'}}, 'from': {'kind': 'phoneNumber', 'rawId': '4:+1222222230', 'phoneNumber': {'value': '+12222222230'}}, 'serverCallId': 'aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jjjjjjjjjjjjjjjjjjjjjjjjjjjjjb2QtYWtzLmNvbnYuc2t5cGUuY29tL2NvbnYvaGlEajcwZ2Z1RUN0UFJWSk1SNllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllAzODE4MQ==', 'callerDisplayName': 'NEW YORK NY', 'incomingCallContext': 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJjYyI6Ikg0c0lBQUFBQU.eyJhbGcnpGaU5MbzlUT0EtYWhnLWNmQXRKRHAzOE5uYm9CU3VHQmpMS0NJUjFuZllrMk5RZ2pFSW5TRkhzNDZsYzR3QnZkdndzcEVPeWdRV0pWMFRPMVdjekxhSTFrWW0tOENWVnFRYVFISmJZTzhObi1xQ1RFWEM4NjNPcnB4Zk1ValhJdTlQM0kZaelhidUVGTFBYRXNNRVFYN0Q0YjFqOXNCOFVwN0ZJLTVnS0YyUHgwTHpTbHN2WWNfeUdpQWF3akhWUjN3T044Y3JFSlljWFhrNms3dGNGYVZzOW0xN21OWV9PZGxHMGx2eDB6T3hNdWczdXZfY0UEJLRW9xTGVnQUFWV3JjdTRDWVBfUnR3RE83TzQ3TlpRIn0.', 'correlationId': 'fdf8ee20-5844-498d-a1f1-a9828c9ef499'}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.