Fix fetching cseq number for replies.

Closes #165.

(cherry picked from commit acb1b378e59fc2f7608e566347ceebd5f4159210)