<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><tt>Could you run the 'opensipsctl trap' command and paste the
        output on pastebin.<br>
      </tt></p>
    <p><tt>Best 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/22/2016 07:39 PM, SamyGo wrote:<br>
    </div>
    <blockquote
cite="mid:CAJUJwthkFpHojbVDDvTN+AeFZ12DxVmOwgKfvbB+p6nnvWvLAQ@mail.gmail.com"
      type="cite">
      <p dir="ltr">Yes correct. Async event route even stops to be
        executed. </p>
      <div class="gmail_quote">On Jun 22, 2016 12:37, "Răzvan Crainea"
        &lt;<a moz-do-not-send="true" href="mailto:razvan@opensips.org">razvan@opensips.org</a>&gt;
        wrote:<br type="attribution">
        <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>So the patch doesn't do anything but stops triggering
                the event?</tt></p>
            <p><tt>Regards,</tt><br>
            </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>On 06/22/2016 07:07 PM, SamyGo wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Yeah it only happens at startup. If I start
                opensips in debug_mode=yes then the error prints for
                infinite time.
                <div><br>
                </div>
                <div>With your patch; putting "async" doesn't even call
                  the event route. If I remove async attribute then it
                  works just like before the patch.</div>
                <div><br>
                </div>
                <div>Regards,</div>
                <div>Sammy</div>
                <div><br>
                </div>
              </div>
              <div class="gmail_extra"><br>
                <div class="gmail_quote">On Wed, Jun 22, 2016 at 3:10
                  AM, Răzvan Crainea <span dir="ltr">&lt;<a
                      moz-do-not-send="true"
                      href="mailto:razvan@opensips.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:razvan@opensips.org">razvan@opensips.org</a></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>Does this happen only at startime, or
                          happens during runtime too?</tt></p>
                      <p><tt>Regards,<br>
                        </tt></p>
                      <span>
                        <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>
                      </span>
                      <div>
                        <div>
                          <div>On 06/21/2016 10:57 PM, SamyGo wrote:<br>
                          </div>
                          <blockquote 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"><a class="moz-txt-link-abbreviated" href="mailto:razvan@opensips.org">razvan@opensips.org</a></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>
                                        <div>On 06/19/2016 08:56 PM,
                                          SamyGo wrote:<br>
                                        </div>
                                      </div>
                                    </div>
                                    <blockquote type="cite">
                                      <div>
                                        <div>
                                          <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"
                                    target="_blank">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></fieldset>
                            <br>
                            <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>
                      </div>
                    </div>
                    <br>
                    _______________________________________________<br>
                    Users mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:Users@lists.opensips.org"
                      target="_blank">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></fieldset>
              <br>
              <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>
      <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>