From dolphinctk@gmail.com Sat Mar 28 07:58:31 2015 From: dolphin To: sr-users@lists.kamailio.org Subject: [SR-Users] evapi_relay some problems Date: Sat, 28 Mar 2015 14:58:25 +0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1095615884==" --===============1095615884== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hello, I test the evapi modules function , but not full operation ,only receive not send to client I capture the important setup parameters are as follows: debug=3 loadmodule "evapi.so" #----- evapi params ----- # modparam("evapi", "bind_addr", "0.0.0.0:8448") modparam("evapi", "netstring_format", 0) modparam("evapi", "workers", 4) event_route[evapi:connection-new] { evapi_relay("{ \"event\": \"test\",\n \"data\": { \"fU\": \"fU\" }\n}"); xlog("L_WARN", "new connection from $evapi(srcaddr):$evapi(srcport)\n"); } scene : One client connected kamailio server x.x.x.x:8448 use nc tools , I get garbled , kamailioserver not sent to me client , Because this is the right format to display josn ? sh-4.2# nc -n x.x.x.x 8448 ; øX±š^C any suggestions or missing something ? my syslog : Mar 28 14:31:37 SIP /home/pkg/kamailio-4.2.3/sbin/kamailio[297164]: DEBUG: evapi [evapi_dispatch.c:385]: evapi_accept_client(): new connection - pos[0] from: [x.x.x.x:56215] Mar 28 14:31:37 SIP /home/pkg/kamailio-4.2.3/sbin/kamailio[297164]: DEBUG: evapi [evapi_dispatch.c:531]: evapi_relay(): relaying event data [{ "event": "test",#012 "data": { "fU": "fU" }#012}] Mar 28 14:31:37 SIP /home/pkg/kamailio-4.2.3/sbin/kamailio[297164]: DEBUG: evapi [evapi_dispatch.c:561]: evapi_relay(): sent [0x7f939ab158f8] [{ "event": "test",#012 "data": { "fU": "fU" }#012}] (44) Mar 28 14:31:37 SIP /home/pkg/kamailio-4.2.3/sbin/kamailio[297164]: WARNING: