sip API 2.0 porting

semi-automatic porting to sip API 2.0 without in depth desting