[SR-Users] Loops using uac_replace_from

Daniel-Constantin Mierla miconda at gmail.com
Wed Jul 28 15:07:20 CEST 2010


Hello

On 7/28/10 2:56 PM, Ján ONDREJ (SAL) wrote:
> Hello,
>
>    after some failures with uac_auth (uac_auth can't increase CSeq number,
> which is required by my provider) my provider maked me an testing access
> without autentification, but I still can't make calls with kamailio or
> openser. I can make calls with opensips, but I am still not chosen, which
> sip software to use in future (still using openser).
>
>    This is a part of my configuration:
>
> route[6] {
>          uac_replace_from("sip:556807505 at as.xxxxxx.sk");
>          rewritehostport("122.33.44.200");
>          route(5);
> }
>
> When trying to sniff packets and diff them, I am still getting this from my
> kamailio server:
>
> U kamailio_ip:5060 ->  client_ip:5060
> SIP/2.0 500 I'm terribly sorry, server error occurred (6/SL).
> From: "Ondrej Jan"<sip:xxxxxx at xxxx>;tag=59427D6F-81E63720.
> To:<sip:xxxxx at xxxxx;user=phone>;tag=cc70c0fe52d7af0accfb78a94d592620.f69c.
> CSeq: 1 INVITE.
> Call-ID: 37cadcfb-f93b8e1d-431cdf6 at xxxxxxxxxxx.
> Server: kamailio (3.0.2 (i386/linux)).
> Content-Length: 0.
>
> Logs are below. Any idea, what happening and why a default opensips
> configuration works and kamailio/openser don't?
>    

what is your route[5]? It doesn't look at all like being default config 
for kamailio anyhow. There seem to be two problems in your config:

- one is that you try to re-forward without appending a new branch in 
failure case (upcoming 3.1 has a auto-detection if there is a new 
destination so append_branch() won't be needed)
- you have a recursive calling of route blocks, like route(5) calling 
route(6) which calls again route (5)

If you send the config, we can give further hints?

Cheers,
Daniel


> 			SAL
>
> [root at kamailio ~]# kamailio -DddE
> loading modules under /usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/
> Listening on
>               udp: 123.123.242.20:5060
> Aliases:
>               udp: kamailio.xxxx.sk:5060
>               *: 123.123.242.20:*
>
> WARNING: no fork mode
>   0(2364) INFO:<core>  [tcp_main.c:4150]: init_tcp: using epoll_lt as the io watch method (auto detected)
>   0(2364) INFO: usrloc [hslot.c:53]: locks array size 512
>   0(2364) INFO:<core>  [udp_server.c:166]: INFO: udp_init: SO_RCVBUF is initially 112640
>   0(2364) INFO:<core>  [udp_server.c:217]: INFO: udp_init: SO_RCVBUF is finally 262142
>   4(2368) INFO: ctl [io_listener.c:224]: io_listen_loop:  using epoll_lt io watch method (config)
>
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR: tm [t_fwd.c:1379]: ERROR: t_forward_nonack: no branches for forwarding
>   0(2364) ERROR:<core>  [action.c:1269]: WARNING: too many recursive routing table lookups (101) giving up!
>   0(2364) ERROR:<core>  [action.c:1269]: WARNING: too many recursive routing table lookups (101) giving up!
>   0(2364) ERROR:<core>  [action.c:1269]: WARNING: too many recursive routing table lookups (101) giving up!
>   0(2364) BUG: tm [t_lookup.c:1556]: tm: t_unref: REQ_ERR DELAYED should have been caught much earlier for 0xb5a15490: 17 (hex 11)
> ^C 4(2368) INFO:<core>  [main.c:788]: INFO: signal 2 received
>   3(2367) INFO:<core>  [main.c:788]: INFO: signal 2 received
>   1(2365) INFO:<core>  [main.c:788]: INFO: signal 2 received
>   2(2366) INFO:<core>  [main.c:788]: INFO: signal 2 received
>   0(2364) ALERT:<core>  [main.c:719]: child process 2365 exited normally, status=0
>   0(2364) ALERT:<core>  [main.c:719]: child process 2366 exited normally, status=0
>   0(2364) ALERT:<core>  [main.c:719]: child process 2367 exited normally, status=0
>   0(2364) ALERT:<core>  [main.c:719]: child process 2368 exited normally, status=0
>   0(2364) INFO:<core>  [main.c:734]: INFO: dont_fork turned on, living on
>   0(2364) NOTICE:<core>  [main.c:679]: Thank you for flying kamailio
>    

-- 
Daniel-Constantin Mierla
http://www.asipto.com/




More information about the sr-users mailing list