Hello Eric,
You can create an action similar to this that will loop the same script until the Interaction State is connected, and then open the URL.
I generally use {{Scripter.Raw Interaction State}}, since if you have agents using different languages on their UI {{Scripter.Interaction State}} will be translated to the agents UI language. If I remember correctly it gives the state in small letters, but you can test it by having it show in the script.

------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
------------------------------
Original Message:
Sent: 05-01-2024 09:21
From: Eric Berkshire
Subject: Determine call connect event on a script.
Thanks, Muhammad. I'll give that a shot.
------------------------------
Eric Berkshire
New American Funding, LLC
------------------------------
Original Message:
Sent: 04-30-2024 17:49
From: Muhammad Zubair Awan
Subject: Determine call connect event on a script.
Hi Eric
Why don't you use built in script variable {{Scripter.Interaction State}} to determine the call state?
------------------------------
Cheers
Zubair