----- Original Message -----
Sent: Wednesday, April 27, 2005 1:13
AM
Subject: RE: [Serusers] ACC into
mysql
This
particular config (I don't think?) won't log to a DB, additionally you need to
setflag(1); somewhere in your config. We tried to set on "outbound" only
originally and didn't have much luck so I set it near the top. To log to
(my)sql you will additionally need to set another flag and setup similar mod
params:
modparam("acc", "db_url",
"mysql://ser:serro@blah.mysql.haha/dbname")
# Note flag 2, you will need to
setflag(1); AND setflag(2);
modparam("acc", "db_flag", 2)
#Note this one logs all failed calls from the invite response, I find
it useful
modparam("acc", "failed_transactions", 1)
# In
your route config use something like the following
#
This is pretty much near the top, while ACC won't log reg's or INFO anyway, I
just thought it'd be a little cleaner to have
...
if
(!method == "REGISTER" || !method == "INFO" )
{
setflag(1);
setflag(2);
}
...
#
Doing the above ensure everything gets tagged including BYE's. A good reason
why your BYE's may not get
#
tagged is possibly because record-route could be relaying the call before the
flag gets set, just a thought..