Module: kamailio
Branch: master
Commit: 5c7bc8a3c1a289111c08334cc4500291f01324aa
URL:
https://github.com/kamailio/kamailio/commit/5c7bc8a3c1a289111c08334cc450029…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-12-12T09:48:45+01:00
pua: renamed MI flags to reflect use of RPC
---
Modified: src/modules/pua/hash.h
Modified: src/modules/pua/send_publish.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5c7bc8a3c1a289111c08334cc450029…
Patch:
https://github.com/kamailio/kamailio/commit/5c7bc8a3c1a289111c08334cc450029…
---
diff --git a/src/modules/pua/hash.h b/src/modules/pua/hash.h
index ee4c01fda3..cc73d3e761 100644
--- a/src/modules/pua/hash.h
+++ b/src/modules/pua/hash.h
@@ -48,9 +48,9 @@
#define XMPP_PUBLISH 1<<3
#define XMPP_SUBSCRIBE 1<<4
#define XMPP_INITIAL_SUBS 1<<5
-#define MI_PUBLISH 1<<6
-#define MI_ASYN_PUBLISH 1<<7
-#define MI_SUBSCRIBE 1<<8
+#define RPC_PUBLISH 1<<6
+#define RPC_ASYN_PUBLISH 1<<7
+#define RPC_SUBSCRIBE 1<<8
#define RLS_SUBSCRIBE 1<<9
#define DIALOG_PUBLISH 1<<10
#define PURPLE_PUBLISH 1<<11
diff --git a/src/modules/pua/send_publish.c b/src/modules/pua/send_publish.c
index 5bd13e0b59..1c9d8ed12b 100644
--- a/src/modules/pua/send_publish.c
+++ b/src/modules/pua/send_publish.c
@@ -247,8 +247,8 @@ void publ_cback_func(struct cell *t, int type, struct tmcb_params
*ps)
{
find_and_delete_record(hentity, hash_code);
- if(ps->code== 412 && hentity->body && hentity->flag!=
MI_PUBLISH
- && hentity->flag!= MI_ASYN_PUBLISH)
+ if(ps->code== 412 && hentity->body && hentity->flag!=
RPC_PUBLISH
+ && hentity->flag!= RPC_ASYN_PUBLISH)
{
/* sent a PUBLISH within a dialog that no longer exists
* send again an intial PUBLISH */