Skip to content

Commit

Permalink
pua_rpc: use RPC flags for callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 12, 2017
1 parent 5c7bc8a commit 4d28f00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/pua_rpc/pua_rpc.c
Expand Up @@ -249,7 +249,7 @@ static void pua_rpc_publish(rpc_t* rpc, void* c)
return;
}
publ.cb_param = dctx;
publ.source_flag = MI_ASYN_PUBLISH;
publ.source_flag = RPC_ASYN_PUBLISH;

ret = pua_rpc_api.send_publish(&publ);
LM_DBG("pua send_publish returned %d\n", ret);
Expand Down Expand Up @@ -326,7 +326,7 @@ static void pua_rpc_subscribe(rpc_t* rpc, void* ctx)
subs.contact= &watcher_uri;

subs.expires= vexp;
subs.source_flag |= MI_SUBSCRIBE;
subs.source_flag |= RPC_SUBSCRIBE;
subs.event= get_event_flag(&event);
if(subs.event< 0) {
LM_ERR("unknown event\n");
Expand Down Expand Up @@ -393,7 +393,7 @@ static int mod_init(void)
return -1;
}

if (pua_rpc_api.register_puacb(MI_ASYN_PUBLISH, pua_rpc_publish_callback, NULL) < 0) {
if (pua_rpc_api.register_puacb(RPC_ASYN_PUBLISH, pua_rpc_publish_callback, NULL) < 0) {
LM_ERR("could not register callback\n");
return -1;
}
Expand Down

0 comments on commit 4d28f00

Please sign in to comment.