<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>17 sep 2013 kl. 14:22 skrev Steve Davies <<a href="mailto:steve-lists-srusers@connection-telecom.com">steve-lists-srusers@connection-telecom.com</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 September 2013 14:02, Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br>Because the REGISTER has expires=0 on the contact, so this is a DEREGISTRATION,</div>
<div>and that's why you do not see any contacts in the 200 OK.</div><div>You need to check that you have contact headers before saving based on the 200 OK. Or possibly</div><div>read the response code from save().</div>
<span class=""><font color="#888888"><br></font></span></div></blockquote><div><br></div><div>I do understand that its a deregistration.  I want my Kamailio to remove the local registration, but it is not.</div>
<div><br></div><div>The registrar module save() documentation says that "The function processes a REGISTER message. It can add, remove or modify usrloc records depending on Contact and Expires HFs in the REGISTER message.".  So it seems it would do the right thing if it could see the actual REGISTER message.  But since I'm in the in reply_route looks like it is working off the reply.  In which case it can't "see" the Contact and especially not the ;expires=0.  Is that right?</div></div></div></div></blockquote><a href="http://www.kamailio.org/wiki/cookbooks/4.0.x/pseudovariables#t_req_pv">http://www.kamailio.org/wiki/cookbooks/4.0.x/pseudovariables#t_req_pv</a></div><div><br></div><div>Documentation is your best friend!</div><div><br></div><div>/O</div>
<br></body></html>