David, As usual, you are working too hard, too fast, and need to slow down, breathe, relax, practice some "mindfulness techniques", and take a meditative stroll through the documentation. :-)
https://kamailio.org/docs/modules/5.2.x/modules/textops.html#textops.f.set_reply_body -- Alex 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 > <[email protected]> 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 > > _______________________________________________ > Kamailio (SER) - Users Mailing List > [email protected] > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ _______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
