added new implementation of sipmessage, and cotninued working on
onRegister