[sr-dev] set_forward_no_connect() test

Juha Heinanen jh at tutpro.com
Wed Mar 10 00:36:55 CET 2010


Klaus Darilion writes:

 > see bottom of 
 > http://www.mail-archive.com/sr-dev@lists.sip-router.org/msg03659.html

ok, klaus had already complained about the error messages.  regarding
the example:

  One way to handle this from the script is first to try t_reply() and
  only if t_reply() fails, sl_reply_error(). E.g.:
  
  if (!t_relay()) {
      if (!t_reply("500", "Some error"))
        sl_reply_error();
  }

there is also function send_reply() that is supposed to figure out
automatically, what kind of reply to send.  so is the above equivalent
with this:

  if (!t_relay()) {
      send_reply("500", "Some error");
  }

??

-- juha



More information about the sr-dev mailing list