account->calls ->create($CallerID, $_REQUEST['number'], $url); /* redirect back to the main page with CallSid */ $msg = urlencode("Calling... ".$_REQUEST['number']); header("Location: .?msg=$msg&CallSid=" . $call->sid); } catch(Exception $e) { $err = urlencode($e->getMessage()); header("Location: .?msg=$err"); die; } ?>