On Fri, Nov 25, 2016 at 06:55:34PM +0200, Sergey Basov wrote: > Is it safe to use remove_hf("User-Agent") without check if this header > exist? > or better use if(is_present_hf("User-Agent")) { remove_hf("User-Agent"); } ?
Just remove_hf is enough. is_present_hf/remove_hf might be more readable though. _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users