Azure-Samples / communication-services-python-quickstarts

Sample code for Azure Communication Services Python quickstarts
MIT License
17 stars 32 forks source link

Call Automation - Outbound Call Sample does not work #43

Open Dietrich-at-Qvest opened 5 months ago

Dietrich-at-Qvest commented 5 months ago

Please provide us with the following information:

Setting:

I have tried to run the Call Automation - Quick Start Sample, but could not get it to do anything, but immediately disconnect when I try to make an outbound call.

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

127.0.0.1 - - [02/Feb/2024 13:57:59] "GET /outboundCall HTTP/1.1" 302 -
127.0.0.1 - - [02/Feb/2024 13:57:59] "GET / HTTP/1.1" 200 -
[2024-02-02 13:58:00,459] INFO in main: Microsoft.Communication.CallDisconnected event received for call connection id: xxxx
[2024-02-02 13:58:00,459] INFO in main: Event type: Microsoft.Communication.CallDisconnected, data: {'version': '2023-10-15', 'callConnectionId': 'xxxx', 'correlationId': 'yyyy', 'publicEventType': 'Microsoft.Communication.CallDisconnected'}
127.0.0.1 - - [02/Feb/2024 13:58:00] "POST /api/callbacks HTTP/1.1" 200 -

Expected/desired behavior

The outbound call connects to the target number.

OS and Version?

Linux

Versions

Python 3.9.18

pip list produces:

Package Version


azure-communication-callautomation 1.1.0 azure-core 1.29.7 azure-eventgrid 4.11.0 blinker 1.7.0 certifi 2023.11.17 charset-normalizer 3.3.2 click 8.1.7 Flask 3.0.1 idna 3.6 importlib-metadata 7.0.1 isodate 0.6.1 itsdangerous 2.1.2 Jinja2 3.1.3 MarkupSafe 2.1.4 pip 23.0.1 requests 2.31.0 setuptools 58.1.0 six 1.16.0 typing_extensions 4.9.0 urllib3 2.1.0 Werkzeug 3.0.1 zipp 3.17.0

Mention any other details that might be useful

I would assume that is has something to do with out setup, but what could it be? I tried to find out whether there are any restrictions on making outbound calls in Germany, but it seems not so.

Further info:


Thanks! We'll be in touch soon.

matt-regier commented 3 weeks ago

C# examples also display the immediate Microsoft.Communication.CallDisconnected callback behavior as well.

https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/call-automation/quickstart-make-an-outbound-call?tabs=visual-studio-code&pivots=programming-language-csharp#optional-add-a-microsoft-teams-user-to-the-call

Seems that if you're PhoneNumber and routing aren't even configured correctly that the createcall call ought to error with a clear message.

I'm also curious when/if the https://learn.microsoft.com/en-us/rest/api/communication/callautomation events will start becoming available via EventGrid instead of just being available via the callback.

Obviously

but I'm sure there are others that I can't get to because of this issue. callCreatedResult.json callDisconnectedCallback.json callAutomationClient.cs.txt