コード例 #1
0
        private KamailioRegistrationExpireMessage ParseRegExpire(KamailioData kamailioData)
        {
            var expire = new KamailioRegistrationExpireMessage()
            {
                SipAddress = new SipUri(kamailioData.GetField("aor")),
                ReceivedIp = kamailioData.GetField("ip"),
            };

            return(expire);
        }
コード例 #2
0
 private KamailioMessageHandlerResult UnregisterCodec(KamailioRegistrationExpireMessage expireMessage)
 {
     return(_sipRepository.DeleteRegisteredSip(expireMessage.SipAddress.UserAtHost));
 }