[App_rpt-users] Bash Shell

Bryan D. Boyle bdboyle at bdboyle.com
Wed Mar 21 16:19:34 UTC 2018


On 3/21/2018 11:23 AM, Bryan D. Boyle wrote:
> Should be
> /usr/sbin/asterisk -rx "rpt fun $1 *$2$3#"
>
> which makes the command line (for instance, to connect):
> dtmf1=cmd,/etc/asterisk/scripts/command.sh 12345 3 56789
> to connect node 12345 to node 56789
>
> to disconnect...
> dtmf2=cmd,/etc/asterisk/scripts/command.sh 12345 1 56789
>
> One shell.  Multiple uses.  Cleans out the cruft in all our local 
> script directories (if we have them...and you should...)
And, you can chain commands...calling existing scripts...
84=cmd,/etc/asterisk/scripts/command.sh 12345 86
calls...
86=cmd,/etc/asterisk/scripts/forecast.sh

I know, kind of bogus (I've tried it and it works...), but one of those 
"I wonder..."

Using the event management subsystem to, for instance (I don't know if 
you can do this...but...would be interesting to hack at it...), write 
the incoming node number to a temp file, read in that temp file as node1 
and do something with it.

Point being, combining the power of asterisk with the almost unlimited 
utilities in the underlying OS...haven't even begun (after all this 
time) to tap what is possible.

Bryan
WB0YLE/W2FUV
Morrisville (snowy) PA





More information about the App_rpt-users mailing list