When ICE is enabled, when peer sent UPDATE with selected ICE candidates asterisk not giving 200 OK with selected candidates in c= line

When called from a SIP endpoint to Asterisk, asterisk is not using selected candidates from UPDATE received from endpoint.

  1. sip endpoint called asterisk, endpoint sent ICE candidates in SDP
  2. Asterisk responded with ICE candidates in 183 SDP
  3. sip endpoint sent UPDATE with selected ICE candidate pair in SDP(candidates and resmote candidates)
  4. Asterisk responding with SDP from 183, instead of selected candidate pairs from ICE processing.

In Asterisk enabled following

  • PJSIP
  • icesupport, stunaddr, turnaddr

Please suggest the fix.