"https://phone.your-tenant.example", "engine" => "sipjs", // sipjs | jssip | native "width" => "820", "height" => "1100" ], $atts); $page = $a["engine"] === "jssip" ? "jssip.html" : ($a["engine"] === "native" ? "office.html" : "sip-js.html"); $src = esc_url(trailingslashit($a["tenant"]) . $page); $width = intval($a["width"]); $height = intval($a["height"]); return sprintf( '', $src, $width, $height ); }); // Usage in a post/page: // [codeb_softphone tenant="https://phone.acme.example" engine="sipjs"]