<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 24/01/2017 12:23, Tobias wrote:<br>
    </div>
    <blockquote
cite="mid:AM5P195MB01472EF8811ECBBE403EF0B4F7750@AM5P195MB0147.EURP195.PROD.OUTLOOK.COM"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
        dir="ltr">
        <p>Hi!</p>
        <p><br>
        </p>
        <p>I'm wondering if there is a way for the acc-module to
          notify/send an event to Kamailio (so I can pick it up from the
          config, similar to event_route) once the acc-module has
          performed a write?</p>
        <p><br>
        </p>
        <p>As an example I'm using acc and db-mysql to store acc data in
          MySQL, but instead of having a service polling the MySQL for
          new acc's written I'd like to make Kamailio send an event once
          an acc-row has been written. I realize this could most likely
          be done by using MySQL triggers "ON INSERT", but I'm wondering
          if there is another (reliable) way to do this directly from
          within Kamailio?</p>
        <p><br>
        </p>
        <p>I haven't tested it, but I would guess that if I tried to use
          for example event_route[dialog:end] there could be times where
          the event would hit Kamailio before the acc-module have
          written to missed_calls?</p>
        <p><br>
        </p>
        <br>
      </div>
    </blockquote>
    Do you still want the acc record to be written in the database or
    catch the event before storing and directing it somewhere else?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>