[SR-Users] change module parameter in routing logic

Ali Taher ataher at vanrise.com
Tue Apr 28 15:09:40 CEST 2020


Hi Alex,

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.

-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Alex Balashov
Sent: Tuesday, April 28, 2020 4:01 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] change module parameter in routing logic

On Tue, Apr 28, 2020 at 12:57:16PM +0000, 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 identifiers.

-- Alex

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


More information about the sr-users mailing list