koolandrew Posted September 15, 2020 Report Share Posted September 15, 2020 We have tried this on v65 and upgraded to v66, and when we follow the documentation, we get a no-reply from the pbx. Any ideas on how to resolve this, as we added the proper ip from which the api came? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 15, 2020 Report Share Posted September 15, 2020 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. Quote Link to comment Share on other sites More sharing options...
koolandrew Posted September 16, 2020 Author Report Share Posted September 16, 2020 For some reason, i never got this reply. Yes it is a domain on the server, yet no response. If this doesnt work, just let me know so i can move on. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 17, 2020 Report Share Posted September 17, 2020 ... and of course you could have been blacklisted though this should clear up after some time. Quote Link to comment Share on other sites More sharing options...
koolandrew Posted September 17, 2020 Author Report Share Posted September 17, 2020 i wish it was that simple...no blacklisting...the ip that its coming from is listed in the api Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 17, 2020 Report Share Posted September 17, 2020 Maybe you can post the log with log level 9 for the web server to get a clue what is going on. Quote Link to comment Share on other sites More sharing options...
koolandrew Posted September 17, 2020 Author Report Share Posted September 17, 2020 Thanks, hopefully this will help. vodia66log.txt Quote Link to comment Share on other sites More sharing options...
koolandrew Posted September 18, 2020 Author Report Share Posted September 18, 2020 no luck? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 21, 2020 Report Share Posted September 21, 2020 Well the login seems to work... I cannot see any REST API calls apart from those coming from the browser. Are you using curl? Quote Link to comment Share on other sites More sharing options...
koolandrew Posted September 21, 2020 Author Report Share Posted September 21, 2020 Yes, and the debugging shows that its not returning any session information. Quote Link to comment Share on other sites More sharing options...
koolandrew Posted September 21, 2020 Author Report Share Posted September 21, 2020 Hi, i was wondering if there are any updates. If this doesnt work, so be it. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 22, 2020 Report Share Posted September 22, 2020 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. Quote Link to comment Share on other sites More sharing options...
koolandrew Posted September 22, 2020 Author Report Share Posted September 22, 2020 Our intention is to use this code to log in to the pbx web page, not grab a log. Does your solution solve that? Please advise. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 22, 2020 Report Share Posted September 22, 2020 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. Quote Link to comment Share on other sites More sharing options...
koolandrew Posted September 22, 2020 Author Report Share Posted September 22, 2020 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. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 22, 2020 Report Share Posted September 22, 2020 I think the best to open a ticket and attach the code that you are using there right now. We have done other projects and maybe we can fix the code there easily and get this working. Quote Link to comment Share on other sites More sharing options...
koolandrew Posted September 23, 2020 Author Report Share Posted September 23, 2020 i did and received no reply. Quote Link to comment Share on other sites More sharing options...
Support Posted September 23, 2020 Report Share Posted September 23, 2020 What is your ticket # ? Quote Link to comment Share on other sites More sharing options...
koolandrew Posted September 23, 2020 Author Report Share Posted September 23, 2020 Your request (5284) has been received and is being reviewed by our support staff. I am not sure if this was the right place to open up a ticket. and if not i would be happy to do it elsewhere. I never got a reply. Quote Link to comment Share on other sites More sharing options...
Support Posted September 23, 2020 Report Share Posted September 23, 2020 Yes, that ticketing system closed a long time ago. Please switch over to vodia.zammad.com if you can please. Quote Link to comment Share on other sites More sharing options...
koolandrew Posted September 23, 2020 Author Report Share Posted September 23, 2020 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! Quote Link to comment Share on other sites More sharing options...
koolandrew Posted July 22, 2021 Author Report Share Posted July 22, 2021 HI, i see that you updated your documentation on this topic for Third Party Login, but we have the same results as it doesnt work. https://doc.vodia.com/docs/thirdparty Is there anything that is missing from this API as it doesnt seem functional. Â thanks Quote Link to comment Share on other sites More sharing options...
Support Posted July 22, 2021 Report Share Posted July 22, 2021 What are the APIs that you're using and what error is it throwing? Quote Link to comment Share on other sites More sharing options...
koolandrew Posted July 22, 2021 Author Report Share Posted July 22, 2021 We are trying to user third party login, and it doesnt work. Can i provide you a test user:pass and you could try with your code to see if it works.  Please advise  Quote Link to comment Share on other sites More sharing options...
koolandrew Posted July 23, 2021 Author Report Share Posted July 23, 2021 Dont worry about it, i dont want to waste your time. I will figure out another way to work around this feature. You do alot of great work, and i forgot that no one else seems to be using this, so there are much more important things to spend your time on. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.