What version of the RTSP server are you using? What are the problems? Use GST_DEBUG=<XXX> to get debugging logs. You will have to experiment with the 'XXX' to get useful logging. Google for the syntax. Then post part of the log if you still have problems.
I am experimenting with test application (test-launch) of gst-rtsp-server. I
am trying the below given pipeline1 but I am not able to see the output. If
I replace udp input with file input (pipeline2) everything works fine.