Akshita-Negi / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

How MUC is supposed to work? #176

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have the last libjingle release (0.5.6) but I can't get the MUC features 
working...Can somebody write some examples (which commands I need to type) on 
how to do this? Can a Google Talk user join in a room created by the call 
example? How to send a mesage to the room? Is it possible to call/vcall to a 
room? In other words, what are the possibilities and how to use them? Thanks in 
advance.

Original issue reported on code.google.com by diego.cd...@gmail.com on 14 Jun 2011 at 6:36

GoogleCodeExporter commented 9 years ago
It's very similar to P2P, you can run the call sample program using file media 
engine, for example, call.exe -d 
--videoinput=..\..\..\session\phone\testdata\video.rtpdump 
--voiceinput=..\..\..\session\phone\testdata\voice.rtpdump 
--videooutput=vout.rtpdump --voiceoutput=aout.rtpdump
After you logon, you can run "ljoin" command with a meeting name, for example 
"mymeeting", which can be a new meeting or existing meeting.
After the client joined the meeting, you can run "vcall" command.

Original comment by jun...@google.com on 14 Jun 2011 at 7:05

GoogleCodeExporter commented 9 years ago
I tried this and got:

Available commands:

  roster              Prints the online friends from your roster.
  friend user         Request to add a user to your roster.
  call [jid] [bw]     Initiates a call to the user[/room] with the
                      given JID and with optional bandwidth.
  vcall [jid] [bw]    Initiates a video call to the user[/room] with
                      the given JID and with optional bandwidth.
  voicemail [jid]     Leave a voicemail for the user with the given JID.
  join [room_jid]     Joins a multi-user-chat with room JID.
  ljoin [room_name]   Joins a MUC by looking up JID from room name.
  invite user [room]  Invites a friend to a multi-user-chat.
  leave [room]        Leaves a multi-user-chat.
  getdevs             Prints the available media devices.
  quit                Quits the application.

ljoin mymuc
Joined 
"muvc-private-chat-99992eb2-990f-3a7f-aa09-2db1521801e1@groupchat.google.com"

Available commands:

  roster              Prints the online friends from your roster.
  friend user         Request to add a user to your roster.
  call [jid] [bw]     Initiates a call to the user[/room] with the
                      given JID and with optional bandwidth.
  vcall [jid] [bw]    Initiates a video call to the user[/room] with
                      the given JID and with optional bandwidth.
  voicemail [jid]     Leave a voicemail for the user with the given JID.
  join [room_jid]     Joins a multi-user-chat with room JID.
  ljoin [room_name]   Joins a MUC by looking up JID from room name.
  invite user [room]  Invites a friend to a multi-user-chat.
  leave [room]        Leaves a multi-user-chat.
  getdevs             Prints the available media devices.
  quit                Quits the application.

vcall 
muvc-private-chat-99992eb2-990f-3a7f-aa09-2db1521801e1@groupchat.google.com
Found room 
'muvc-private-chat-99992eb2-990f-3a7f-aa09-2db1521801e1@groupchat.google.com'
calling...
call destroyed

I can call to my Gmail plugin but not to the MUC room. How my Gmail user can 
enter in the MUC? How to send/receive text messsages? A video call to a MUC is 
a videoconference (all users in the MUC will receive the audio/video)?

Original comment by diego.cd...@gmail.com on 14 Jun 2011 at 8:28

GoogleCodeExporter commented 9 years ago
Oh, actually we made a minor change on the server side recently which requires 
the following codecs to be advertised. Please add the following lines to the 
"call_main.cc" file:
223 voice_codecs.push_back(
224 cricket::AudioCodec(0, "PCMU", 8000, 0, 1, 0));
225 voice_codecs.push_back(
226 cricket::AudioCodec(13, "CN", 8000, 0, 1, 0));
227 voice_codecs.push_back(
228 cricket::AudioCodec(105, "CN", 16000, 0, 1, 0));

This fix will be release in the next version (0.5.7)

Original comment by jun...@google.com on 14 Jun 2011 at 9:29

GoogleCodeExporter commented 9 years ago
No effects, the call is still being destroyed...But if I just enter in a room 
and make a vcall I will call to whom? How other users can join in the room? Is 
it possible to Gtalk users? I tried the "join" command in other call instance 
but I got error code 405.

Original comment by diego.cd...@gmail.com on 15 Jun 2011 at 12:57

GoogleCodeExporter commented 9 years ago
Please attach or email me the full xmpp stanza. I'll take a look. For MUC, 
after you joined a room, "vcall" will make you call into the room, not to 
anyone. This is different from P2P call. If you want to use "join", you need to 
specify the room-jid.

Original comment by jun...@google.com on 15 Jun 2011 at 1:11

GoogleCodeExporter commented 9 years ago
What you mean by call into the room? If I've just entered the room (I'm alone 
there) and make a call who will answer it? And I tried a join with the 
room-jid, but I get the error code 405. The logs from the 2 call instances are 
attached. In the first instance (log1) I used "ljoin" and "vcall". And in the 
second instance (log2) I tried to "join" in the MUC create by instance 1.

Original comment by diego.cd...@gmail.com on 15 Jun 2011 at 3:45

Attachments:

GoogleCodeExporter commented 9 years ago
Note: For security and/or privacy reason, I have deleted your log after 
reviewed it.
In the first case, the error code was 503, which indicates the "service is not 
available". In the second case, the error code was 405, which indicates the 
"action is not allowed" (assuming the room-jid you used was a valid/real 
room-jid).
I bet there was a temporary server side issue that has been fixed. I tried 
exactly the two cases with the same build (0.5.6). It works fine for me.
Please try again and make sure in the second case, the room-jid must be a real 
one, if you use "join" command, otherwise, you can just use "ljoin" to create a 
new one if the room doesn't exist.

Original comment by jun...@google.com on 15 Jun 2011 at 5:00

GoogleCodeExporter commented 9 years ago
BTW, this feature is not accessible by general Gmail account yet. 

Original comment by jun...@google.com on 15 Jun 2011 at 7:59

GoogleCodeExporter commented 9 years ago
i am trying to execute libjingle example by using openfire XMPP server 
installed in my local system. 
where i have to give xmpp server address and what changes is required in code. 
in code call_main.cc two address are written groupchat.google.com and 
talk.google.com ,what are these addresses , and by which address i have to 
replace these in code. please help me ..
thanks 

Original comment by sanjeev1...@gmail.com on 2 May 2012 at 10:01

GoogleCodeExporter commented 9 years ago
talk.google.com is the Google's XMPP server
groupchat.google.com is the server for MUC (that I think that still doesn't 
work)
To login with your own server you don't need any change on the code. Take a 
look at this http://code.google.com/p/libjingle/issues/detail?id=72 (last 
comment). I hope it helps.

Original comment by diego.cd...@gmail.com on 2 May 2012 at 12:53