Module: sip-router
Branch: kamailio_3.0
Commit: e9229ca19b4946cecda89cc3ada716ba8a506b3c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e9229ca…
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
(cherry picked from commit 776d941bef2e97089493a896bf0b57607078c52d)
---
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 50bf57b..66b18f5 100644
--- a/modules_k/registrar/save.c
+++ b/modules_k/registrar/save.c
@@ -456,6 +456,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