The portals themselves were perfected over time by other races, including the Tollan and the Ori ... space for deeper lore ...
As a quick refresher, "Stargate SG-1" revolves around the eponymous team, which uses portal-like devices known ... including the (now-extinct) Ori, who were known for their boundless knowledge ...