[Kamailio-Devel] [ openser-Feature Requests-2159383 ] 'reply' function involving 'sl_reply' and 't_reply'
Iñaki Baz Castillo
ibc at aliax.net
Sat Oct 11 16:59:02 CEST 2008
El Sábado, 11 de Octubre de 2008, Juha Heinanen escribió:
> 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);
> }
Yeah! :)
--
Iñaki Baz Castillo
More information about the Devel
mailing list