No subject


Thu Jul 10 23:27:17 CEST 2014


To reinforce the above statement, note that `route(test_route, $fU)` actually works.

Version: 1.8+

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/361
----==_mimepart_543ff2cbd18a5_4c7c3ff41804b2c0960a2
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<p>Supposing we have our <code>test_route</code> and we want to pass two pseudo-vars:</p>

<pre><code>route(test_route, $fU, $rp);
</code></pre>

<p>This will fail with:<br>
Oct 16 17:35:01 [30466] CRITICAL:core:yyerror: parse error in config file etc/mine.config, line 270, column 28-32: syntax error<br>
Oct 16 17:35:01 [30466] CRITICAL:core:yyerror: parse error in config file etc/mine.config, line 270, column 32-33: bad routeargument</p>

<p>From the looks of it, the bug seems to be located in the parser, specifically in the code that parses a "SCRIPTVAR" token (cfg.lex +823). The parsing looks too simple, and it seems to fail to detect the comma, thus causing a pv parsing error!</p>

<p>To reinforce the above statement, note that <code>route(test_route, $fU)</code> actually works.</p>

<p>Version: 1.8+</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/361">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyOTA5NjI2NywiZGF0YSI6eyJpZCI6NDYwMjA1NTN9fQ==--d9887b0937a6dcc487462234951cf97a155307de.gif" width="1" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":"https://github.com/OpenSIPS/opensips/issues/361","name":"View Issue"}}</script>
----==_mimepart_543ff2cbd18a5_4c7c3ff41804b2c0960a2--



More information about the Devel mailing list