Do you have any errors in *openmeetings.log*?

You have attached *access* log (not red5.log), which is very much useless
...

I would appreciate if you can show only part of the log with error
not the whole file
I don't have much time right now ....

On Thu, Apr 12, 2018 at 11:20 AM, Ramón Zárate Moedano <hor...@gmail.com>
wrote:

> Yes .. i am using it.
> This is my code. (its pretty the same as moodle plugin)
>
> protected function render_openmeetings() {
> ////// Loading OM Helper
> require_once '/helpers/openmeetings.php'; // This file has getOmConfig()
> and getUser()
> ////// Loading OM Gateway
> require_once '/om_gateway/OmGateway.php';
>
> $becomemoderator = false;
> $gateway = new OmGateway(getOmConfig());
> if ($gateway->login()) {
> $allowRecording = true;
> $becomemoderator = true;
> $room_id = 22;
> $hash = $gateway->getSecureHash(getUser() , array("roomId" => $room_id,
> "moderator" => $becomemoderator, "showAudioVideoTest" => $allowRecording));
> $om_laguage_id = 1;
> if ($hash != "") {
> $url = $gateway->getUrl() . "/hash?&secure=" . $hash . "&language=" .
> $om_laguage_id;
> return $url;
> } else {
>
> echo 'Could not login User to OpenMeetings, check your OpenMeetings Module
> Configuration';
> return;
> }
> }
> }
>
>
> Red5 log file is attached.
>
>
>
> 2018-04-11 22:07 GMT-05:00 Maxim Solodovnik <solomax...@gmail.com>:
>
>> Are you also using https://github.com/openmeetings/openmeetings-api-plugi
>> n/blob/master/src/main/scripts/OmGateway.php ?
>> Do you have any errors in openmeeting.log?
>>
>> On Thu, Apr 12, 2018 at 12:10 AM, Ramón Zárate Moedano <hor...@gmail.com>
>> wrote:
>>
>>> About calling login twice it was my mistake trying to log out i print
>>> all the steps and variables i am using. And thats why. Now is corrected.
>>>
>>> About hash. I am doing it.
>>>
>>> This is the process.
>>>
>>> getOmConfig: {"protocol":"http","host":"XXX
>>> .XXX.XXX.XXX","port":"5080","context":"openmeetings","user":
>>> "usersoap","pass":"pass","module":"external"}
>>> -------------------------
>>> OmGateway function login()
>>> url: http://XXX.XXX.XXX.XXX:5080/openmeetings/services/user/login
>>> Method: GET
>>> sid:
>>> Params: {"user":"usersoap","pass":"pass"}
>>> headers:
>>> wraperName: serviceResult
>>> response: {"message":"9e078944-7c43-439e-8ed0-d36ff316d885","type":"SU
>>> CCESS"}
>>> -------------------------
>>>
>>> -------------------------
>>> get User: {"login":"rzarate","firstname":"Super
>>> User","lastname":"lastname","email":"ad...@localhost.com","e
>>> xternalId":"425","externalType":"external"}
>>> options: {"roomId":"22","moderator":true,"showAudioVideoTest":true}
>>> url: http://XXX.XXX.XXX.XXX:5080/openmeetings/services/user/hash
>>> Method: POST
>>> sid: 9e078944-7c43-439e-8ed0-d36ff316d885
>>> Params: "user=%7B%22login%22%3A%22rzarate%22%2C%22firstname%22%3A%22
>>> Super+User%22%2C%22lastname%22%3A%22lastname%22%2C%22email%
>>> 22%3A%22admin%40piensocial.com%22%2C%22externalId%22%3A%
>>> 22425%22%2C%22externalType%22%3A%22joomla%22%7D&options=%7B%
>>> 22roomId%22%3A%2222%22%2C%22moderator%22%3Atrue%2C%
>>> 22showAudioVideoTest%22%3Atrue%7D"
>>> headers:
>>> wraperName: serviceResult
>>>
>>> gateway->getSecureHash: 779bad90-fbc2-4ee6-9348-3afd9d2c49d3
>>> -------------------------
>>>
>>> Front end url
>>> url: http://XXX.XXX.XXX.XXX:5080/openmeetings/hash?&secure=779bad
>>> 90-fbc2-4ee6-9348-3afd9d2c49d3&language=1
>>> -------------------------
>>>
>>> Im sending sid using call function (OmRestService.php)
>>>
>>> And never loads ....
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>


-- 
WBR
Maxim aka solomax

Reply via email to