[sr-dev] Distinguish between local 408 generated after "fr_inv_timer" and "fr_timer"

Andrei Pelinescu-Onciul andrei at iptel.org
Thu Mar 25 20:02:36 CET 2010


On Mar 25, 2010 at 19:07, I??aki Baz Castillo <ibc at aliax.net> wrote:
> 2010/3/25 Andrei Pelinescu-Onciul <andrei at iptel.org>:
> > Try t_any_replied()
> > (http://sip-router.org/docbook/sip-router/branch/master/modules/tm/tm.html#t_any_replied)
> >
> > E.g.:
> > ??if (t_check_status("408"){
> > ?? ??if (!t_any_replied()) {
> > ?? ?? ?? ??t_reply(503, "Try again later, busy gws");
> > ?? ?? ?? ??exit;
> > ?? ??}
> > ??}
> 
> 
> According to the documentation:
> ----------------------
> t_any_replied()
> 
> Returns true if at least one of the current transactions branches did
> receive some reply in the past. If called from a failure or onreply
> route, the "current" reply is not taken into account.
> -----------------------
> 
> Does it also return true if the only received response was 1XX?

Yes, it should (I don't remember if I ever tested it with provisional
replies).

Andrei



More information about the sr-dev mailing list