[OpenSIPS-Users] Acc - Can't get db_extra_bye to work

2012-04-28 Thread Ryan Bullock
Without any success I have been trying to get some values accounted
using the 'db_extra_bye'  parameter of the acc module. However,
opensips still appears to always account the values as if they were
taken from the original INVITE transaction and not the BYE.

I have cdr accounting enabled, as well as several db_extra values.

When a BYE is received I update a few avp variables. When I xlog these
variables I can see that they are properly set, however opensips
inserts empty values into the database. If I set these variables to
something in the original INVITE, then that value will be accounted
instead, but still not the updated value from the BYE.

Has anyone been able to get this to work? Am I missing something obvious?

Example Config:


modparam("acc", "db_extra_bye", "call_val=$avp(call_val);
bye_val=$avp(bye_val)")
.
..
  if (loose_route()) {
 if (is_method("BYE"))
  $avp(call_val) = "set";
  $avp(bye_val) = "set";
 }
 
  }


Thanks.

Regards,

Ryan

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS, Corosync, and Logrotate

2012-04-28 Thread Larry Long
Brett, that did it! No more of those errors and the service didn't stop 
responding. I think I did that before, but only with opensips.log and 
not messages as well, I did it for both.


Thanks a million! Such a simple fix, awesome.

On 4/27/12 10:36 AM, Larry Long wrote:

Hi Brett:

I believe I tried this before, but I put it in now, so we will see how 
it goes tomorrow morning. Thank you for the tip!


On 4/27/12 10:11 AM, Brett Nemeroff wrote:
I'd change this. I've seen sync writes to syslog cause horrible 
performance in opensips. And when I mean horrible, I mean taking a 
normally 500+cps system down to a max of 1/2 cps.


All it takes is a little "-" before the filename. So change this:

local0.*/var/log/opensips.log


To this:

local0.*-/var/log/opensips.log


Let us know if this fixes your problem :)

-Brett

On Fri, Apr 27, 2012 at 8:59 AM, Larry Long > wrote:


local0.*/var/log/opensips.log




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users