Hi all,

I have a problem with using aliases when user doesn't answer the call (408, request timeout). for this I'm using failure_route[1]. After 20sec when user doesn't answer the call, call comes in failure_route and it is recognizes as 408, but when I want to rewrite URI with alias "884" I get "Not found in usrloc", but as you can see from the output of "serctl ul show" user is in both tables (location and aliases). Can somebody help because I don't know what I’m doing wrong.

Thanks a lot

davor

*******************************************
failure_route[1]{
        if(t_check_status("408")){
                log("LOG:entered failure route 1 on code 408\n");
                lookup("aliases");
                rewritehostport("161.53.2.235:5060");
                t_relay();
        }
}

********************************************
1(22439) ->>>>>>>>> T_code=180, new_code=408
 1(22439) DEBUG: t_check: msg id=2 global id=2 T start=0x40460708
 1(22439) DEBUG: t_check: T already found!
 1(22439) DEBUG:t_check_status: checked status is <408>
 1(22439) LOG:entered failure route 1 on code 408
 1(22439) lookup(): 'djovanovic' Not found in usrloc
 1(22439) ERROR: t_forward_nonack: no branched for forwarding
 1(22439) ERROR: w_t_relay (failure mode): forwarding failed

********************************************
serctl ul show

domain: 'location'
aor   : 'djovanovic'
~~~Contact(0x404604a8)~~~
domain    : 'location'
aor       : 'djovanovic'
Contact   : 'sip:djovanovic@161.53.0.77:5060'
Expires   : 429
q         :
Call-ID   : '40C79AFEA5C644ADB6FEA320F247C793@sipgw.srce.hr'
CSeq      : 52664



...Record(0x4045e238)...
domain: 'aliases'
aor   : '884'
~~~Contact(0x4045e298)~~~
domain    : 'aliases'
aor       : '884'
Contact   : 'sip:djovanovic@sipgw.srce.hr'
Expires   : Permanent
q         : 1
Call-ID   : 'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything'