[OpenSIPS-Users] Async event_route and cachdb_redis

Răzvan Crainea razvan at opensips.org
Tue Jun 21 09:40:33 CEST 2016


Hi, Sammy!

Could you try this patch:

https://gist.github.com/razvancrainea/9d239c82474bb0f1c403b6459dbdb647

Thanks,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 06/19/2016 08:56 PM, SamyGo wrote:
> Hi,
> I'm seeing errors from cachedb_redis module when called in an event 
> route in async mode.
>
> event_route[E_UL_CONTACT_INSERT,async] {
> ...
> cache_raw_query("redis:group1","SET ABC");
> ..
>
> }
>
> OpenSIPS throws error stating that redis group1 unavailable
>
> DBG:core:cachedb_raw_query: from script [redis] - with grp [group1]
> ERROR:core:cachedb_raw_query: failed to get connection for grp name 
> [group1]
>
> 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.
>
> Any logical reason why async route don't recognize the connections ?
>
> Tried with OpenSIPS 2.2 and 2.1 as well, same behavior.
>
>
> Regards,
> Sammy
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160621/052ece79/attachment.htm>


More information about the Users mailing list