Jump to content

https://doc.vodia.com/vodia_php_rest_api


Recommended Posts

If you have turned on filtering for domain names, you must make sure that the hostname in the HTTP request matches either a domain name or the system management address in 66. Apart from that, I would not know what else could have changed.

Link to post
Share on other sites

The 5 bytes returned are probably "false". Which means that the request to establish a session failed...

If you want to use curl there is an easier way to authenticate the request, just use the -u admin:password option for curl (e.g. curl -u username:password GET -D - http://192.168.1.194:8080/rest/system/log). Then there is no need to set up a session.

Link to post
Share on other sites

If you want to perform a third party login, there is a special API for that that will also set the necessary headers for the cross origin problem (CORS). This works different from the login for the browser. There is an article on https://doc.vodia.com/third_party on this topic. There is also an example at the bottom of https://doc.vodia.com/click2dial where you can see how the soft phone gets the credentials for a user.

Link to post
Share on other sites

I appreciate your reply but we are going around in circles. We have tried the third party log in without success. We have tried the rest api with curl without success. I am not sure how the third example would help us log into the web page.

PLease advise if this is possible.

Link to post
Share on other sites

Please understand, if this is any trouble don't worry about it. I am sure this isn't a oft used feature, as no one else has mentioned it on the forums. That is why i used the topic header, and there was nothing in the forums on the third party login, but a fair bit of activity with the php api. 

I realize that browser security it becoming more and more challenging, so this probably did work at the latest browser updates may have killed it. In any event, if you can resolve it or not, the Vodia pbx is a fantastic product. Keep it up!

Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...