# Event "errors" when using ASL3

**URL:** <https://community.allstarlink.org/t/event-errors-when-using-asl3/21382>\
**Category:** AllStarLink\
**Created:** [July 12, 2024, 7:32pm UTC](https://community.allstarlink.org/t/event-errors-when-using-asl3/21382 "2024-07-12T19:32:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![N8RAW](https://community.allstarlink.org/user_avatar/community.allstarlink.org/n8raw/32/2906_2.png) [@N8RAW](https://community.allstarlink.org/u/N8RAW)\
**Post date:** [July 12, 2024, 7:32pm UTC](https://community.allstarlink.org/t/event-errors-when-using-asl3/21382/1 "2024-07-12T19:32:15Z")

</div>

We have an event file that was working prior to ASL3 with the following:

```auto
rmtactive = v|e|${RPT_ALINKS} =~ "\"[TRC]K\""
touch /temp/rmon.sig = s|t|rmtactive

```

When a user keys up from a remote node, we get the following error:

[2024-07-12 15:16:51.590] WARNING[36169]: ast\_expr2.fl:468 ast\_yyerror: ast\_yyerror(): syntax error: syntax error, unexpected ‘,’, expecting $end; Input:  
1,572920TU =~ “[TRC]K”

I don’t see a way to address this in my configuration - Maybe this format changed and I’m missing the docs?  
I think this is a bug in ASL3?

---

<div class="post-metadata">

**Author:** ![KB4MDD](https://community.allstarlink.org/user_avatar/community.allstarlink.org/kb4mdd/32/3817_2.png) [@KB4MDD](https://community.allstarlink.org/u/KB4MDD)\
**Post date:** [July 12, 2024, 10:00pm UTC](https://community.allstarlink.org/t/event-errors-when-using-asl3/21382/2 "2024-07-12T22:00:31Z")

</div>

The asterisk expression evaluator has had alot of changes. This is talks about some of the changes.

[Expression Parser Incompatibilities - Asterisk Documentation](https://docs.asterisk.org/Configuration/Dialplan/Expressions/Expression-Parser-Incompatibilities/)

I think you need to add some quotes. I will ask the team.

Danny

---

<div class="post-metadata">

**Author:** ![N8RAW](https://community.allstarlink.org/user_avatar/community.allstarlink.org/n8raw/32/2906_2.png) [@N8RAW](https://community.allstarlink.org/u/N8RAW)\
**Post date:** [July 13, 2024, 12:17pm UTC](https://community.allstarlink.org/t/event-errors-when-using-asl3/21382/3 "2024-07-13T12:17:30Z")

</div>

I’m not sure I (as a user) can add quotes to the evaluated expression. The (old) examples do look like this:  
[https://wiki.allstarlink.org/wiki/Event\_Management](https://wiki.allstarlink.org/wiki/Event_Management)

`rmtactive = v|e|${RPT_ALINKS} =~ "\"[TRC]K\""`

It appears the code is not wrapping the value of ${RPT\_ALINKS} in quotes when it’s sent to the asterisk evaluator (No quotes shown in the error) .

[2024-07-13 08:13:06.795] WARNING[185890]: ast\_expr2.fl:468 ast\_yyerror: ast\_yyerror(): syntax error: syntax error, unexpected ‘,’, expecting $end; Input:  
**1,572920TU =~ “[TRC]K”**

I don’t see a way to add them without modifying the code base (is there a way?).

---

<div class="post-metadata">

**Author:** ![N8RAW](https://community.allstarlink.org/user_avatar/community.allstarlink.org/n8raw/32/2906_2.png) [@N8RAW](https://community.allstarlink.org/u/N8RAW)\
**Post date:** [July 14, 2024, 12:08pm UTC](https://community.allstarlink.org/t/event-errors-when-using-asl3/21382/4 "2024-07-14T12:08:14Z")

</div>

OK - answering my own question - hope it helps the next guy 🙂  
Appears to properly escape and all is good.

`rmtactive = v|e|"\"${RPT_ALINKS}\"" =~ "\"[TRC]K\""`

Probably best to always add the " to variables.

---

<div class="post-metadata">

**Author:** ![system](https://community.allstarlink.org/uploads/default/original/2X/4/42700284e201b031bd667c3f63bbae05a74b3104.png) [@system](https://community.allstarlink.org/u/system)\
**Post date:** [July 17, 2024, 12:08pm UTC](https://community.allstarlink.org/t/event-errors-when-using-asl3/21382/5 "2024-07-17T12:08:42Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
