microsoft / call-center-ai

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Apache License 2.0
283 stars 88 forks source link

No Call Received or Event Triggered in Azure Communication Services After POST Request to Initiate Call #311

Closed diefergil closed 2 months ago

diefergil commented 2 months ago

I am attempting to initiate an outbound call using Azure Communication Services via the POST endpoint of my function app, but I am not receiving any calls, and no events seem to be triggered in the Communication Services.

Steps to reproduce

{
    "agent_phone_number": "+1234567890",
    "bot_company": "Contoso",
    "bot_name": "AI Assistant",
    "phone_number": target_number,
    "agent_phone_number": bought_number,
    "task": "Assist customer with technical issue",
    "claim": [
        {"name": "hardware_info", "type": "text"},
        {"name": "issue_date", "type": "datetime"},
        {"name": "customer_location", "type": "text"}
    ],
    "lang": {
        "default_short_code": "en-US",
        "availables": [
            {"short_code": "en-US", "voice": "en-US-JennyNeural"}
        ]
    }
}

The response is a 201 Created with the call_id, indicating that the call initiation was processed.

However, no call is received by the target number, and no events seem to be logged or triggered in Azure Communication Services.

clemlesne commented 2 months ago

Can you share the application logs?

diefergil commented 2 months ago

The problem was resolved. I had to update the config json from the function. The number was wrong.

Sorry for making noise!

clemlesne commented 2 months ago

Don't worry.

Is there something I can improve to avoid someone else making the same mistake?

diefergil commented 2 months ago

A command in the Makefile to update and view the application configuration using the config.yaml would help a lot.

Also something to verify that all systems are working and are reachable.

I'm sure it can be monitored somewhere, but this is my first time using Azure.

Great job by the way!

clemlesne commented 2 months ago

Done: 2e0011b190a72125968baaf7a0f8db19daec457d.

You can type make name=my-rg sync-local-config to sync the config local config file from the Azure env.

Thank you! 😊