Module: kamailio
Branch: master
Commit: a95abdfe84f6f2af37097e3571816abab11d218b
URL: 
https://github.com/kamailio/kamailio/commit/a95abdfe84f6f2af37097e3571816abab11d218b

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2015-04-14T12:38:59+02:00

presence: retrieve order used everywhere for generating notify request

- it was not used in some cases

---

Modified: modules/presence/notify.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/a95abdfe84f6f2af37097e3571816abab11d218b.diff
Patch: 
https://github.com/kamailio/kamailio/commit/a95abdfe84f6f2af37097e3571816abab11d218b.patch

---

diff --git a/modules/presence/notify.c b/modules/presence/notify.c
index 641cb40..5cd6167 100644
--- a/modules/presence/notify.c
+++ b/modules/presence/notify.c
@@ -653,7 +653,11 @@ str* get_p_notify_body(str pres_uri, pres_ev_t* event, 
str* etag,
                return NULL;
        }
 
-       query_str = str_received_time_col;
+       if(pres_retrieve_order==1) {
+               query_str = str_priority_col;
+       } else {
+               query_str = str_received_time_col;
+       }
        if (pa_dbf.query (pa_db, query_cols, 0, query_vals,
                 result_cols, n_query_cols, n_result_cols, &query_str ,  
&result) < 0) 
        {


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to