Gateway Stop/Start from extern with API ?

Status
Not open for further replies.

MrWeb

New Member
Mar 8, 2021
23
1
3
49
Hi @ all,
is there a way to Stop/Start a Gateway from external ?
I have problems with the DSL Router. After a new dialin the the phones are a very long time
not accessible from the outside. Also calls to the outside are not working.
If i stop and start the gateway in fusionpbx all is working again.
Now is search for a solution, to stop/start the gateway with a curl command from the
dsl router (dialin script)
Any ideas ?

Best regards,
MrWeb
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
If you are doing it from the PBX itself there is no need to curl. I would if I were you though, try and solve the problem itself. You may just be hitting NAT timeouts and all restarting the gateway does is refresh the tunnel. Maybe lower your register time down to 120 seconds on the gateway instead and see if that works.

You can execute any of the commands by doing as an example:

Code:
fs_cli -x "sofia profile external restart"

Or anything else you can run within fs_cli.
 

MrWeb

New Member
Mar 8, 2021
23
1
3
49
Thank you, that helps.
With the timeouts, i have the minimum that the provider supports.
But the porblems are the same.
So i can run a restart automaticly when the dsl dial in.

Thank you very much.
 
Status
Not open for further replies.