<div dir="ltr">Hello All. I still have problems with disconnect kamailio to redis.<br><br>All tests above  are correct but when INVITE arrives kamailio stil disconnects from redis.  Haw can I debug this deeper?</div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-27 16:48 GMT+03:00 Javi Gallart <span dir="ltr"><<a href="mailto:jgallart@systemonenoc.com" target="_blank">jgallart@systemonenoc.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hello<br>
      <br>
      I ignore your setup, a few tips that can help you to narrow down
      the problem:<br>
      <br>
      -Make sure your kamailio is connected to redis: 'redis-cli info |
      grep connected_clients' should show a number bigger than the
      number of kamailio children <br>
      <br>
      -Print with xlog the value of $si before calling redis_cmd<br>
      <br>
      -At the redis prompt (redis-cli) type the command EXISTS x, with x
      being the value of $si. If that gives you a 1 it means that the
      key exists, otherwise you need to create it. <br>
      <br>
      -Pritn the values of $redis(s=>type), $redis(s=>value) after
      calling redis_cmd<br>
      <br>
      -With redis-cli monitor you are goign to see all the commands sent
      to redis<span class="HOEnZb"><font color="#888888"><br>
      <br>
      Javi</font></span><div><div class="h5"><br>
      On 27/02/15 14:30, Yuriy Gorlichenko wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">What type of info can I provide for deeper analys
        of this situation?</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-02-27 14:34 GMT+03:00 Javi Gallart
          <span dir="ltr"><<a href="mailto:jgallart@systemonenoc.com" target="_blank">jgallart@systemonenoc.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Hello<span><br>
                  On 27/02/15 11:58, Yuriy Gorlichenko wrote:<br>
                </span></div>
              <span>
                <blockquote type="cite">
                  <div dir="ltr">at the monitor I see nothing about this
                    request</div>
                </blockquote>
              </span> It's difficult to say without further information,
              but for some reason your command is not hitting redis,
              probably because the connection is down.<span><font color="#888888"><br>
                  <br>
                  Javi</font></span>
              <div>
                <div><br>
                  <blockquote type="cite">
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2015-02-27 13:21
                        GMT+03:00 Yuriy Gorlichenko <span dir="ltr"><<a href="mailto:ovoshlook@gmail.com" target="_blank">ovoshlook@gmail.com</a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div dir="ltr">Now I see that null values
                            recieved after I see this at kamailio log<br>
                            <br>
                            <div>redisc_exec(): Redis error: Server
                              closed the connection</div>
                            <div><br>
                            </div>
                          </div>
                          <div>
                            <div>
                              <div class="gmail_extra"><br>
                                <div class="gmail_quote">2015-02-27
                                  12:45 GMT+03:00 Javi Gallart <span dir="ltr"><<a href="mailto:jgallart@systemonenoc.com" target="_blank">jgallart@systemonenoc.com</a>></span>:<br>
                                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                    <div bgcolor="#FFFFFF" text="#000000">
                                      <div>Hello,<br>
                                        check out <a href="http://redis.io/commands/monitor" target="_blank">http://redis.io/commands/monitor</a><br>
                                        It will help you to determine
                                        the exact command that kamailio
                                        is delivering to the server when
                                        you execute the redis_cmd(...)
                                        function inside the script.<br>
                                        For a non null reply, yo will
                                        need a key in redis with the
                                        same value as $si.<span><font color="#888888"><br>
                                            <br>
                                            Javi</font></span>
                                        <div>
                                          <div><br>
                                            On 27/02/15 10:04, Yuriy
                                            Gorlichenko wrote:<br>
                                          </div>
                                        </div>
                                      </div>
                                      <div>
                                        <div>
                                          <blockquote type="cite">
                                            <div dir="ltr">I will try. I
                                              new at redis. Does cli
                                              monitor get resul of
                                              kamailio request at the
                                              cli?</div>
                                            <div class="gmail_extra"><br>
                                              <div class="gmail_quote">2015-02-27

                                                11:38 GMT+03:00 Javi
                                                Gallart <span dir="ltr"><<a href="mailto:jgallart@systemonenoc.com" target="_blank">jgallart@systemonenoc.com</a>></span>:<br>
                                                <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                  <div bgcolor="#FFFFFF" text="#000000">
                                                    <div>Hello<span><br>
                                                        <br>
                                                        can you check
                                                        with "redis-cli
                                                        monitor" what is
                                                        the command sent
                                                        to Redis in that
                                                        case?<br>
                                                        <br>
                                                        Javi<br>
                                                        On 27/02/15
                                                        09:15, Yuriy
                                                        Gorlichenko
                                                        wrote:<br>
                                                      </span></div>
                                                    <blockquote type="cite">
                                                      <div>
                                                        <div>
                                                          <div dir="ltr">Hello
                                                          I try to get
                                                          some replies
                                                          from redis.
                                                          Time after
                                                          time redis
                                                          request give
                                                          me null
                                                          result. But
                                                          redis bs not
                                                          disconnected.<br>
                                                          <br>
                                                          This happens
                                                          only with
                                                          websocket
                                                          endpoints. My
                                                          queries is:<br>
                                                          <br>
                                                          redis_cmd("srv1",
                                                          "EXISTS $si",
                                                          "s");<br>
                                                          <br>
                                                          So at xLOG i
                                                          see that $si
                                                          correctly
                                                          sended, but
                                                          result is
                                                          null. At db I
                                                          keep key IP
                                                          with value
                                                          TIMESTAMP<br>
                                                          <br>
                                                          Intresting
                                                          that route,
                                                          that givesme
                                                          this result
                                                          idependend of
                                                          WS or UDP
                                                          endpoint. IT
                                                          does not know
                                                          about it
                                                          anything.</div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                        </div>
                                                      </div>
                                                      <span>
                                                        <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                                                      </span></blockquote>
                                                    <br>
                                                  </div>
                                                  <br>
_______________________________________________<br>
                                                  SIP Express Router
                                                  (SER) and Kamailio
                                                  (OpenSER) - sr-users
                                                  mailing list<br>
                                                  <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
                                                  <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                                                  <br>
                                                </blockquote>
                                              </div>
                                              <br>
                                            </div>
                                            <br>
                                            <fieldset></fieldset>
                                            <br>
                                            <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                                          </blockquote>
                                          <br>
                                        </div>
                                      </div>
                                    </div>
                                    <br>
_______________________________________________<br>
                                    SIP Express Router (SER) and
                                    Kamailio (OpenSER) - sr-users
                                    mailing list<br>
                                    <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
                                    <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                                    <br>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
            <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>