[SR-Users] send_reply() related feature request

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 3 10:48:20 CET 2020


Hello,

set_reply_close() is very minimal wrapper action from the core setting
an internal flag. It can be merged with a reply function, but maybe it
should be a new function a little bit more generic, like
send_reply_mode(code, reason, mode) where mode is a parameter that can
be used for other purposes in the future (by using bit-based flags).

Cheers,
Daniel

On 03.11.20 07:42, Juha Heinanen wrote:
> Many times (especially when there is a hacking attempt) I want to close
> TCP or TLS session after sending reply.  So, for example, I write:
>
>   set_reply_close();
>   send_reply("403", "Forbidden");
>
> It would be more convenient if these two calls could be combined into
> one, for example:
>
>   send_reply_and_close("403", "Forbidden");
>
> -- Juha
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla




More information about the sr-users mailing list