[sr-dev] git:master:22dd8c88: presence: return 200 instead of 202 by default

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 30 08:25:22 CET 2021


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

Author: Laurențiu Nicola <lnicola at dend.ro>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-11-30T08:25:18+01:00

presence: return 200 instead of 202 by default

---

Modified: src/modules/presence/doc/presence_admin.xml
Modified: src/modules/presence/presence.c

---

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

---

diff --git a/src/modules/presence/doc/presence_admin.xml b/src/modules/presence/doc/presence_admin.xml
index 18d276b73d..764aa26a56 100644
--- a/src/modules/presence/doc/presence_admin.xml
+++ b/src/modules/presence/doc/presence_admin.xml
@@ -990,14 +990,14 @@ modparam("presence", "timer_mode", 0)
 	</para>
 	<para>
 		<emphasis>
-			Default value is 0.
+			Default value is 1.
 		</emphasis>
 	</para>
 	<example>
 		<title>Set <varname>subs_respond_200</varname> parameter</title>
 		<programlisting format="linespecific">
 ...
-modparam("presence", "subs_respond_200", 1)
+modparam("presence", "subs_respond_200", 0)
 ...
 </programlisting>
 	</example>
diff --git a/src/modules/presence/presence.c b/src/modules/presence/presence.c
index 3e1e347490..da253acbac 100644
--- a/src/modules/presence/presence.c
+++ b/src/modules/presence/presence.c
@@ -166,7 +166,7 @@ int pres_retrieve_order = 0;
 str pres_retrieve_order_by = str_init("priority");
 int pres_enable_dmq = 0;
 int pres_delete_same_subs = 0;
-int pres_subs_respond_200 = 0;
+int pres_subs_respond_200 = 1;
 
 int pres_db_table_lock_type = 1;
 db_locking_t pres_db_table_lock = DB_LOCKING_WRITE;




More information about the sr-dev mailing list