<div dir="ltr">I prefer second way. Without any duplication.<br>For old configs branches 4.4, 5.0, 5.1 is always available.<br><br>Sergey</div><br><div class="gmail_quote"><div dir="ltr">ср, 19 дек. 2018 г. в 10:50, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
it was brought into discussions several times in the past about core<br>
functions not accepting variables in the parameters. I think it is time<br>
to update them during the 5.3 release development. For few of them, I<br>
added in the past some alternative function in the corex module (e.g.,<br>
force_send_socket() in core and set_send_socket() in corex module).<br>
<br>
So, I see two options:<br>
<br>
1) add a function with similar name in corex module and same behaviour<br>
like the one from core<br>
<br>
2) remove the function export from the core and export one with the same<br>
name from the corex module<br>
<br>
First one will ensure that configs using the functions right now keep<br>
working without any update.<br>
<br>
The second one will be better in long term from the point of<br>
documentation (no duplicated docs), but there might be few cases that<br>
would require updates in the config -- iirc, there are some functions<br>
that can get special tokens in the parameters (like forward(uri:host,<br>
uri:port)), they will get an equivalent with variables, but old config<br>
will not be compatible.<br>
<br>
Obviously the reason for this email is to ask the developers and users<br>
what would be the preferred way from own point of view.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
<a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
Kamailio World Conference - May 6-8, 2019 -- <a href="http://www.kamailioworld.com" rel="noreferrer" target="_blank">www.kamailioworld.com</a><br>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>