<div dir="ltr">I recently upgraded from OpenSIPS 2.2 to 2.3.1. Within the ACC module, I would get accounting information in the DB on the INVITES and the BYES on 2.2. After the upgrade to 2.3.1, I am getting the INVITES, but not the BYES. I made the adjustments per the migration guide for the extra_fields modparam that was introduced.<div><br></div><div>Here is the script clause I am using for BYE's:</div><div><div><i>                if(loose_route())</i></div><div><i><span style="white-space:pre">             </span>{</i></div><div><i><span style="white-space:pre">                  </span>xlog("Transaction is a loose route \n");</i></div><div><i><br></i></div><div><i><span style="white-space:pre">                     </span>if(is_method("BYE")){</i></div><div><i><span style="white-space:pre">                            </span>#Accounting</i></div><div><i><span style="white-space:pre">                                </span>xlog("Processing BYE Message")</i></div><div><i><span style="white-space:pre">                           </span>if((!($ru =~ 'sip:05.*')) && (!($ru =~ '172.18.24.102.*')) && (!($ru =~ 'sip.*@172.18.24.102:5060')))</i></div><div><i><span style="white-space:pre">                              </span>{</i></div><div><i>                                        xlog("Processing BYE Accounting")</i></div><div><i><span style="white-space:pre">                                 </span>$acc_extra(FROM) = $fu;</i></div><div><i><span style="white-space:pre">                                    </span>$acc_extra(TO) = $tu;</i></div><div><i><span style="white-space:pre">                                      </span>$acc_extra(RULE) = $avp(dr_rule_id);</i></div><div><i><span style="white-space:pre">                                       </span>$acc_extra(DEST) = $avp(dr_gw_id);</i></div><div><i><span style="white-space:pre">                                 </span>$acc_extra(REQURI) = $ru;</i></div><div><i><span style="white-space:pre">                                  </span>do_accounting("db", "cdr|missed|failed", "acc");</i></div><div><i><span style="white-space:pre">                             </span>}</i></div><div><i><span style="white-space:pre">                  </span>}</i></div><div><i><br></i></div><div><i><span style="white-space:pre">                      </span>route(relay);</i></div><div><i><span style="white-space:pre">              </span>}</i></div></div><div><i><br></i></div><div>In the syslog, I see these 4 statements back to back consecutively :</div><div><div><i>Aug 10 15:54:16 VOPS /usr/sbin/opensips[8980]: Transaction is a loose route</i></div><div><i>Aug 10 15:54:16 VOPS /usr/sbin/opensips[8980]: Processing BYE Message</i></div><div><i>Aug 10 15:54:16 VOPS /usr/sbin/opensips[8980]: Processing BYE Accounting</i></div><div><i>Aug 10 15:54:16 VOPS /usr/sbin/opensips[8980]: route[relay]</i></div></div><div><i><br></i></div><div>So from what I can tell, when the BYE happens, it is making it into the proper section of the script. Any idea why the BYE isn't being accounted?</div><div><i><br></i></div><div><i><br></i></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-Jonathan</div></div>