-
Notifications
You must be signed in to change notification settings - Fork 53
Fix dial-in demo: Add callId and callDomain to server payload #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see any issue running this demo as is (uv.lock is using 0.0.85, but we haven't changed anything in this area in a bit). I'm intentionally creating a room out of band from Pipecat Cloud and passing to my bot. This allows the room to be created with the correct SIP parameters. Are you seeing an issue? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @markbackman, running as is on Pipecat Cloud doesn't work. It works locally just fine on
|
||
token = runner_args.token | ||
call_id = body_data.get("callId") | ||
call_domain = body_data.get("callDomain") | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might have broken the bot, because we need to send the other params to the bot as well...
To
andFrom
. Is the bot not expecting dialin_settings?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vr000m you're right, it's not expecting dialin_settings. I wasn't sure if I needed to change the definition of the Python types in this file or change the bot file. I opted for this file but I can change the bot file instead.