[sr-dev] [tracker] Comment added: Cfg parsing error for alias/listen and custom global parameter

sip-router admin at sip-router.org
Tue Sep 7 21:21:52 CEST 2010


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#56 - Cfg parsing error for alias/listen and custom global parameter
User who did this - Andrei Pelinescu-Onciul (andrei)

----------

It happens because of an ambiguity in the grammar with alias and listen followed by a config var.
Both alias and listen can have an unquoted host list as value. An unquoted host is a list of
 IDs separated by '.'.  Since EOL is not taken into account (it's considered normal whitespace), alias=foo.bar followed by myvar.msg="..." is interpreted as:
alias=foo.bar myvar.msg
="..."  <- error

An workaround for this (besides not having config variables after alias or host) is to add ';' after alias.
E.g.:
alias="foo.bar";
myvar.msg="...."

I don't think it can be fixed without adding an incompatible config syntax change.
We could add a special prefix for config vars. (e.g cfgvar myvar.msg="..."), document it as the right way and add an "obsolete" warning for cfg. vars declared without this prefix.
----------

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=56#comment119

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list