Module: sip-router
Branch: master
Commit: 776d941bef2e97089493a896bf0b57607078c52d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=776d941…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jul 30 19:40:50 2010 +0200
registrar(k): reset local contact holder
- when an UA fetches the bindings for a user and the user isn't
registered, properly return an empty contact.
- closes SF#3035778, patch by Alex Hermann
---
modules_k/registrar/save.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules_k/registrar/save.c b/modules_k/registrar/save.c
index d22def0..9955034 100644
--- a/modules_k/registrar/save.c
+++ b/modules_k/registrar/save.c
@@ -457,6 +457,8 @@ static inline int insert_contacts(struct sip_msg* _m, contact_t* _c,
if (r->contacts)
build_contact(r->contacts);
ul.release_urecord(r);
+ } else { /* No contacts found */
+ build_contact(NULL);
}
#ifdef USE_TCP