Module: kamailio
Branch: master
Commit: 81d358623fb18e0a14a25eed6fde81a8a419aee9
URL:
https://github.com/kamailio/kamailio/commit/81d358623fb18e0a14a25eed6fde81a…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: lazedo <luis.azedo(a)factorlusitano.com>
Date: 2015-10-28T17:28:55Z
Merge pull request #386 from kamailio/lazedo/patch-1
kazoo: change presence idle to available
---
Modified: modules/kazoo/kz_pua.c
---
Diff:
https://github.com/kamailio/kamailio/commit/81d358623fb18e0a14a25eed6fde81a…
Patch:
https://github.com/kamailio/kamailio/commit/81d358623fb18e0a14a25eed6fde81a…
---
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);