[sr-dev] sl_send_reply in failure_route
Olle E. Johansson
oej at edvina.net
Tue Oct 5 14:46:50 CEST 2010
Hi!
The TM docs give this example (#59):
at http://kamailio.org/docs/modules/stable/modules/tm.html#t_reset_fr
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?
/O :-)
More information about the sr-dev
mailing list