<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>did you get the event_route[evapi:connection-new] executed when
you opened the connection towards evapi?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 22/08/16 09:26, Efelin Novak wrote:<br>
</div>
<blockquote
cite="mid:CABKTgAppPX8ffFWiD+zb17gRJoo0dKmRZraKeo-+2Z4zMXKVFA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>thanks for a reply. Command "ngrep -d any -t -W byline port
8448" prints</div>
<div><br>
</div>
<div>#####</div>
<div><br>
</div>
<div>when CGRateS and telnet connect (TCP handshakes) and stays
quiet during the rest of the test. When I type something into
telnet, I can see incoming packets:</div>
<div><br>
</div>
<div>
<div>T 2016/08/22 09:18:21.115922 <a moz-do-not-send="true"
href="http://192.168.30.1:46378">192.168.30.1:46378</a>
-> <a moz-do-not-send="true"
href="http://192.168.30.29:8448">192.168.30.29:8448</a>
[AP]</div>
<div>efelin.</div>
</div>
<div><br>
</div>
<div>Unfortunetely I am no closer to resolving my issue.</div>
<div><br>
</div>
<div>Netstat shows:</div>
<div><br>
</div>
<div>
<div>
<div><a class="moz-txt-link-abbreviated" href="mailto:root@cgrates:/usr/share/cgrates/tutorials/kamevapi/cgrates/etc/init.d#">root@cgrates:/usr/share/cgrates/tutorials/kamevapi/cgrates/etc/init.d#</a>
netstat -tlpnueea | grep kamailio</div>
<div>tcp     0    0 <a moz-do-not-send="true"
href="http://0.0.0.0:8448">0.0.0.0:8448</a> Â Â Â Â Â
 0.0.0.0:*        LISTEN    0      78179  Â
 14540/kamailio  </div>
<div>tcp     0    0 <a moz-do-not-send="true"
href="http://192.168.30.29:5060">192.168.30.29:5060</a>
   0.0.0.0:*        LISTEN    0      78149
   14548/kamailio  </div>
<div>tcp     0    0 <a moz-do-not-send="true"
href="http://127.0.0.1:8448">127.0.0.1:8448</a> Â Â Â Â
 <a moz-do-not-send="true" href="http://127.0.0.1:51976">127.0.0.1:51976</a>
    ESTABLISHED 0      78552    14540/kamailio
 </div>
<div>tcp     0    0 <a moz-do-not-send="true"
href="http://192.168.30.29:8448">192.168.30.29:8448</a>
   <a moz-do-not-send="true"
href="http://192.168.30.1:46432">192.168.30.1:46432</a>
   ESTABLISHED 0      78493    14540/kamailio  </div>
<div>udp     0    0 <a moz-do-not-send="true"
href="http://192.168.30.29:5060">192.168.30.29:5060</a>
   0.0.0.0:*              0      78147
   14529/kamailio </div>
</div>
</div>
<div><br>
</div>
<div>Thanks.</div>
<div><br>
</div>
<div>Jan</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-08-20 4:22 GMT+02:00 Infinicalls
Infinicalls <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:infinicalls@gmail.com" target="_blank">infinicalls@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
 Use "ngrep -t -W byline port 8448" to sniff the port and
see if it helps.<br>
<br>
regards<br>
Ganesh Kumar<br>
<div>
<div class="h5"><br>
<br>
On 8/19/16, Efelin Novak <<a moz-do-not-send="true"
href="mailto:efelin.novak@gmail.com">efelin.novak@gmail.com</a>>
wrote:<br>
> Hi folks,<br>
><br>
> I came into a problem with evapi module, while I
was trying to make the<br>
> CGRateS tutorial work. It does not send any
messages at all.<br>
><br>
> Taken steps:<br>
><br>
> I start kamailio with debug=3.<br>
><br>
> I start:<br>
>Â Â CGRates (on the kamailio machine)<br>
>Â Â telnet 192.168.30.29 8448 (from my PC)<br>
>Â Â tcpdump port 8448 -A -s0 -i any (on the kamailio
machine)<br>
><br>
> Telnet command successfully connects to kamailio.
Kamailio yells:<br>
><br>
> root@cgrates:/opt/kamailio/<wbr>src/kamailio-4.4/kamailio#
11(12205) DEBUG:<br>
> evapi [evapi_dispatch.c:453]:
evapi_accept_client(): new connection -<br>
> pos[1] from: [<a moz-do-not-send="true"
href="http://192.168.30.1:40312" rel="noreferrer"
target="_blank">192.168.30.1:40312</a>]<br>
> 11(12205) INFO: <script>: Starting Evapi
connector srcaddr 192.168.30.1<br>
> srcport 40312 condix 1<br>
> 11(12205) DEBUG: htable [ht_var.c:90]:
pv_set_ht_cell(): set value for<br>
> $sht(cgrconn=>cgr)<br>
><br>
> A similar message is printed when CGRateS connects
in.<br>
><br>
> Afterwards I make a call to Kamailio. INVITE is
routed to a following<br>
> command:<br>
><br>
> evapi_async_relay("{\"event\":<wbr>\"CGR_AUTH_REQUEST\",<br>
>Â Â Â Â Â Â Â Â Â \"tr_index\":\"$T(id_index)\",<br>
>Â Â Â Â Â Â Â Â Â \"tr_label\":\"$T(id_label)\",<br>
>Â Â Â Â Â Â Â Â Â \"cgr_reqtype\":\"$dlg_var(<wbr>cgrReqType)\",<br>
>Â Â Â Â Â Â Â Â Â \"cgr_tenant\":\"$dlg_var(<wbr>cgrTenant)\",<br>
>Â Â Â Â Â Â Â Â Â \"cgr_account\":\"$dlg_var(<wbr>cgrAccount)\",<br>
>Â Â Â Â Â Â Â Â Â \"cgr_destination\":\"$dlg_<wbr>var(cgrDestination)\",<br>
>Â Â Â Â Â Â Â Â Â \"cgr_setuptime\":\"$TS\",<br>
>Â Â Â Â Â Â Â Â Â \"cgr_computelcr\":\"true\"}")<wbr>;<br>
><br>
> Now the kamailio writes:<br>
><br>
> .<br>
> .<br>
> .<br>
>Â 2(12196) DEBUG: dialog [dlg_var.c:260]:
print_lists(): Dialog var-list<br>
> (0x7f196d1c5248):<br>
>Â 2(12196) DEBUG: dialog [dlg_var.c:265]:
print_lists(): cgrDestination=1002<br>
> (flags 1)<br>
>Â 2(12196) DEBUG: dialog [dlg_var.c:265]:
print_lists(): cgrAccount=1001<br>
> (flags 1)<br>
>Â 2(12196) DEBUG: dialog [dlg_var.c:265]:
print_lists(): cgrTenant=<br>
> <a moz-do-not-send="true"
href="http://cgrates.org" rel="noreferrer"
target="_blank">cgrates.org</a> (flags 1)<br>
>Â 2(12196) DEBUG: dialog [dlg_var.c:265]:
print_lists(): cgrReqType=*prepaid<br>
> (flags 1)<br>
>Â 2(12196) DEBUG: dialog [dlg_hash.c:922]:
dlg_unref(): unref dlg<br>
> 0x7f196d1c4c08 with 1 -> 1<br>
>Â 2(12196) DEBUG: evapi [evapi_dispatch.c:603]:
evapi_relay(): relaying<br>
> event data [{"event":"CGR_AUTH_REQUEST",<br>
> "tr_index":"59559",<br>
> "tr_label":"1886589610",<br>
> "cgr_reqtype":"*prepaid",<br>
> "cgr_tenant":"<a moz-do-not-send="true"
href="http://cgrates.org" rel="noreferrer"
target="_blank">cgrates.org</a>",<br>
> "cgr_account":"1001",<br>
> "cgr_destination":"1002",<br>
> "cgr_setuptime":"1471623526",<br>
> "cgr_computelcr":"true"}] (246)<br>
>Â 2(12196) DEBUG: evapi [evapi_dispatch.c:628]:
evapi_relay(): sending<br>
> [0x7f196d1c88b8] [246:{"event":"CGR_AUTH_<wbr>REQUEST",<br>
> "tr_index":"59559",<br>
> "tr_label":"1886589610",<br>
> "cgr_reqtype":"*prepaid",<br>
> "cgr_tenant":"<a moz-do-not-send="true"
href="http://cgrates.org" rel="noreferrer"
target="_blank">cgrates.org</a>",<br>
> "cgr_account":"1001",<br>
> "cgr_destination":"1002",<br>
> "cgr_setuptime":"1471623526",<br>
> "cgr_computelcr":"true"},] (251)<br>
>Â 2(12196) DEBUG: evapi [evapi_dispatch.c:630]:
evapi_relay(): Len of write<br>
> is 8<br>
>Â 2(12196) INFO: <script>: suspended
transaction: 59559 / 1886589610<br>
> .<br>
> .<br>
> .<br>
><br>
> However no reply from CGRateS comes, tcpdump is
quiet (no message was sent<br>
> or received), as well as my testing telnet session
(nothing is received).<br>
><br>
> The network doesn't seems to be the issue, as when
I write "6:Efelin," to<br>
> the telnet session, kamailio executes the route<br>
> event_route[evapi:message-<wbr>received]<br>
><br>
> Versions:<br>
><br>
> # dpkg -l | grep libev-dev<br>
> ii libev-dev           1:4.15-3   Â
      amd64<br>
><br>
> # uname -a<br>
> Linux cgrates 3.16.0-4-amd64 #1 SMP Debian
3.16.7-ckt25-2+deb8u3<br>
> (2016-07-02) x86_64 GNU/Linux<br>
><br>
> # kamailio -V<br>
> version: kamailio 4.4.2 (x86_64/linux) 384e90<br>
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP,
TLS_HOOKS, USE_RAW_SOCKS,<br>
> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM,
SHM_MMAP, PKG_MALLOC,<br>
> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY,
USE_FUTEX,<br>
> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR,<br>
> USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE
262144, MAX_LISTEN 16,<br>
> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE
8MB<br>
> poll method support: poll, epoll_lt, epoll_et,
sigio_rt, select.<br>
> id: 384e90<br>
> compiled on 12:04:04 Aug 19 2016 with gcc 4.9.2<br>
><br>
> I wasn't able to find anything that might block the
connection. Can anyone<br>
> point me to, how to debug this issue further?<br>
><br>
> Thanks for any advice.<br>
><br>
> Kind regards<br>
><br>
> Jan Muranyi<br>
><br>
<br>
</div>
</div>
______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>