[Devel] Blacklist and failover

Alex _alex_ at ukr.net
Wed Feb 7 09:33:07 CET 2007


Hello, 

> if you got into failure route, it was because of a negative reply - what 
> was that code?  an IP because blacklisted only if it was a DNS-based 
> failover which is not visible in failure_route (not triggered).
>
> can you post (or send privately) the debug log for such a call?

Sorry, I can not send you log, but You can reproduce it with script below

route {
    xlog("L_ERR", "main route $rm $cs\n");
    rewriteuri("sip:my ip:wrong port");
    t_on_failure("1");
    if (!t_relay())
	sl_reply_error();
}

failure_route[1] {
    xlog("L_ERR", "failure_route $rm $cs\n");
    append_branch("sip:my ip:another wrong port");
    t_relay();
}

With this script i got next output:

1: main route REGISTER 1
2: main route REGISTER 1
3: main route REGISTER 1
4: failure_route REGISTER 1
5: main route REGISTER 1

// "408 Request Timeout" was returned

6: main route REGISTER 1

// "477 Unfortunately error on sending to next hop occurred (477/TM)" was returned



More information about the Devel mailing list