Custom module request

Hi chaps

I’m after a module that will allow me to edit the routing table on a freepbx box from the admin interface. This is to make it easier to swap between internet connections in the event of a failure.

Currently this only takes about 30 seconds but we need SSH access and I don’t really want to give the other IT chaps SSH access.

Having a way to edit, add and delete route entries would allow them to easily swap between lines. It’s really just that and the SIP external IP setting and they are off.

I don’t really have a budget for it but I might be able to find something.

Olly

Even easier, attach that script to a custom extension (7376883=reroute)

exten => 7376883,1,System(/var/lib/asterisk/bin/yourreroutescript)

let it take arguments and change the route back.

One way to do this is to give them a non-root account and then use SUDO to give them access to what they need. I did this be writing a few shell scripts that change IP addresses and gateways. The user logs in as a non-root account and runs the script as root.