account->calls ->get($callSid) ->update("CurrentUrl", $Url . "accept_twiml.php"); $msg = urlencode("Call Removed from Queue... "); header("Location: completed.php?CallSid=$callSid&msg=$msg"); } catch(Exception $e) { $err = urlencode($e->getMessage()); header("Location: accept.php?CallSid=$callSid&msg=$err"); } } ?>