webrtcbin restart ice support

in webrtcbin is it possible to force ice-restart ?

I detect a server restart through external callback and after the restart, i want to restart ice to establish connection again.

on getting restart callback, i tried offer-answer but it did not trigger ice-DTLS handshake.

In logs i can see logs like -

checking if negotiation is needed

no negotiation needed

ICE connection state change from completed(3) to connected(2)

ICE connection state change from connected(2) to completed(3)

ICE connection state: Completed


browsing through the code i can see comment -

/* FIXME: deal with ICE restarts */

Please let me know -

  1. is it possible to trigger ice-restart ?

  2. what would it take to add support for it, general guideline.

Regards

Rajneesh