Kurento JSON-RPC JoinRoom Method not found.

332 views
Skip to first unread message

d404...@googlemail.com

unread,
Feb 4, 2016, 12:20:34 PM2/4/16
to kurento
Hi,
I have Kurento Media server running, but i am having trouble joining a room for an ios Client. I am using the KurentoToolbox pod in my project and it appears to be connecting properly as i get a callback to the delegate saying connected and in the kurento server logs i can see "Client connected from " so thats fine.
When i go to join a room or in that instance do any json rpc related calls, it seems to not be working correctly.
I have the server setup so that it connects to the json rpc client via this url https://serveraddress:8433/kurento and as mentioned, i am able to establish some form of connection, but when i then perform the join room method:

"Message: >{"jsonrpc":"2.0","method":"joinRoom","id":0,"params":{"user":"Andrew","room":"Andrews"}}"

Then it responds with:

"Response: >{"error":{"code":-32601,"message":"Method not found."},"id":0,"jsonrpc":"2.0"}"


Can anybody help me out? for joining a room does the json rpc url have to be different? i read somewhere it should be https://serveraddress:8433/room but that doesn't work either.


I have the demo java client working fine, so i believe that it is setup correctly and its probably likely the ios client is wrong or i am doing something wrong.


Thanks

Andrew.

d404...@googlemail.com

unread,
Feb 9, 2016, 4:03:23 AM2/9/16
to kurento, d404...@googlemail.com
Just incase anybody else gets stuck and there is nobody out there to help you out.

I needed to run a room server, so i used the kurento room server demo and that did the trick.

So you have the Media server running and then you have another process for the room server.

Renjith Rajendran

unread,
May 27, 2016, 6:12:05 AM5/27/16
to kurento, d404...@googlemail.com
I am also facing the same issue. Did you get any workaround for this

I have Kurento Media server running, but i am having trouble joining a room for an ios Client. I am using the KurentoToolbox pod in my project and it appears to be connecting properly as i get a callback to the delegate saying connected and in the kurento server logs i can see "Client connected from " so thats fine.
When i go to join a room or in that instance do any json rpc related calls, it seems to not be working correctly.
I have the server setup so that it connects to the json rpc client via this url https://serveraddress:8888/kurento and as mentioned, i am able to establish some form of connection, but when i then perform the join room method:

"Message: >{"jsonrpc":"2.0","method":"joinRoom","id":0,"params":{"user":"Polus","room":"Polus"}}"

Then it responds with:

"Response: >{"error":{"code":-32601,"message":"Method not found."},"id":0,"jsonrpc":"2.0"}"


Can anybody help me out? for joining a room does the json rpc url have to be different? i read somewhere it should be https://serveraddress:8888/room but that doesn't work either.




Thanks

Renjith

Andrew Reed

unread,
May 27, 2016, 6:19:13 AM5/27/16
to Renjith Rajendran, kurento
So you fell into the same trap i did.

You need two instances, 1 - KMS 2 - Room server.
Basically running the kurento media server is not enough on its own(unless you do 1-1 and manage it all yourself). 

What you need to run is the room server instance too(that will create an api /room which takes the jsonrpc requests).
And run the Kurento Room Server 

I hope that helps.

Renjith Rajendran

unread,
May 27, 2016, 6:42:14 AM5/27/16
to Andrew Reed, kurento
Hi Andrew ,

Thank you for the reply

I have installed the kurento- room  also in the server and running in  https://kivi.fibiweb.com:8443/

and media server running in  http://kivi.fibiweb.com:8888/kurento

and i am running kurentotoolbox in iOS 


in NBMRoomMainViewController

static NSString *defaultWsRoom = @"ws://kivi.fibiweb.com:8888/kurento";

static  NSString* const kRoomURLString = @"RoomServerURL";


I have also put url  https://kivi.fibiweb.com:8443/ in kRoomURLString


still i am getting

 did receive message: {

    error =     {

        code = "-32601";

        message = "Method not found.";

    };

    id = 0;

    jsonrpc = "2.0";

}




Thanks & Regards

Renjith Rajendran

Polus Software Pvt. Ltd.

1A ,Leela Infopark |Technopark Campus|Trivandrum 695 581

ren...@polussoftware.com | www.polussoftware.com



Andrew Reed

unread,
May 27, 2016, 6:51:53 AM5/27/16
to Renjith Rajendran, kurento
Try changing the room url to be 
https://kivi.fibiweb.com:8443/room

That hopefully should work.

Basically you are using the room server to handle the peers and then feeds the actual video and audio via the KMS.

Renjith Rajendran

unread,
May 27, 2016, 6:54:00 AM5/27/16
to Andrew Reed, kurento
Hi , 
I have tried that too, but still get the error

Thanks & Regards

Renjith Rajendran

Polus Software Pvt. Ltd.

1A ,Leela Infopark |Technopark Campus|Trivandrum 695 581

ren...@polussoftware.com | www.polussoftware.com




Andrew Reed

unread,
May 27, 2016, 7:06:30 AM5/27/16
to Renjith Rajendran, kurento
I haven’t really got the time to debug it. 

Are you sure that port is open for access? 

Renjith Rajendran

unread,
May 27, 2016, 7:13:31 AM5/27/16
to Andrew Reed, kurento
it is open and accessible

https://kivi.fibiweb.com:8443 - This is getting in browser

&


Thanks & Regards

Renjith Rajendran

Polus Software Pvt. Ltd.

1A ,Leela Infopark |Technopark Campus|Trivandrum 695 581

ren...@polussoftware.com | www.polussoftware.com




Andrew Reed

unread,
May 27, 2016, 7:15:40 AM5/27/16
to Renjith Rajendran, kurento
Ah, just looked at some old code i had:


You need to run it either on WS or WSS for the room server.

Renjith Rajendran

unread,
May 27, 2016, 7:42:03 AM5/27/16
to Andrew Reed, kurento
Hi, 

Still stuck.. No idea what to do

Thanks & Regards

Renjith Rajendran

Polus Software Pvt. Ltd.

1A ,Leela Infopark |Technopark Campus|Trivandrum 695 581

ren...@polussoftware.com | www.polussoftware.com




Ivan Gracia

unread,
May 27, 2016, 8:29:47 AM5/27/16
to Kurento Public, Andrew Reed
I think defaultWsRoom should be wss://kivi.fibiweb.com:8443/room. That's the WS connection exposed by your room server. The connections are

Client ---------- wss://room-server-ip:8443/room ----> Room Server -------- ws://kms-ip:8888/kurento -----> KMS

That should clarify what's connecting where (as far as signalling goes), I hope.

Ivan Gracia



--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages