Module: sip-router Branch: master Commit: a3d6d80d1805109b6340cd7182323ef9ad9c11d4 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a3d6d80d...
Author: Marius Bucur marius@marius-bucur.ro Committer: Marius Bucur marius@marius-bucur.ro Date: Wed Jul 20 20:27:51 2011 +0300
fixed issue regarding caching presentity information when in DB_ONLY mode
---
modules_k/presence/notify.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/modules_k/presence/notify.c b/modules_k/presence/notify.c index da4ea8d..4f1ca18 100644 --- a/modules_k/presence/notify.c +++ b/modules_k/presence/notify.c @@ -637,7 +637,12 @@ str* get_p_notify_body(str pres_uri, pres_ev_t* event, str* etag, LM_ERR("while parsing uri\n"); return NULL; } - + + /* if in db_only mode, get the presentity information from database - skip htable search */ + if(dbmode == DB_ONLY) + { + goto db_query; + } /* search in hash table if any record exists */ hash_code= core_hash(&pres_uri, NULL, phtable_size); if(search_phtable(&pres_uri, event->evp->type, hash_code)== NULL)