diff --git a/deployment/pipecat-cloud-daily-pstn-server/fastapi-webhook-server/server.py b/deployment/pipecat-cloud-daily-pstn-server/fastapi-webhook-server/server.py index bf4e22c..4ed6be2 100644 --- a/deployment/pipecat-cloud-daily-pstn-server/fastapi-webhook-server/server.py +++ b/deployment/pipecat-cloud-daily-pstn-server/fastapi-webhook-server/server.py @@ -166,11 +166,12 @@ async def dial(request: RoomRequest, raw_request: Request): "createDailyRoom": True, "dailyRoomProperties": daily_room_properties, "body": { - "dialin_settings": dialin_settings, "dialout_settings": request.dialout_settings, "voicemail_detection": request.voicemail_detection, "call_transfer": request.call_transfer, "sip_headers": request.sipHeaders, # passing the SIP headers to the bot + "callId": request.callId, + "callDomain": request.callDomain, }, } diff --git a/phone-chatbot/daily-pstn-dial-in/bot.py b/phone-chatbot/daily-pstn-dial-in/bot.py index fdaa0db..a29bbe8 100644 --- a/phone-chatbot/daily-pstn-dial-in/bot.py +++ b/phone-chatbot/daily-pstn-dial-in/bot.py @@ -119,8 +119,8 @@ async def bot(runner_args: RunnerArguments): """Main bot entry point compatible with Pipecat Cloud.""" # Body is always a dict (compatible with both local and Pipecat Cloud) body_data = runner_args.body - room_url = body_data.get("room_url") - token = body_data.get("token") + room_url = runner_args.room_url + token = runner_args.token call_id = body_data.get("callId") call_domain = body_data.get("callDomain")