I should have added following:
You need to buy ticket from your station counter window unreserved ticket.
with this ticket you contact TTE and express your 'emergency' So that TTE will 'understand' your need. and help you with seat/berth.
After charting is done, unutilised quotas are available at disposal through TTE.