<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(&quot;aor=$avp(aor);address=$avp(address);received=$avp(received)&quot;);</font></div></div><div><font face="monospace, monospace">....                </font></div><div><font face="monospace, monospace">                 cache_raw_query(&quot;redis:group1&quot;,&quot;HSET GLOBAL_USER_LOCATION $avp(aor) $var(my_value1)&quot;);<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(&quot;aor=$avp(aor)&quot;);<br></font></div></div><div><font face="monospace, monospace">...<br></font><div><font face="monospace, monospace">                cache_raw_query(&quot;redis:group1&quot;,&quot;DEL GLOBAL_USER_LOCATION $avp(aor)&quot;);</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&#39;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 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 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 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&#39;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(&quot;redis:group1&quot;,&quot;SET
            ABC&quot;);</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 &quot;async&quot; 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&#39;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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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 href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a 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>