17 sep 2013 kl. 14:22 skrev Steve Davies <steve-lists-srusers@connection-telecom.com>:




On 17 September 2013 14:02, Olle E. Johansson <oej@edvina.net> wrote:

Because the REGISTER has expires=0 on the contact, so this is a DEREGISTRATION,
and that's why you do not see any contacts in the 200 OK.
You need to check that you have contact headers before saving based on the 200 OK. Or possibly
read the response code from save().


I do understand that its a deregistration.  I want my Kamailio to remove the local registration, but it is not.

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?
http://www.kamailio.org/wiki/cookbooks/4.0.x/pseudovariables#t_req_pv

Documentation is your best friend!

/O