Re: [SR-Users] change module parameter in routing logic

2020-04-28 Thread Alex Balashov
On Tue, Apr 28, 2020 at 01:09:40PM +, Ali Taher wrote: > What do you mean by multiple SQL results concurrently? I will have > multiple calls coming at the same time which need to go to one of the > databases based on the originating IP. I meant concurrently in the same instance of message

Re: [SR-Users] change module parameter in routing logic

2020-04-28 Thread Ali Taher
To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] change module parameter in routing logic On Tue, Apr 28, 2020 at 12:57:16PM +, Ali Taher wrote: > Should I be worried about using same sqlres (ra) while fetching the > result from the database? No, as long you sql_resul

Re: [SR-Users] change module parameter in routing logic

2020-04-28 Thread Alex Balashov
On Tue, Apr 28, 2020 at 12:57:16PM +, Ali Taher wrote: > Should I be worried about using same sqlres (ra) while fetching the > result from the database? No, as long you sql_result_free() it between operations. If you need multiple SQL results concurrently, you should use different result set

Re: [SR-Users] change module parameter in routing logic

2020-04-28 Thread Ali Taher
. Should I be worried about using same sqlres (ra) while fetching the result from the database? Regards, Ali Taher From: sr-users On Behalf Of Alex Balashov Sent: Tuesday, April 28, 2020 1:30 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] change module parameter in routing logic

Re: [SR-Users] change module parameter in routing logic

2020-04-28 Thread Alex Balashov
It is not. — Sent from mobile, with due apologies for brevity and errors. > On Apr 28, 2020, at 6:26 AM, Ali Taher wrote: > >  > Hi, > > Is it possible to change a module parameter inside the routing logic ? > > For example I want to change sqlcon parameter of sqlops module based on the

[SR-Users] change module parameter in routing logic

2020-04-28 Thread Ali Taher
Hi, Is it possible to change a module parameter inside the routing logic ? For example I want to change sqlcon parameter of sqlops module based on the originating IP. Regards, ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org