[reSIProcate] rutil::ConfigParse question

Scott Godin sgodin at sipspectrum.com
Fri Mar 20 13:18:20 CDT 2015


Originally ConfigParse was setup to allow multiple values for a
configuration option.  However in December of 2013 Daniel P. added the
duplicated key detection - breraking this capability.  I'm not sure the
reason why - so I'll let him chime in on this.  His commit comment was:
* rutil: ConfigParse: reject duplicate values from any given config source

In the meantime, it seems (after code inspection) that if you use a comma
separated string for the value - that you can get multiple items returned.

Scott

On Wed, Mar 11, 2015 at 7:13 AM, palladin <p-aladin at yandex.ru> wrote:

> Dear resip devels,
> I'e notice that rutil::ConfigParse has next interface method -  bool
> getConfigValue(const resip::Data& name, std::vector<resip::Data> &value);
> But at the same time ConfigParse.cxx:420 rejects key duplicates?
> Could you please advise how to insert duplicate keys?
>
> Sincerely, Taras.
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20150320/432207f0/attachment.htm>


More information about the resiprocate-devel mailing list