Schedule voip line re-registration? (gateway_lines_upd.php)

Status
Not open for further replies.

Urbok

Joined
Jul 14, 2007
Messages
120
Reaction score
0
Hello.
I've done an installation on a customer provided of Wireless connectivity.
Due to the low quality of the line I need a script that re registrer the lines evey 5 minutes.
Look that I dont need to restart 3cx every 5 minutes, I need to simulate the "register the line" button present on php page:

line_configuration.php?selected[]=1

Lookgin on the PHP file it seem that this button call the page:

gateway_lines_upd.php?action=7&selected[]=1

where
action=7 is the re registration request
and
selected[]=1 is the line ID to re registrer.

I've tried to call directly a scheduled request to:
http://IP:5481/gateway_lines_upd.php?action=7&selected[]=1

but I'm not logged as administrator on the admin website so this results on a redirect login page.
Is there a way to bypass the asmin page to simply do a scheduled re registrer every 5 minutes?

thanx
 
I've found a possible solution!

I've manually modified and inserted at the top of php file this variable:
$skip_session_check=1;
with this variable set to 1 (or to true) the page dont check for session login and it's possible to re register the lines every 5 minutes.
Now I prepare a php page different from the original one that can be scheduled on the server.

bye.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,885
Messages
589,547
Members
164,746
Latest member
Bastion Advisory