<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>Could you try this patch:</tt></p>
<p><tt><a class="moz-txt-link-freetext" href="https://gist.github.com/razvancrainea/9d239c82474bb0f1c403b6459dbdb647">https://gist.github.com/razvancrainea/9d239c82474bb0f1c403b6459dbdb647</a></tt></p>
<p><tt>Thanks,<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/19/2016 08:56 PM, SamyGo wrote:<br>
</div>
<blockquote
cite="mid:CAJUJwtjQkbHsVWOr=2SsXz6mve6apMMg1YKptiUBjHZF2u2xRw@mail.gmail.com"
type="cite">
<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 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>