Well, I was hoping that asterisk would have a way to expand asterisk variables before the shell gets called ( by the s| syntax ). Apparently, asterisk is passing the command as is and the shell is expanding the variable. On Tue, Apr 4, 2017 at 8:54 PM, <mike@midnighteng.com> wrote:
I think your problem is that you are trying to execute from a linux command and the subsystem resides at the asterisk level.
Not that you can do it from there but you must address it where it resides.
...mike/kb8jnm
----- Original Message ----- From: "Users of Asterisk app_rpt" <app_rpt-users@lists.allstarlink.org>
To: <App_rpt-users@lists.allstarlink.org> Cc:
Sent: Tue, 4 Apr 2017 16:39:51 -0700 Subject: [App_rpt-users] event subsystem variable use in system call
I am learning about the event subsystem.
One of my events looks like this:
echo bla ${RPT_ALINKS} >> /tmp/blabla = s|T|RPT_NUMLINKS
This executes when I connect. The contents of /tmp/blabla is simply bla. I would have expected ${RPT_ALINKS} to have been expanded.
Am I assuming functionality that doesn't exist?
Lowell
_______________________________________________ App_rpt-users mailing list App_rpt-users@lists.allstarlink.org http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://lists.allstarlink.org/ cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.