I think accounting only works on stateful processing. Try using
t_relay_to_udp(..) instead of forward().
Otherwise, do the accounting manually using acc_*_request().
Zeus
-----Original Message-----
From: serusers-bounces(a)lists.iptel.org
[mailto:serusers-bounces@lists.iptel.org] On Behalf Of Glynn Condez
Sent: Monday, 31 May 2004 7:09 PM
To: serusers(a)lists.iptel.org
Subject: [Serusers] Redirect to PSTN Gateway doesn't create
an accounting
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;
};
}