Skip to content

Commit 75aaca7

Browse files
author
Vinothini Dharmaraj
committed
fixing the hangup call issue
1 parent ac8fe04 commit 75aaca7

File tree

1 file changed

+1
-1
lines changed
  • callautomation-openai-sample

1 file changed

+1
-1
lines changed

callautomation-openai-sample/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def handle_callback(contextId):
247247
elif event.type == "Microsoft.Communication.PlayCompleted":
248248
context=event.data['operationContext']
249249
if context.lower() == TRANSFER_FAILED_CONTEXT.lower() or context.lower() == GOODBYE_CONTEXT.lower() :
250-
handle_hangup()
250+
handle_hangup(call_connection_id)
251251
elif context.lower() == CONNECT_AGENT_CONTEXT.lower():
252252
if not AGENT_PHONE_NUMBER or AGENT_PHONE_NUMBER.isspace():
253253
app.logger.info(f"Agent phone number is empty")

0 commit comments

Comments
 (0)