1. One problem may be that you are calling route[RELAY] from your
failure route and using sl_send_reply(). The route[RELAY] is still
being invoked in a failure route execution context, even if you have
managed to contextually invoke another route, or subroutine if you will.
Stateless replies (sl_reply_error()) cannot be sent from within a
failure route.
2. Yes. throw an append_branch() into your failure route.
--
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street NE
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web:
http://www.evaristesys.com/