1. Brekeke Product Name and Version:
3.3.8.1
2. Java version:
1.7(64bit)
3. OS type and the version:
win8
4. UA (phone), gateway or other hardware/software involved:
5. Your problem:
After I login through the login() method with the sa user, I call method getRouteTemplateNames:
var m = {"jsonrpc": "2.0", "method": "getRouteTemplateNames", "params": {"tenant":""} , "id": id};
var mesg = JSON.stringify( m );
id++;
socket.send(mesg);
I received the following message:
"You are not authorized to perform this operation."
I also execute this method using web service, It's executed successfully. In the developer's guide, the required permission is sa. Please tell me the solution to fix this problem.
Thanks,
Pal websocket: You are not authorized to perform this operat
Moderator: Brekeke Support Team
Thank Lucy,llucy wrote:What was the JSON like for login?
Lucy
I base on sample on website:
http://www.brekeke.com/downloads/pbx-de ... #websocket
JSON:
var m = {"jsonrpc": "2.0", "method": "login", "params": {"login_password": login_str_cryp} , "id":id};
var mesg = JSON.stringify( m );
id++;
socket.send(mesg);
Thanks Lucy,llucy wrote:Can you show me the response to it as well?
What was the WebSocket URL?
Lucy
Can you show me the response to it as well?
"{"jsonrpc": "2.0", "error": {"code": -2000, "message": "You are not authorized to perform this operation."}, "id": "3"}"
What was the WebSocket URL?
"ws://172.18.23.89:18080/pbx/ws?tenant=-&login_user=sa&user=sa"