How to root and flash a android Galaxy Ace s5830t? i am trying to root my device which has android 2.3 in it. The reason is something has gone wrong and wifi and bluethooth are not functioning. every time i try connect,  it says error and automatically gets disabled. so i decided to, root the device and install a fresh ROM.  i am able to root it but when trying to install the ROM it doesnt allow me. it prioritizes TELSTRA.  

Any help on this is highly appreciated from android geeks.

EDIT1

i was able to flash it and now there is a problem that phone is not starting up. its stucked in well come screen for more than half and hour now. but i saw in the screen instead of galaxy ace S5830T it shows S5830 which is a change. anyways to recover this kind of a situation ?
According to this old XDA post it's the same as the S5830. I'm not really sure though, you need to investigate this on your own if have doubt. Note also, that your S5830 is a legacy device and only really runs Android 2.3 well.

So you could either follow CyanogenMod's installation instructions for the S5830 or search the S5830 section on XDA here.

Note: If you want to replace the stock firmware, you don't have to root it in the first place; it's not needed to be able to flash it. You'll have root with the modded firmware, then.