[App_rpt-users] Temporary stop, then restart asterisk

Bryan D. Boyle bdboyle at bdboyle.com
Fri May 26 17:26:48 UTC 2017


or...assign a couple DTMF functions in rpt.conf, for instance:

85 = cmd,/etc/asterisk/scripts/enable.sh
86 = cmd,/etc/asterisk/scripts/disable.sh

where, in a /scripts directory under /etc/asterisk, there are two 
scripts as above...
enable.sh:

#!/bin/bash
/usr/sbin/asterisk -rx "rpt cmd nodenumber cop 2 nodenumber"

disable.sh
(replace the 2 with a 3)

chmod 755 [enable.sh, disable.sh]

rasterisk
rpt reload

lots of ways to skin the cat.  Remember, not only is asterisk/allstar 
functionally rich...but you can also use the underlying OS to do many 
wonderful and various things both to itself as well as the application.  
There are no limits to the creativity...



On 5/26/2017 12:43 PM, Steve Zingman wrote:
> As you said, it was when DIAL first released for the RPi so it's 1.0
> From the asterisk CLI:
> rpt cmd 1999 cop 2 1999 <------------ system enable
> rpt cmd 1999 cop 3 1999 <------------ system disable




More information about the App_rpt-users mailing list