Module: kamailio
Branch: master
Commit: 7fc2c92e2fd8a9122440c073ba446940496ca480
URL:
https://github.com/kamailio/kamailio/commit/7fc2c92e2fd8a9122440c073ba44694…
Author: lazedo <luis(a)2600hz.com>
Committer: lazedo <luis(a)2600hz.com>
Date: 2015-10-28T16:54:54Z
kazoo: change presence idle to available
---
Modified: modules/kazoo/kz_pua.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7fc2c92e2fd8a9122440c073ba44694…
Patch:
https://github.com/kamailio/kamailio/commit/7fc2c92e2fd8a9122440c073ba44694…
---
diff --git a/modules/kazoo/kz_pua.c b/modules/kazoo/kz_pua.c
index e75cad3..b1f785f 100644
--- a/modules/kazoo/kz_pua.c
+++ b/modules/kazoo/kz_pua.c
@@ -170,7 +170,7 @@ int kz_pua_publish_presence_to_presentity(struct json_object
*json_obj) {
str event = str_init("presence");
str presence_body = { 0, 0 };
str activity = str_init("");
- str note = str_init("Idle");
+ str note = str_init("Available");
str status = str_presence_status_online;
int expires = 0;
@@ -217,9 +217,9 @@ int kz_pua_publish_presence_to_presentity(struct json_object
*json_obj) {
note = str_presence_note_offline;
status = str_presence_status_offline;
- } else {
- note = str_presence_note_idle;
- }
+ }; // else {
+ // note = str_presence_note_idle;
+// }
sprintf(body, PRESENCE_BODY, from_user.s, callid.s, status.s, note.s, activity.s,
note.s);