uh, you can execute a shell script from a DTMF command by specifying the dtmf in the functions stanza for the node in question: example: 89=cmd,/path/to/script.sh where script.sh is something like below located in the /path/to/ directory with the proper chmod values set. #!/bin/bash /usr/sbin/asterisk -rx "rpt fun node# *somecommand#" simple, and fully documented. actual application is left as an exercise to the reader. automating it via a schedule? use the OS crontab. -- Bryan Sent from my iPhone 5...small keyboard, big fingers...please forgive misspellings... On Sep 3, 2013, at 9:16, Geoff Edmonson <ars.w5omr@gmail.com> wrote:
You mean like root@[local]> asterisk -rx "rpt fun [node number] *81" and... You want to do that from a macro? No. However, if you want to connect to different nodes, that's entirely what the [macro] stanza in rpt.conf is all about.
Search the archives here or on ohnosec.org or even Timmy's drupal page. Google is your friend.
"Bryan D. Boyle" <bdboyle@bdboyle.com> wrote:
digging through the list archives, yes it's painful. would yield a treasure trove on this topic.
-- Bryan Sent from my iPhone 5...small keyboard, big fingers...please forgive misspellings...
On Sep 3, 2013, at 4:14, Paul Schlacter <paulschlaterradio@gmail.com> wrote:
Hello Group, Is there a conventional way to execute CLI commands via a custom macro?
In other words:
Could app_rpt take a received DTMF command to execute a macro that would execute a predefined CLI command?
73 all!
Paul _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users