IP PBX ForumCategory: PBX How ToAPI from remote server
Ricardo MRicardo M asked 3 years ago
Hi.
Can someone point me in the right direction in order to make work API requests from a remote server.
Now i can run request from the console with curl and http://localhost/api.
Bu t i need to make request from a remote  server to the PBX’s IP.   Something like : http://192.168.20.3/api.
 
Thanks!

3 Answers
Ricardo MRicardo M answered 3 years ago
Hi.
In case anyone has the same problem, i finally made it work through the CompletePBX console…
ADMIN — Admin — Application Access — Whitelist.
I added the remote server IP address and started to work!.
Regards,
Ricardo

Eyal OrenEyal Oren Staff answered 3 years ago

Hi Ricardo,
You can also register an application key which can be used from any IP
Contact me on support@xorcom.com, in case help needed

Ricardo MRicardo M answered 3 years ago
Hi Eyal.
Is there a way to restrict the access to a command in some way?.
I need a user only to get access to the http://localhost/api/cdr but not to any other command
 
Thanks!