Is Allmon3 capable of running a script with argments directly via web.ini syscmds?

I want to run a script, with dynamic arguments, from the web.ini syscmds interface. For example, in web.ini I tried this configuration under syscmds.

/usr/local/bin/mutemonitor @ % mute = Mute audio

This returns an error with the journal for allmon3 showing...

ERROR: (asl_allmon.allmon3_ws_cmd) unsupported command: /usr/local/bin/mutemonitor 516227 515402 mute from ('::1', 35130, 0, 0

I'm guessing Allmon3 requires commands to be run via rpt fun..., since that's the example provided in documentation. However, that prevents dynamic arguments from being passed from Allmon3, as shown above.

Maybe there is another way?

David, WD5M

Allmon3 connects excluslively to Asterisk/AMI by design. Any command you can run via Asterisk is supported. But you cannot make an arbitrary shell call, no.

Okay, that's what I had concluded.

If my recent open issue with CoreShowChannels with node number in CallerID is resolved, which is looking promising, I'll look into possibly adding this to the Allmon3 code. It is mostly AMI calls and logic in the script anyway.

David, WD5M

You mean you're going to add the capability to do what you want into Asterisk commands? Allmon3 can't run any system commands because it runs as an unprivleged random user.

No, I'll look at adding my MuteMonitor feature via AMI inside Allmon3 source. My script is doing this via AMI anyway.

David, WD5M