[Serusers] problem with accounting to PSTN gateway
Jiri Kuthan
jiri at iptel.org
Mon Jul 14 16:37:30 CEST 2003
I suggest you record-route everything and process record-routing in
beginning of you script after initial sanity checks, i.e.:
addRecordRoute();
rewriteFromRoute();
Even better, upgrade to 8.11 which deprecated strict routing -- an RFC2543
misconception.
Also note, that 'setflag' is never entered -- either the RE match in beggining
does not match and processing skips behing t_relay's bracket or break completes
processing begore setflag is entered.
-jiri
At 03:57 PM 7/14/2003, Andrzej Radke wrote:
>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
>
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/
More information about the sr-users
mailing list