ported to sip API 2.0