[sr-dev] ul.add params
miconda at gmail.com
Wed Oct 18 11:12:02 CEST 2017
if you don't need to provide any of those parameters, then it should just
work by not having them in the command.
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.
On Wed, Oct 18, 2017 at 10:24 AM, Juha Heinanen <jh at tutpro.com> wrote:
> I noticed that my ul.add command that works OK in 5.0 doesn't anymore
> work in 5.1. I get back to the xmlrpc query:
> <value><string>Not enough parameters or wrong format</string></value>
> I then went and compared ul.add in 5.0 and 5.1 and noticed that in 5.1
> it has added two optional params:
> received (optional) value with the received-from address (source
> address) (use '0' or '.' if it should not be set). Format:
> socket (optional) value with the local socket address (use '0' or
> '.' if it should not be set). Format: proto:localip:localport
> Note: the position of parameters is relevant, in the case of
> optional parameters, use '0' or '.' for parameters that should not
> be set which are positioned before any parameter that has to be set.
> What does that mean? Isn't optional really optional, but 0 or . is
> -- Juha
> Kamailio (SER) - Development Mailing List
> sr-dev at lists.kamailio.org
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sr-dev