If webrtc is yes in ps_endpoints table, webphone works but softphone not

You can’t. WebRTC and normal phones use different incompatible SDP, thus why there are options to configure this. Noone has working on trying to make it work for both.