Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: Missing func parameters
Clémence Lesnéf4945281927d
diff --git a/helpers/call_events.py b/helpers/call_events.pyindex e26b956..3bc1112 100644--- a/helpers/call_events.py+++ b/helpers/call_events.py@@ -174,6 +174,8 @@ async def on_recognize_timeout_error(call: CallStateModel,client: CallAutomationClient,contexts: set[CallContextEnum] | None,+ post_callback: Callable[[CallStateModel], Awaitable[None]],+ training_callback: Callable[[CallStateModel], Awaitable[None]],) -> None:if (contexts and CallContextEnum.IVR_LANG_SELECT in contexts@@ -186,7 +188,12 @@ async def on_recognize_timeout_error(call.recognition_retry,await voice_recognition_retry_max(),)- await _handle_ivr_language(call=call, client=client)+ await _handle_ivr_language(+ call=call,+ client=client,+ post_callback=post_callback,+ training_callback=training_callback,+ )else: # IVR retries are exhausted, end calllogger.info("Timeout, ending call")await _handle_goodbye(diff --git a/main.py b/main.pyindex 9778233..5af6d14 100644--- a/main.py+++ b/main.py@@ -673,6 +673,8 @@ async def _communicationservices_event_worker( # noqa: PLR0912, PLR0915call=call,client=automation_client,contexts=operation_contexts,+ post_callback=_post_callback,+ training_callback=_training_callback,)else: # Unknown errorawait on_recognize_unknown_error(