Webrtcbin to webrtcbin passthrough proxy

Hey - I am having difficulty making the pipeine webrtcbin to webrtcbin work. So I am doing a webrtc passthrough proxy in C. I need to do some media processing so this is just to get the connection running:

webrtc_recv → rtpdepay(opus and h264) → tee → valve → rtppay (opus and h264) → webrtc_send

I need to set webrtc_send to “READY” and wait for webrtc_recv to get a connection. Then when the valve gets data, I need to release the data and set webrtc_send to “PLAYING” in order for the SDP and media negotiation to fully cooperate.

However - this does not seem to do the trick.

Any ideas are welcome… Thanks!