[Serusers] problem with accounting to PSTN gateway

Andrzej Radke radan at nasty.gda.pl
Mon Jul 14 15:57:04 CEST 2003


Hello !
I have problem with accounting traffic from IP to PSTN gateway
My PSTN gateway is 10.10.10.254

if (uri=~"sip:58[1-2]([0-9]){3}(@(gda\.pl|10\.10\.10\.24)?)"  && !(src_ip==10.10.10.254/32)) {
        addRecordRoute();
        strip(2);
        if (!t_relay_to("10.10.10.254", "5060")) {
        sl_reply_error();
  };
  break;
        setflag(1);
        t_relay();
      };

I don't have any information about INVITE, BYE in my logs
When the connection is from IP network to IP network
or from PSTN to IP network I have all information what i need. 

Where do I have to put addRecordRoute(); and setflag(1) in ser.conf
in this case ?

Greetings 
Andrzej Radke




More information about the sr-users mailing list