Thank you for the response. 
Which function in carrierroute module can check for session time?

Is something like this works?


route {

 if(!cr_route(“SONUS", "0", "$rU", "$rU", "call_id")){

     sl_send_reply("408", “Request Timeout");

 } else {

     # Relay the request to the gateway

     t_relay();

 }

}

failure_route[1] {

 if (t_check_status("408|5[0-9][0-9]")) {

     #choose route domain 1 of the default carrier

     if(cr_route(“SONUS", "1", "$rU", "$rU", "call_id")){

         t_relay();

     }

  }

}


Thanks,

Al S




> Date: Fri, 11 Sep 2015 07:01:17 -0700
> From: yasin.caner@netgsm.com.tr
> To: sr-users@lists.sip-router.org
> Subject: Re: [SR-Users] no response, re-route calls to a different address
>
> hello;
> you can do with carrierroute or other routing modules. when address doesn't
> respond in session time , it gives 408 request timeout. so with
> failure_route methods, you can re-route calls to different addresss.
>
>
>
>
> --
> View this message in context: http://sip-router.1086192.n5.nabble.com/no-response-re-route-calls-to-a-different-address-tp141253p141254.html
> Sent from the Users mailing list archive at Nabble.com.
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users