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

Discussion in '3CX Phone System - General' started by Urbok, Oct 13, 2008.

Thread Status:
Not open for further replies.
  1. Urbok

    Urbok New Member

    Joined:
    Jul 14, 2007
    Messages:
    120
    Likes Received:
    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
     
  2. Urbok

    Urbok New Member

    Joined:
    Jul 14, 2007
    Messages:
    120
    Likes Received:
    0
    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.
     
Thread Status:
Not open for further replies.