setUserObjectAndGenerateRoomHash is -26.

-26 is of course an error code and no hash that you could append to
the url (you can get the errormessage localized via the SOAP-API in
the UserService::getErrorByCode(...) )

However -26 simply means that the SID that you have been using to
invoke setUserObjectAndGenerateRoomHash
was not authentificated.

Let my summarize the sequence again:

getSession => returns the SID
use the SID in loginUser to auth the SID
use the SID in setUserObjectAndGenerateRoomHash to generate a HASH to
enter the conference room
append the HASH to the URL and go directly into the conference room.

Sebastian

2011/10/24 Mike Warner <[email protected]>:
> Hi Sebastian,
>
> there are entries for UserService (/opt/red5/log/openmeetings.log),
> but no entries from RoomService. Only  0.0.0.0_access.2011-10-24.log
> has RoomService entries, but they're just:
>
> xxx.xxx.xxx.xxx - - [24/Oct/2011:12:23:53 -0400] "GET /openmeetings/
> services/RoomService?wsdl HTTP/1.1" 200 141754
> xxx.xxx.xxx.xxx - - [24/Oct/2011:12:23:53 -0400] "POST /openmeetings/
> services/RoomService.RoomServiceHttpSoap11Endpoint/ HTTP/1.0" 200 371
>
> The sequence I'm using to create a moderated room is:
>
> 1) loginUser
> 2) addRoomWithModeration
> 3) setUserObjectAndGenerateRoomHash
>
> The room is created fine and the moderated box is checked when I look
> in the OpenMeetings UI, but that's it.  The return from step
> setUserObjectAndGenerateRoomHash is -26.
>
> No errors in the red5 error.log
>
> I do get "operation getSession not present" when I list rooms now,
> though.
>
> Thanks,
> Mike
>
>
> On Oct 21, 2:18 am, "[email protected]" <[email protected]>
> wrote:
>> red5.log / openmeetings.log has zero entries?
>>
>> What is the sequence of Methods that you are calling?
>>
>> Sebastian
>>
>> 2011/10/20 Mike Warner <[email protected]>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> > hmmm...there are no entries for roomService calls (any method) in any
>> > logs.  You'd think there would be since I can create and delete
>> > rooms.  Plenty of entries for UserService, though.  Is there  a
>> > logging switch that I need to set?
>>
>> > On Oct 20, 10:54 am, "[email protected]" <[email protected]>
>> > wrote:
>> > > Entries in soaplogin are stored permanetly, sessiondata is cleared
>> > > periodically (except the flag storepermanent is true).
>>
>> > > The entry in soaplogin is generated whenever you call the function
>> > > setUserObjectXYZ.
>> > > I guess you should have a look at your soap call or the log file.
>> > > Looks like the setUserObjectXYZ is never invoked.
>>
>> > > Sebastian
>>
>> > > 2011/10/20 Mike Warner <[email protected]>
>>
>> > > > thanks Sebastian.  The soaplogin table is always empty.  Should that
>> > > > moderator info be permanently stored in soaplogin or just whenever the
>> > > > room launch url is generated?
>>
>> > > > Thanks again,
>> > > > Mike
>>
>> > > > On Oct 20, 10:23 am, "[email protected]" <[email protected]>
>> > > > wrote:
>> > > > > Hi Mike,
>>
>> > > > > the method: "setUserObjectAndGenerateRoomHash"
>>
>> >http://code.google.com/p/openmeetings/source/browse/trunk/singlewebap...
>>
>> > > > > Creates an entry in the table "soaplogin". In this table there are a
>> > > > number
>> > > > > of columns:
>> > > > > `allow_same_url_multiple_times`, `*becomemoderator*`, `client_url`,
>> > > > > `created`, `hash`, `landing_zone`, `room_recording_id`, `room_id`,
>> > > > > `session_hash`, `showaudiovideotest`, `show_nick_name_dialog`
>>
>> > > > > in the column becomemoderator the info is stored if that hash will be
>> > a
>> > > > > moderator or not.
>>
>> > > > > There is a second table "sessiondata", that holds actually the
>> > > > user-sessions
>> > > > > of the users that are loggedin into OpenMeetings. Those tables are
>> > linked
>> > > > by
>> > > > > the session_id (hash).
>>
>> > > > > What happens if you loggin via SOAP is that you first request a new
>> > > > session
>> > > > > (new entry in sessiondata, this cannot be prevent as this is the
>> > default
>> > > > > behaviour whenever you connect) and then the user tries to auth
>> > itself
>> > > > with
>> > > > > the "secureHash" that is append to the URL. Using this hash the user
>> > will
>> > > > be
>> > > > > loaded from the soaplogin-table and gets the rights that have been
>> > set
>> > > > using
>> > > > > the SoapMethod beforehand and gets assigned to that session that was
>> > > > created
>> > > > > for him via SOAP.
>>
>> > > > > Sebastian
>>
>> > > > > 2011/10/20 Mike Warner <[email protected]>
>>
>> > > > > > replying to my own post to add more info to the subject.  Sorry
>> > that I
>> > > > > > made it so vague the first time.
>>
>> > > > > > On Oct 19, 5:00 pm, Mike Warner <[email protected]> wrote:
>> > > > > > > Hi,
>>
>> > > > > > > I'm working on integrating OpenMeetings into ATutor and am using
>> > > > > > > Greg's ATutor module (and Sebastian's Moodle mod) as a basis.
>> >  I've
>> > > > > > > fixed a few things and am working on creating moderated rooms.
>> >  Well,
>> > > > > > > I can create them, but I'm not sure whether the moderator info is
>> > > > > > > getting set by the SOAP call.  Does it get stored anywhere where
>> > I
>> > > > can
>> > > > > > > view it in the OpenMeetings UI or the db? (can't seem to find it,
>> > if
>> > > > > > > it is)  I get -26 returned by a call to
>> > > > > > > setUserObjectAndGenerateRoomHash whenever I try to set the
>> > moderator.
>> > > > > > > I've tried both with and without externalUserId and
>> > externalUserType.
>> > > > > > > I've also tried both true and false for becomeModeratorAsInt.
>>
>> > > > > > > The flow is:
>> > > > > > > add moderated room via addRoomWithModeration
>> > > > > > > add moderator to the room via setUserObjectAndGenerateRoomHash
>>
>> > > > > > > Params passed to setUserObjectAndGenerateRoomHash:
>>
>> > > > > > >    [SID] => 16d965646a5ce6c385b7befc9417f496
>> > > > > > >    [username] => [email protected]
>> > > > > > >    [firstname] => Bubba
>> > > > > > >    [lastname] => Franks
>> > > > > > >    [profilePictureUrl] =>
>> > > > > > >    [email] => [email protected]
>> > > > > > >    [externalUserId] => 3987
>> > > > > > >    [externalUserType] => atutor
>> > > > > > >    [room_id] => 102
>> > > > > > >    [becomeModeratorAsInt] => 1
>> > > > > > >    [showAudioVideoTestAsInt] => 1
>>
>> > > > > > > Am I missing a step between the two?
>>
>> > > > > > > Thanks,
>> > > > > > > Mike
>>
>> > > > > > --
>> > > > > > You received this message because you are subscribed to the Google
>> > > > Groups
>>
>> > > > > "OpenMeetings developers" group.> To post to this group, send email
>> > to
>> > > > [email protected].
>> > > > > > To unsubscribe from this group, send email to
>>
>> > > > > [email protected].> For more options,
>> > visit
>> > > > this group at
>>
>> > > > >http://groups.google.com/group/openmeetings-dev?hl=en.
>>
>> > > > > --
>> > > > > Sebastian
>> > > > Wagnerhttp://www.openmeetings.dehttp://www.webbase-design.dehttp://
>> > > >www.wagner-sebastian.com
>> > > > > [email protected]
>>
>> > > > --
>> > > > You received this message because you are subscribed to the Google
>> > Groups
>> > > > "OpenMeetings developers" group.
>> > > > To post to this group, send email to [email protected]
>> > .
>> > > > To unsubscribe from this group, send email to
>> > > > [email protected].
>> > > > For more options, visit this group at
>> > > >http://groups.google.com/group/openmeetings-dev?hl=en.
>>
>> > > --
>> > > Sebastian
>> > Wagnerhttp://www.openmeetings.dehttp://www.webbase-design.dehttp://
>> >www.wagner-sebastian.com
>> > > [email protected]
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups
>> > "OpenMeetings developers" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> >http://groups.google.com/group/openmeetings-dev?hl=en.
>>
>> --
>> Sebastian 
>> Wagnerhttp://www.openmeetings.dehttp://www.webbase-design.dehttp://www.wagner-sebastian.com
>> [email protected]
>
> --
> You received this message because you are subscribed to the Google Groups 
> "OpenMeetings developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/openmeetings-dev?hl=en.
>
>



-- 
Sebastian Wagner
http://www.openmeetings.de
http://www.webbase-design.de
http://www.wagner-sebastian.com
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en.

Reply via email to