[Kamailio-Devel] [ openser-Feature Requests-2159383 ] 'reply' function involving 'sl_reply' and 't_reply'

Juha Heinanen jh at tutpro.com
Sat Oct 11 16:51:48 CEST 2008


Iñaki Baz Castillo writes:

 > So, for the user that configures Kamailio, having two functions "t_reply" 
 > and "sl_reply" doesn't offer any added value, it just forces him to be very 
 > careful of which one to use. So, why not a easier function "reply()"?

yes, it sounds easier.  if there would be a function to check if a
transaction exists, then reply() could be implemented by core or by a m4
to be equivalent to this:

if (transaction_exists()) {
    t_reply(code, text);
} else {
    sl_reply(code, text);
}

-- juha



More information about the Devel mailing list