Skip to content

Commit f3a96a4

Browse files
committed
[WIP] "Warm transfer" demo
1 parent b0b8e08 commit f3a96a4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/static/warm_transfer.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,10 +666,8 @@ async def on_participant_left(transport: DailyTransport, participant: Dict[str,
666666
)
667667
customer_token = await get_customer_token(daily_rest_helper=daily_rest_helper, room_url=room_url)
668668
human_agent_token = await get_human_agent_token(daily_rest_helper=daily_rest_helper, room_url=room_url)
669-
# TODO: just for local testing; undo below changes
670-
prebuilt_room_url = "https://paulkprebuilt.ngrok.io/hello?domain=paulk&customHost=paulk.ngrok.io&apiHost=paulk.ngrok.io&bypassRegionDetection=true"
671-
logger.info(f"TO JOIN AS CUSTOMER: {prebuilt_room_url}{'?' if '?' not in room_url else '&'}t={customer_token}")
672-
logger.info(f"TO JOIN AS AGENT: {prebuilt_room_url}{'?' if '?' not in room_url else '&'}t={human_agent_token}")
669+
logger.info(f"TO JOIN AS CUSTOMER: {room_url}{'?' if '?' not in room_url else '&'}t={customer_token}")
670+
logger.info(f"TO JOIN AS AGENT: {room_url}{'?' if '?' not in room_url else '&'}t={human_agent_token}")
673671

674672
# Run the pipeline
675673
runner = PipelineRunner()

0 commit comments

Comments
 (0)