<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Daniel</p>
    <p>I can do that, but am I guaranteed, that the right value is
      returned?</p>
    <p>Kamailio is multithreaded, and I do now know if the mysql
      connection is shared across threads.<br>
    </p>
    <pre class="moz-signature" cols="72">-------------------- Med Liberalistiske Hilsner ----------------------
   Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
   Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
   Den ikke akademiske hjemmeside for liberalismen - <a class="moz-txt-link-abbreviated" href="http://www.liberalismen.dk">www.liberalismen.dk</a></pre>
    <div class="moz-cite-prefix">On 8/12/20 12:25 PM, Daniel-Constantin
      Mierla wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:5540f9fa-55d5-45fb-f6a7-a29e718fe1d2@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Have you tried to do "SELECT LAST_INSERT_ID()" with sql_query()
        from sqlops module?</p>
      <p>Cheers, Daniel<br>
      </p>
      <div class="moz-cite-prefix">On 12.08.20 11:24, Kjeld Flarup
        wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CACRoYp8D+6OgFmvMwrBw5=4Dixi_E5cTw3wNS_Hp7wtMiyZmyw@mail.gmail.com">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <div dir="ltr">In the configuration file. 
          <div><br>
          </div>
          <div>  Kjeld</div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">Den ons. 12. aug. 2020 kl.
            11.14 skrev Daniel-Constantin Mierla <<a
              href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@gmail.com</a>>:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">Hello,<br>
            <br>
            do you need it in the configuration file, or inside C code?<br>
            <br>
            Cheers,<br>
            Daniel<br>
            <br>
            On 12.08.20 00:09, Kjeld Flarup wrote:<br>
            > Hello<br>
            ><br>
            > I wonder if there is some way to get the lastinsertid
            from an "INSERT<br>
            > INTO" sql_query<br>
            ><br>
            > -- <br>
            > -------------------- Med Liberalistiske Hilsner
            ----------------------<br>
            >    Civilingeniør, Kjeld Flarup - Mit sind er mere åbent
            end min tegnebog<br>
            >    Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49<br>
            >    Den ikke akademiske hjemmeside for liberalismen - <a
              href="http://www.liberalismen.dk" rel="noreferrer"
              target="_blank" moz-do-not-send="true">www.liberalismen.dk</a><br>
            ><br>
            ><br>
            > _______________________________________________<br>
            > Kamailio (SER) - Users Mailing List<br>
            > <a href="mailto:sr-users@lists.kamailio.org"
              target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
            > <a
              href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
              rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            <br>
            -- <br>
            Daniel-Constantin Mierla -- <a href="http://www.asipto.com"
              rel="noreferrer" target="_blank" moz-do-not-send="true">www.asipto.com</a><br>
            <a href="http://www.twitter.com/miconda" rel="noreferrer"
              target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a>
            -- <a href="http://www.linkedin.com/in/miconda"
              rel="noreferrer" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a><br>
            Funding: <a href="https://www.paypal.me/dcmierla"
              rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.paypal.me/dcmierla</a><br>
            <br>
          </blockquote>
        </div>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div dir="ltr" class="gmail_signature">
          <div dir="ltr">
            <p>--------------------- Med Liberalistiske Hilsner
              ----------------------</p>
            <pre cols="72">   Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
   Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
   Den ikke akademiske hjemmeside for liberalismen - <a href="http://www.liberalismen.dk" target="_blank" moz-do-not-send="true">www.liberalismen.dk</a>

</pre>
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla" moz-do-not-send="true">https://www.paypal.me/dcmierla</a></pre>
    </blockquote>
  </body>
</html>