<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><tt>Hi, Sammy!</tt></p>
    <p><tt>Does this happen only at startime, or happens during runtime
        too?</tt></p>
    <p><tt>Regards,<br>
      </tt></p>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 06/21/2016 10:57 PM, SamyGo wrote:<br>
    </div>
    <blockquote
cite="mid:CAJUJwtg9Yg2q32SXLtDwp9Mb9hVBWgiH+1jwU=EtLtFoSQhihw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi ,
        <div><br>
        </div>
        <div>After recompiling , when I start opensips it gives this
          error:</div>
        <div><br>
        </div>
        <div><font face="monospace, monospace">ERROR:event_route:event_route_handler:
            invalid receive sock info<br>
          </font><br>
        </div>
        <div>The two event routes I have are these:<br>
          <br>
        </div>
        <div>
          <div><font face="monospace, monospace">event_route[E_UL_CONTACT_INSERT,async]
              {</font></div>
          <div><font face="monospace, monospace">               
fetch_event_params("aor=$avp(aor);address=$avp(address);received=$avp(received)");</font></div>
        </div>
        <div><font face="monospace, monospace">....                </font></div>
        <div><font face="monospace, monospace">               
             cache_raw_query("redis:group1","HSET GLOBAL_USER_LOCATION
            $avp(aor) $var(my_value1)");<br>
          </font></div>
        <div><font face="monospace, monospace"><br>
            }</font></div>
        <div><font face="monospace, monospace"><br>
          </font></div>
        <div>
          <div><font face="monospace, monospace">event_route[E_UL_AOR_DELETE,async]
              {</font></div>
          <div><font face="monospace, monospace">               
              fetch_event_params("aor=$avp(aor)");<br>
            </font></div>
        </div>
        <div><font face="monospace, monospace">...<br>
          </font>
          <div><font face="monospace, monospace">               
              cache_raw_query("redis:group1","DEL GLOBAL_USER_LOCATION
              $avp(aor)");</font></div>
        </div>
        <div><font face="monospace, monospace"><br>
          </font></div>
        <div><font face="monospace, monospace">}</font></div>
        <div><br>
          <br>
        </div>
        <div>Some Xlog lines in both of these routes, nothing seems to
          be printed now, no error , no cache data modifications
          executing..</div>
        <div><br>
        </div>
        <div>I'll see in further detail what is happening and if I find
          anything abnormal will reply.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Regards.</div>
        <div>Sammy</div>
        <div><br>
        </div>
        <div><br>
          <br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jun 21, 2016 at 3:40 AM, Răzvan
          Crainea <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <p><tt>Hi, Sammy!</tt></p>
              <p><tt>Could you try this patch:</tt></p>
              <p><tt><a moz-do-not-send="true"
href="https://gist.github.com/razvancrainea/9d239c82474bb0f1c403b6459dbdb647"
                    target="_blank">https://gist.github.com/razvancrainea/9d239c82474bb0f1c403b6459dbdb647</a></tt></p>
              <p><tt>Thanks,<br>
                </tt></p>
              <pre cols="72">Răzvan Crainea
OpenSIPS Solutions
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
              <div>
                <div class="h5">
                  <div>On 06/19/2016 08:56 PM, SamyGo wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hi,
                      <div>I'm seeing errors from cachedb_redis module
                        when called in an event route in async mode.</div>
                      <div><br>
                      </div>
                      <div><font face="monospace, monospace">event_route[E_UL_CONTACT_INSERT<span
                            style="background-color:rgb(255,229,153)">,async</span>]
                          {</font></div>
                      <div><font face="monospace, monospace">... </font></div>
                      <div><font face="monospace, monospace">cache_raw_query("redis:group1","SET
                          ABC");</font></div>
                      <div><font face="monospace, monospace">..</font></div>
                      <div><font face="monospace, monospace"><br>
                        </font></div>
                      <div><font face="monospace, monospace">}</font></div>
                      <div><font face="monospace, monospace"><br>
                        </font></div>
                      <div><font face="arial, helvetica, sans-serif">OpenSIPS
                          throws error stating that redis group1
                          unavailable</font></div>
                      <div><font face="monospace, monospace"><br>
                        </font></div>
                      <div>
                        <div style="font-family:monospace,monospace">DBG:core:cachedb_raw_query:
                          from script [redis] - with grp [group1]</div>
                        <div style="font-family:monospace,monospace">ERROR:core:cachedb_raw_query:
                          failed to get connection for grp name [group1]</div>
                        <div style="font-family:monospace,monospace"><br>
                        </div>
                        <div><font face="arial, helvetica, sans-serif">I
                            tried same command in main route of reply
                            route, all works normal. if I remove the
                            "async" from the event_route definition it
                            works in event route.</font></div>
                        <div><font face="arial, helvetica, sans-serif"><br>
                          </font></div>
                        <div><font face="arial, helvetica, sans-serif">Any
                            logical reason why async route don't
                            recognize the connections ?</font></div>
                      </div>
                      <div><font face="arial, helvetica, sans-serif"><br>
                        </font></div>
                      <div><font face="arial, helvetica, sans-serif">Tried
                          with OpenSIPS 2.2 and 2.1 as well, same
                          behavior.</font></div>
                      <div><font face="arial, helvetica, sans-serif"><br>
                        </font></div>
                      <div><font face="arial, helvetica, sans-serif"><br>
                        </font></div>
                      <div><font face="arial, helvetica, sans-serif">Regards,</font></div>
                      <div><font face="arial, helvetica, sans-serif">Sammy</font></div>
                      <div><font face="arial, helvetica, sans-serif"><br>
                        </font></div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>