Re: [SR-Users] send_reply() related feature request

2020-11-06 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > New function added, but no testing done -- if there are issues, open a > bug report. Works as expected, thanks, Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

Re: [SR-Users] send_reply() related feature request

2020-11-06 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > New function added, but no testing done -- if there are issues, open a > bug report. Thanks, will test later today, -- Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

Re: [SR-Users] send_reply() related feature request

2020-11-06 Thread Daniel-Constantin Mierla
New function added, but no testing done -- if there are issues, open a bug report. Cheers, Daniel On 04.11.20 13:48, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> I wanted to say that the new function to be added should be a bit more >> generic, not targeting only

Re: [SR-Users] send_reply() related feature request

2020-11-04 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I wanted to say that the new function to be added should be a bit more > generic, not targeting only set_reply_close()+send_reply(), but have a > "mode" parameter to control what other operations should be done before > sending the reply out. That is how I

Re: [SR-Users] send_reply() related feature request

2020-11-04 Thread Daniel-Constantin Mierla
On 03.11.20 11:10, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> 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 >>

Re: [SR-Users] send_reply() related feature request

2020-11-03 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > 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

[SR-Users] send_reply() related feature request

2020-11-03 Thread Juha Heinanen
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:

Re: [SR-Users] send_reply() related feature request

2020-11-03 Thread Daniel-Constantin Mierla
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