[Serusers] Too Many Hops on Route :(

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Jun 6 15:54:03 CEST 2005


On Jun 06, 2005 at 16:33, Ozan Blotter <cosmocid at ispro.net.tr> wrote:
> Dear Friends,
> 
> This is fifth or tenth times writing to list but still no way :(
> 
> 
> REGISTERED USERS (12345 and 54321 are ATAs, 201 is Analog FXO's Port 0)
> 
[...]

It's normal to get too many hops when you are using sipsak's traceroute
mode (sip traceroute is based on  playing with the Max-Forwards value. 
 A hop is detected when you get back a 483 from it.

> 
> [root at localhost ser]# sipsak -T -s sip:20105353490056 at 192.168.1.10
> warning: IP extract from warning activated to be more informational
> 0: 192.168.1.10 (0.098 ms) SIP/2.0 483 Too Many Hops
> 1: 192.168.1.10 (0.244 ms) SIP/2.0 404 User Not Found

Here you get "User Not Found" because you handle only "^sip:053[0-9]*"
and not also "^sip201053.*" (and 20105353490056 is not present in the
location table).

Note also that in the following cfg fragment you just drop the matching
requests (all the forwards are commented out, and the block ends with a
break):

> 
>                 if (uri=~"^sip:053[0-9]*@.*") {
>                     prefix("201");
>                     rewritehostport ("192.168.1.35:5060");
>                 # forward ("192.168.1.35:5060");
>                 # t_relay_to_udp("192.168.1.35","5060");
>                     break;
>                 };


Andrei




More information about the sr-users mailing list