<div dir="ltr">Hello,<div><br></div><div>if you don't need to provide any of those parameters, then it should just work by not having them in the command.</div><div><br></div><div>But, for example, if you want to provide socket only, which is after the received as parameter order, then you must provide received parameter as well and use . or 0 to specify that received should not stored.</div><div><br></div><div>Cheers,<br>Daniel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 18, 2017 at 10:24 AM, Juha Heinanen <span dir="ltr"><<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I noticed that my ul.add command that works OK in 5.0 doesn't anymore<br>
work in 5.1.  I get back to the xmlrpc query:<br>
<br>
  <name>faultString</name><br>
  <value><string>Not enough parameters or wrong format</string></value><br>
<br>
I then went and compared ul.add in 5.0 and 5.1 and noticed that in 5.1<br>
it has added two optional params:<br>
<br>
    received (optional) value with the received-from address (source<br>
    address) (use '0' or '.' if it should not be set). Format:<br>
    sip:srcip:srcport;transport=<wbr>abc<br>
<br>
    socket (optional) value with the local socket address (use '0' or<br>
    '.' if it should not be set). Format: proto:localip:localport<br>
<br>
    Note: the position of parameters is relevant, in the case of<br>
    optional parameters, use '0' or '.' for parameters that should not<br>
    be set which are positioned before any parameter that has to be set.<br>
<br>
What does that mean? Isn't optional really optional, but 0 or . is<br>
needed?<br>
<br>
-- Juha<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Development Mailing List<br>
<a href="mailto:sr-dev@lists.kamailio.org">sr-dev@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></div><div><a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></div></div></div></div></div>
</div>