Based on CSipSimple