cookyshi / libjingle

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

ljoin can not join the muc #291

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. i compile libjingle-read-only from svn source code.
2. use command "./call -d --videoinput=testdata/video.rtpdump 
--voiceinput=testdata/voice.rtpdump --videooutput=vout.rtpdump 
--voiceoutput=aout.rtpdump" to sign in.
3. after login , ljoin mymuctest. i got error. 

Failed to join 
"muvc-private-chat-9999397f-7a3d-35fe-ba0b-b810a975343b@groupchat.google.com", 
code=405

Can anyone help me?

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.
here is command line:
ljoin mymuctest 
SEND >>>>>>>>>>>>>>>> : Tue Jan 31 17:14:11 2012
   <iq type="set" to="lookup.groupchat.google.com" id="9">
     <query xmlns="jabber:iq:search">
       <room-name>
         mymuctest
       </room-name>
       <room-domain>
         gmail.com
       </room-domain>
     </query>
   </iq>
RECV <<<<<<<<<<<<<<<< : Tue Jan 31 17:14:12 2012
   <iq to="lvyiwen@gmail.com/callB4A3D2C4" from="lookup.groupchat.google.com" id="9" type="result">
     <query xmlns="jabber:iq:search">
       <item jid="muvc-private-chat-9999397f-7a3d-35fe-ba0b-b810a975343b@groupchat.google.com">
         <room-name>
           mymuctest
         </room-name>
         <room-domain>
           gmail.com
         </room-domain>
       </item>
     </query>
   </iq>
SEND >>>>>>>>>>>>>>>> : Tue Jan 31 17:14:12 2012
   <iq type="set" to="muvc-private-chat-9999397f-7a3d-35fe-ba0b-b810a975343b@groupchat.google.com" id="10">
     <query xmlns="http://jabber.org/protocol/muc#owner">
       <x xmlns="jabber:x:data" type="form">
         <field var="muc#roomconfig_roomname" type="text-single">
           <value>
             mymuctest@gmail.com
           </value>
         </field>
         <field var="muc#roomconfig_features" type="list-multi">
           <value>
             muc_enterprise
           </value>
         </field>
       </x>
     </query>
   </iq>
RECV <<<<<<<<<<<<<<<< : Tue Jan 31 17:14:12 2012
   <iq to="lvyiwen@gmail.com/callB4A3D2C4" from="muvc-private-chat-9999397f-7a3d-35fe-ba0b-b810a975343b@groupchat.google.com" id="10" type="result"/>
SEND >>>>>>>>>>>>>>>> : Tue Jan 31 17:14:12 2012
   <presence to="muvc-private-chat-9999397f-7a3d-35fe-ba0b-b810a975343b@groupchat.google.com/lvyiwen_callB4A3D2C4">
     <status/>
     <priority>
       0
     </priority>
     <c xmlns="http://jabber.org/protocol/caps" node="http://code.google.com/p/libjingle/call" ver="0.6" ext="voice-v1 pmuc-v1 video-v1 camera-v1"/>
     <x xmlns="jabber:x:delay" stamp="20120131T09:14:12"/>
   </presence>
RECV <<<<<<<<<<<<<<<< : Tue Jan 31 17:14:13 2012
   <presence to="lvyiwen@gmail.com/callB4A3D2C4" from="muvc-private-chat-9999397f-7a3d-35fe-ba0b-b810a975343b@groupchat.google.com/lvyiwen_callB4A3D2C4" type="error">
     <status/>
     <priority>
       0
     </priority>
     <c node="http://code.google.com/p/libjingle/call" ver="0.6" ext="voice-v1 pmuc-v1 video-v1 camera-v1" xmlns="http://jabber.org/protocol/caps"/>
     <x stamp="20120131T09:14:12" xmlns="jabber:x:delay"/>
     <x xmlns="vcard-temp:x:update">
       <photo>
         89d070117254f75d1f8fc50495e99dea196d5929
       </photo>
     </x>
     <error code="405" type="cancel">
       <not-allowed xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
     </error>
   </presence>
RECV <<<<<<<<<<<<<<<< : Tue Jan 31 17:14:13 2012
Failed to join 
"muvc-private-chat-9999397f-7a3d-35fe-ba0b-b810a975343b@groupchat.google.com", 
code=405
RECV <<<<<<<<<<<<<<<< : Tue Jan 31 17:14:13 2012

   <presence to="lvyiwen@gmail.com/callB4A3D2C4" from="muvc-private-chat-9999397f-7a3d-35fe-ba0b-b810a975343b@groupchat.google.com/lvyiwen_callB4A3D2C4" type="error">
     <status/>
     <priority>
       0
     </priority>
     <c node="http://code.google.com/p/libjingle/call" ver="0.6" ext="voice-v1 pmuc-v1 video-v1 camera-v1" xmlns="http://jabber.org/protocol/caps"/>
     <x stamp="20120131T09:14:12" xmlns="jabber:x:delay"/>
     <x xmlns="vcard-temp:x:update">
       <photo>
         89d070117254f75d1f8fc50495e99dea196d5929
       </photo>
     </x>
     <error code="405" type="cancel">
       <not-allowed xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
     </error>
   </presence>

Original issue reported on code.google.com by lvyi...@gmail.com on 31 Jan 2012 at 9:17

GoogleCodeExporter commented 9 years ago
I am wondering if google talk supports MUC.
in call.exe ljoin muc_room does lookup muc rooms.
if muc rooms exits you join then.
if muc rooms doesn't exist, it create new room and you join finally.
But you failed in the step of configuring room.
After you finish configuration of room, you can join then.

You can test it in you test com or other xmpp server...

Original comment by adam1988...@gmail.com on 1 Feb 2012 at 2:55

GoogleCodeExporter commented 9 years ago
how can i test other xmpp server in libjingle?

Original comment by lvyi...@gmail.com on 1 Feb 2012 at 3:08

GoogleCodeExporter commented 9 years ago
if you are trying to do with other xmpp server you should change some code...
like "gmail.google.com" to "other.domain.com", "talk.google.com" to 
"talk.other.domain.com".
Because call example has hard code like i mentioned.

I'd like to give you an advise that you'd better contact with libjingle 
developer like pthatcher, Jun.
It might be a little bit long to get an answer from them,
But i think that is the fastest way to solve your problem.

Original comment by adam1988...@gmail.com on 1 Feb 2012 at 3:47

GoogleCodeExporter commented 9 years ago
Tested with libjingle 0.6.10. the "ljoin" works just fine.

Original comment by jun...@google.com on 9 Feb 2012 at 11:37

GoogleCodeExporter commented 9 years ago

 Hello there,

i have a query regarding to implementation of libjingle .
in libjingle the XMPP server address is hard coded and it is google server.
i want to use my XMPP server which is installed in my system,so for using that, 
what change we need to make in source code. 

Original comment by sanjeev1...@gmail.com on 2 May 2012 at 6:42