meditative stroll through the documentation. :-)
On Thu, Apr 18, 2019 at 06:47:52PM +0000, David Dean wrote:
> I've been reviewing the code for the sl module to try and see if it can be modified to send the current body with send_reply().
> However I'm not a C programmer so I'm fumbling around in the dark!
> I came across this section in sl_funcs.c
> /* if that is a redirection message, dump current message set to it */ if (code>=300 && code<400) { dset.s=print_dset(msg, &dset.len, sl_rich_redirect); if (dset.s) { add_lump_rpl(msg, dset.s, dset.len, LUMP_RPL_HDR); } }
> If this was modified to include LUMP_RPL_BODY then could that be made to work?
> Or is there a better way of tweaking this SL module to include the body in the response when using send_reply()?
> Thanks, Dave
> On Tuesday, 16 April 2019, 23:28:06 BST, David Dean <
just_bytesize@yahoo.co.uk> wrote:
>
> Hello Kamailio gurus,
> I'm successfully using send_reply() with append_to_reply() to add some custom headers.
> Now I need to add some text into the reply body.
> How can I add a body to send_reply() ?
> Thx, Dave