-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
have you set modparms like:
db_flag, db_log, db_level...
are you recording route? (I think yes if you recive BYE messages...) <- this
is the hard part...
INVITE and ACK messages are sample...
just define this modparams ...
and call him in your ser.cfg example:
modparam("acc", "db_url",
"mysql://$user:$pass@$hostname/$db_name")
modparam("acc", "db_flag", 3)
modparam("acc", "log_flag", 3)
modparam("acc", "log_level", 3)
...
if (!(method=="REGISTER"))
if (loose_route()) {
t_relay();
break;
};
setflag(3); <<- HERE is the log flag set... and it will return to your
mysql the INVITE and ACK ...
if you allready recieve BYE ...
your problem is solved.
On Monday 31 May 2004 12:08, Glynn Condez wrote:
Hi all,
I'm thinking why my ser couldn't log accounting if I redirect a call to an
FXO voip gateway?
I observed that I didn't saw any INVITE, ACK message on the logs except BYE
message.
Here's my setup:
sip ip phone ---> ser --- fx0 voip gateway
heres my config:
if ( (uri=~"^sip:123[0-9]*@.*") ) {
route(5);
break;
};
route[5] {
if ( (uri=~"^sip:123[0-9]*@.*") ) {
rewritehostport("fx0.voipgateway.com:5060");
#rewritehostport("fx0.voipgateway.com:5090");
forward(uri:host, uri:port);
break;
};
}
- --
Regards, Kamen Sharlandjiev
System Administrator
NetBG Communication
Tel: +359 2 962 43 52
+359 2 962 53 93
- --
Public GPG key at:
http://pgp.mit.edu
pub 1024D/C6347D3D 2003-03-19 Kamen Sharlandjiev (Comment) <stone(a)netbg.com>
Key fingerprint = D6AA 55BD F0CB FC6B 8C22 A13B 91D1 55C3 C634 7D3D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFAuvzYkdFVw8Y0fT0RAuWIAKDAYQH/3rJSSauLVdcZyDgwftfuQwCfVsIT
yxLpn7GacrE4Uf2hoVCaK/s=
=kLuS
-----END PGP SIGNATURE-----