1. MAKE GSM GATEWAY IP ADDRESS A VARIABLE INTO CODE:
I have a custom developed asterisk autodialer running on CentOs 6.0. Dialer controls a remote GSM gateway. Now this gate way requires to be moved to a new location and it's IP address will change for a new one.
Currently, IP address for GSM gateway is set as an argument into dialer's code. [ Please see [url removed, login to view]]
There is a GUI where I can input GSM gateway IP address but this text box is not changing IP address accros Dialer's code.
Now is necessary to convert that argument to a variable and make it accesible thru dialer's php GUI, so if in the future is required to change IP address again, then administator can do it from GUI easily.
2. MAKE DIALER RUN ON ANY IP:
Let me explain, coder thought it was a good idea to implement a protection for dialer where iit could not run from any IP, so if code were stolen it would not run on other server as IP address was going to be different from current one.
It was a good idea and it works, but problem is that I use cloud servers and IP address are given by provider and they change each time I create an instance.
I require an effective way to deactivate that feature completally/ automatically [ whatever].
Currently I found a way to deactivate that feature manually, I just type : rm cd /etc/udev/rules.d/[url removed, login to view]
then I reboot instance of server and then I can control it using for example putty.