Module: kamailio Branch: master Commit: 8729aa8cde19f39eebce7ef9be7e31ea121b9a99 URL: https://github.com/kamailio/kamailio/commit/8729aa8cde19f39eebce7ef9be7e31ea...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-03-26T21:19:48+01:00
presence: use name of received_time column from associated variable
---
Modified: modules/presence/notify.c
---
Diff: https://github.com/kamailio/kamailio/commit/8729aa8cde19f39eebce7ef9be7e31ea... Patch: https://github.com/kamailio/kamailio/commit/8729aa8cde19f39eebce7ef9be7e31ea...
---
diff --git a/modules/presence/notify.c b/modules/presence/notify.c index 94082aa..aeee31b 100644 --- a/modules/presence/notify.c +++ b/modules/presence/notify.c @@ -596,6 +596,7 @@ str* get_p_notify_body(str pres_uri, pres_ev_t* event, str* etag, struct sip_uri uri; unsigned int hash_code; str sender; + static str query_str;
if(parse_uri(pres_uri.s, pres_uri.len, &uri)< 0) { @@ -651,7 +652,7 @@ str* get_p_notify_body(str pres_uri, pres_ev_t* event, str* etag, return NULL; }
- static str query_str = str_init("received_time"); + 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) {