i dont think you can buy unreserved ticket of salem to banglore at banglore, i think. you may get reserved 2s ticket.
once i wanted to buy general ticket of VSKP-BZA at duvvada station but they denied.
similarly when i got to secunderabad, i generally take ticket in enrouted local station. they issue ticket from that local station, but not from secunderabad