Event Manager Regular Expression

I would like to use a RegEx statement in the events-main stanza to filter on a node id.

The functionality that I am using is based on an example in the ASL Manual - Event Management Subsystem.

TEMPVAR = v|e|${RPT_LINKS} =~ "",2000.""
*1234 = f|t|TEMPVAR

But I would like to filter node IDs starting with T3 (Echolink).

The Regular Expression should be fairly simple. ([T][3].....) but it isn't obvious where to place this within the evaluation. =~ "\",2000.\""

Tom.

I found a basic solution for what I wanted to achieve.

ECHO_CONN = v|e|${RPT_ALINKS} =~ "\",3......\"" ; Testing RegEx
*571 = f|t|ECHO_CONN

So whenever an Echolink node connects directly to any of my nodes (repeaters/gateways) I can run a macro to log the event. I switched from RPT_LINKS to RPT_ALINKS to capture only the direct (adjacent) connections. RPT_ALINKS outputs the node number without the leading 'T'.

The Asterisk CLI indicated problems whenever I tried any standard RegEx commands so I just used '3......' The number 3 followed by 6 dots in the expression. i.e. Starts with the number 3 then any characters/numbers for the next 6.

Tom