[OpenSIPS-Users] ACC Module - BYE's not working
Jonathan Mabrito
mabritoj at gmail.com
Fri Aug 11 08:43:33 EDT 2017
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.
Here is the script clause I am using for BYE's:
* if(loose_route())*
* {*
* xlog("Transaction is a loose route \n");*
* if(is_method("BYE")){*
* #Accounting*
* xlog("Processing BYE Message")*
* if((!($ru =~ 'sip:05.*')) && (!($ru =~ '172.18.24.102.*')) && (!($ru =~
'sip.*@172.18.24.102:5060')))*
* {*
* xlog("Processing BYE Accounting")*
* $acc_extra(FROM) = $fu;*
* $acc_extra(TO) = $tu;*
* $acc_extra(RULE) = $avp(dr_rule_id);*
* $acc_extra(DEST) = $avp(dr_gw_id);*
* $acc_extra(REQURI) = $ru;*
* do_accounting("db", "cdr|missed|failed", "acc");*
* }*
* }*
* route(relay);*
* }*
In the syslog, I see these 4 statements back to back consecutively :
*Aug 10 15:54:16 VOPS /usr/sbin/opensips[8980]: Transaction is a loose
route*
*Aug 10 15:54:16 VOPS /usr/sbin/opensips[8980]: Processing BYE Message*
*Aug 10 15:54:16 VOPS /usr/sbin/opensips[8980]: Processing BYE Accounting*
*Aug 10 15:54:16 VOPS /usr/sbin/opensips[8980]: route[relay]*
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?
--
-Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170811/8f181524/attachment-0001.html>
More information about the Users
mailing list