[SR-Users] Sql_result_free() not cleaning properly

Henning Westerholt hw at skalatan.de
Mon Jun 29 22:27:59 CEST 2020


Hello,

I guess you are using sql_xquery? The sql_free_result will only free a native sql result in script, not the xavp.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Duarte Rocha
Sent: Wednesday, June 24, 2020 5:59 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: [SR-Users] Sql_result_free() not cleaning properly

Greetings,

I'm trying to clean a SQL result using "sql_result_free()" but i'm not having success.

Can you please verify if i'm doing anything wrong here?

This is my code :

            xerr("Pre clean [0] = Iterator 0 = $xavp(Cli_PICKER_Default_Search_Result[0]=>Code)");
            sql_result_free("Cli_PICKER_Default_Search_Result");
            xerr("Pos clean [0] = Iterator 0 = $xavp(Cli_PICKER_Default_Search_Result[0]=>Code)");

The result is the following :

                ERROR: <script>:Pre clean [0] = Iterator 0 = 111111111111
                ERROR: <script>:Pos clean [0] = Iterator 0 = 111111111111

Am i using sql_result_free correctly or doing something wrong?

Best Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200629/eef7790c/attachment.html>


More information about the sr-users mailing list