[Serusers] Redirect to PSTN Gateway doesn't create an accounting

Zeus Ng zeus.ng at isquare.com.au
Mon May 31 11:16:59 CEST 2004


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 at lists.iptel.org 
> [mailto:serusers-bounces at lists.iptel.org] On Behalf Of Glynn Condez
> Sent: Monday, 31 May 2004 7:09 PM
> To: serusers at 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;
> };
> }
> 




More information about the sr-users mailing list