2010/10/5 Olle E. Johansson <oej(a)edvina.net>et>:
failure_route[0]{
if (!t_branch_timeout()){
if (t_any_timeout()){
log("one branch did timeout\n");
sl_send_reply("408", "Timeout");
}
}
}
If I use sl_send_reply in a failure route (like in the example) I get
0(19813) : <core> [cfg.y:3333]: parse error in config file
/etc/kamailio/kamailio.cfg, line 719, column 49: Command cannot be used in the block
Now, is the documentation or the sl module in error?
It must be an error in the documentation. When entering in
failure_route this implies that the transaction does exist, so
sl_send_reply() is not valid.
--
Iñaki Baz Castillo
<ibc(a)aliax.net>