[sr-dev] any way to detect local replies in failure route

Andrei Pelinescu-Onciul andrei at iptel.org
Fri Sep 18 22:37:00 CEST 2009


On Sep 18, 2009 at 18:48, Daniel-Constantin Mierla <miconda at gmail.com> wrote:
> While testing the kamailio 3.0 I couldn't find a way to detect in 
> failure route if replies were locally generated, such it could be 
> achieved in 1.5 with:
> http://kamailio.org/docs/modules/1.5.x/tm.html#id2531261

No, there isn't.

What does "all" and "last" exactly mean?

For example, in failure route "all" would match even if all the replies
were local, except the current one which happens to be winning?
(e.g. 1 branch, a local 180 followed by a relayed 500 should result
 in t_local_replied("all") being true or false?).

What should "last" do? It applies only to the winning branch and not to
all of them? It means the current winning reply, or the last reply
received previously on the winning branch?

I'm also not sure what is "last" supposed to do in a branch route.

I have the code for _all almost done (copy & paste from t_any_replied()
slightly modified), all that's missing is the exact behaviour in the
above cases.

Andrei



More information about the sr-dev mailing list