improve TDSessionDescription template code