Skip to content

Commit

Permalink
pua: renamed MI flags to reflect use of RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 12, 2017
1 parent 5c621a9 commit 5c7bc8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/modules/pua/hash.h
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/modules/pua/send_publish.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 5c7bc8a

Please sign in to comment.