<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>I don't think that you can get a dialog-based CDR for calls that
      were not answered with 200ok. But you can get a record in acc
      table, by storing failed transaction record (see the mod params
      for acc and failed transaction flag or use acc_db_request()).</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 13.06.19 22:45, Pejic, Miroslav
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGXmshkf5HR63gBxaPPm2T9RGFFLGz=iaYtJJMZVwKVd=qpeCA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;">Hi :)</span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245);min-height:14px"><span
                style="-webkit-font-kerning: none;"></span><br>
            </p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;">I'm trying to save a
                failed call in the kamailio_router.acc_cdrs database </span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;">after sending the
                403 Forbidden by router, using the module acc, if is it
                possible?</span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;"><br>
              </span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;"><a
                  href="https://www.kamailio.org/docs/modules/5.2.x/modules/acc.html"
                  moz-do-not-send="true">https://www.kamailio.org/docs/modules/5.2.x/modules/acc.html</a></span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245);min-height:14px"><span
                style="-webkit-font-kerning: none;"></span><br>
            </p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;">Something like this:</span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245);min-height:14px"><span
                style="-webkit-font-kerning: none;"></span><br>
            </p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;">route[IS_CALLER_BLACKLISTED]
                {</span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245);min-height:14px"><span
                style="-webkit-font-kerning: none;"></span><br>
            </p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;"> 
                python_exec("check_caller_blacklisted");</span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245);min-height:14px"><span
                style="-webkit-font-kerning: none;"></span><br>
            </p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;">  if
                ($var(callerBlacklisted) == 1){</span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245);min-height:14px"><span
                style="-webkit-font-kerning: none;"></span><br>
            </p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;">    
                t_send_reply("403", "Forbidden");</span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245);min-height:14px"><span
                style="-webkit-font-kerning: none;"></span><br>
            </p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;"><span style="white-space:pre">     </span>IT’S
                POSSIBLE HERE SAVE A CALL ON KAMAILIO_ROUTER.ACC_CDRS?</span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245);min-height:14px"><span
                style="-webkit-font-kerning: none;"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>
                 </span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;"><span style="white-space:pre">     </span>exit;</span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;">  }</span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245);min-height:14px"><span
                style="-webkit-font-kerning: none;"></span><br>
            </p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;">Thanks in advance!</span></p>
            <p
style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(18,31,60);background-color:rgb(241,242,245)"><span
                style="-webkit-font-kerning: none;">Miro</span></p>
          </div>
        </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">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">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">www.asipto.com</a>
<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></pre>
  </body>
</html>