<div dir="ltr">Hey Razvan,<div><br></div><div><br></div><div>I believe I found out what was causing the acc logic crash this failure route block:</div><div><br></div><div><br></div><div><div>failure_route[missed_call] {</div><div><span style="white-space:pre">                        </span>rtpengine_delete("delete-delay=0");</div><div>                        xlog("this failure missed call failure to $ci on missed call failure block for reason $err.rreason \n");<br></div><div><span style="white-space:pre">  </span>drop_accounting(); <span style="background-color:rgb(255,0,0)"> I had to comment this drop accounting function to stop the crashing</span></div><div><span style="background-color:rgb(255,0,0)"><br></span></div><div><span style="background-color:rgb(255,0,0)"><br></span></div><div><br></div><div>        if (t_was_cancelled()) {</div><div><span style="white-space:pre">             </span>xlog("looks like $ci was cancelled?\n");</div><div>                exit;</div><div>        }</div><div><br></div><div><span style="white-space:pre">   </span></div><div><br></div><div><br></div><div><span style="white-space:pre">    </span>if (next_branches()) {</div><div><span style="white-space:pre">        </span>drop_accounting("evi", "missed");</div><div><span style="white-space:pre"> </span>xlog("found branches with lower priority attempting to relay(\n");</div><div><span style="white-space:pre">          </span>            route(relay);</div><div><span style="white-space:pre">                       </span>            exit;</div><div><span style="white-space:pre">       </span></div><div>}<span style="white-space:pre">     </span> </div><div><br></div><div>             # if (t_check_status("408|486|603|404|477") && (!isflagset(friend))) {</div><div>              if (!isflagset(friend)) {</div><div><br></div><div>                                                                          xlog("forwarding call on on failure timeout or 603 \n");</div><div><br></div><div><br></div><div><span style="white-space:pre">                                                                        </span>xlog("this request does not source from a sister proxy and it must handled here");</div><div><span style="white-space:pre">                                                                  </span>xlog("we are attempting to route it to the AS server for failover");</div><div><span style="white-space:pre">                </span> </div><div><span style="white-space:pre">            </span>if (isbflagset(DST_WS)){<br></div><div><span style="white-space:pre">            </span>    revert_uri();</div><div><span style="white-space:pre">           </span>resetbflag(DST_WS);</div><div>}</div><div><span style="white-space:pre">           </span> drop_accounting("evi", "missed");<br></div><div><span style="white-space:pre">              </span>resetflag(accounted);</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre">              </span>force_send_socket(udp:MY_IP:5060);                                                               </div><div><span style="white-space:pre">             </span>route(logic);<span style="white-space:pre">        </span></div><div>        }else{<br></div><div>                                xlog("sending a failure to friend\n");</div><div>                                t_reply("404","User not found");</div><div><br></div><div><br></div><div>}</div><div><br></div><div><br></div><div>}</div></div><div><br></div><div><br></div><div>I think the fact that I was dropping accounting() once and then again like this  drop_accounting("evi", "missed") was causing the issue. The problem is I still get acc reports on failure although I'd like to drop until it fails at the "logic route".</div><div><br></div><div>Thanks,<br>Tito</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 11, 2018 at 7:20 AM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <tt>Hi, Tito!<br>
      <br>
      That works, it's enough to understand the the issue is very
      complicated :).<br>
      Can you provide (offsite) the binaries and the core file, so I can
      inspect them? Or if it is easier for you, provide access to the
      machine that crashes, if it is a testing environment.<br>
      Also, how often is this happening? I see you got 3 cores in two
      days - is it production traffic? or testing traffic?<br>
      <br>
      Best regards,<br>
    </tt><span class="">
    <pre class="m_-5325355281642913442moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="m_-5325355281642913442moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
    </span><div><div class="h5"><div class="m_-5325355281642913442moz-cite-prefix">On 01/11/2018 11:38 AM, Tito Cumpen
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>How's this?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><a href="https://pastebin.com/srr8MHLK" target="_blank">https://pastebin.com/srr8MHLK</a><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Jan 11, 2018 at 1:03 AM, Răzvan
          Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Tito!<br>
            <br>
            You're right, it was my mistake regarding the revision, I
            wasn't looking on the right branch.<br>
            Can you also post the the CRITICAL/ERROR logs from the
            second core[2]?<br>
            <br>
            [2] <a href="https://pastebin.com/2Eq8JZ1A" rel="noreferrer" target="_blank">https://pastebin.com/2Eq8JZ1A</a><span class="m_-5325355281642913442im m_-5325355281642913442HOEnZb"><br>
              <br>
              Best regards,<br>
              <br>
              Răzvan Crainea<br>
              OpenSIPS Developer<br>
              <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">www.opensips-solutions.com</a><br>
              <br>
            </span><span class="m_-5325355281642913442im m_-5325355281642913442HOEnZb">
              On 01/11/2018 10:56 AM, Tito Cumpen wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                I'm not sure what to look for to match the previous
                issue so I pasted a couple of crashes from the last two
                days<br>
                <br>
                <a href="https://pastebin.com/aAFsgXEm" rel="noreferrer" target="_blank">https://pastebin.com/aAFsgXEm</a><br>
                <a href="https://pastebin.com/2Eq8JZ1A" rel="noreferrer" target="_blank">https://pastebin.com/2Eq8JZ1A</a><br>
                <a href="https://pastebin.com/reDexmqY" rel="noreferrer" target="_blank">https://pastebin.com/reDexmqY</a><br>
                <br>
                Let me know if this helps.<br>
                <br>
                Thanks,<br>
                Tito<br>
                <br>
              </blockquote>
              <br>
            </span>
            <div class="m_-5325355281642913442HOEnZb">
              <div class="m_-5325355281642913442h5">
                ______________________________<wbr>_________________<br>
                Users mailing list<br>
                <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="m_-5325355281642913442mimeAttachmentHeader"></fieldset>
      <br>
      <pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-5325355281642913442moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-5325355281642913442moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>