private KamailioRegistrationExpireMessage ParseRegExpire(KamailioData kamailioData) { var expire = new KamailioRegistrationExpireMessage() { SipAddress = new SipUri(kamailioData.GetField("aor")), ReceivedIp = kamailioData.GetField("ip"), }; return(expire); }
private KamailioMessageHandlerResult UnregisterCodec(KamailioRegistrationExpireMessage expireMessage) { return(_sipRepository.DeleteRegisteredSip(expireMessage.SipAddress.UserAtHost)); }