dear ashok,
if ur using mac u can use pwnage tool to unlock your iphone 3.1 but since your bootloader is 5,i think your out of luck for now.

patience is a virtue so hold on...