Module: kamailio Branch: master Commit: 4404f75cf194e8fd727c2ffaeeea41d2193decf6 URL: https://github.com/kamailio/kamailio/commit/4404f75cf194e8fd727c2ffaeeea41d2...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-08-22T13:47:47+02:00
evapi: do cfg framework update on i/o events
---
Modified: modules/evapi/evapi_dispatch.c
---
Diff: https://github.com/kamailio/kamailio/commit/4404f75cf194e8fd727c2ffaeeea41d2... Patch: https://github.com/kamailio/kamailio/commit/4404f75cf194e8fd727c2ffaeeea41d2...
---
diff --git a/modules/evapi/evapi_dispatch.c b/modules/evapi/evapi_dispatch.c index 159d14e..0d76c9f 100644 --- a/modules/evapi/evapi_dispatch.c +++ b/modules/evapi/evapi_dispatch.c @@ -36,6 +36,7 @@ #include "../../sr_module.h" #include "../../dprint.h" #include "../../ut.h" +#include "../../cfg/cfg_struct.h" #include "../../lib/kcore/faked_msg.h"
#include "evapi_dispatch.h" @@ -254,6 +255,8 @@ void evapi_recv_client(struct ev_loop *loop, struct ev_io *watcher, int revents) return; }
+ cfg_update(); + evapi_env_reset(&evenv); if(rlen == 0) { /* client is gone */ @@ -342,6 +345,8 @@ void evapi_accept_client(struct ev_loop *loop, struct ev_io *watcher, int revent return; }
+ cfg_update(); + /* accept new client connection */ csock = accept(watcher->fd, (struct sockaddr *)&caddr, &clen);
@@ -417,6 +422,8 @@ void evapi_recv_notify(struct ev_loop *loop, struct ev_io *watcher, int revents) return; }
+ cfg_update(); + /* read message from client */ rlen = read(watcher->fd, &sbuf, sizeof(str*));