Rectification : There is NO BUG on connection to room. I made a mistake (used secure_Hash as Get parameter rather than secureHash in the URL connection).
Remains the problem that I cannot activate recording. I apologize for my previous message, reporting a ‘bug’ that doesn’t exit. Jacob Le 3 mai 2015 à 07:54, Jacob Ouanounou <[email protected]> a écrit : > Hello Yadav > > Thank you very much. Meanwhile I have succeeded to do it using SOAP (based > upon PHP/nusoap). It seems finally easier and clean using PHP nusoap library. > > You can find below my code. > > BUT : The program has worked perfectly once or twice, and now I get something > bizarre, that looks like a bug on openmeetings side : > When I use the secure Hash code that I get, it opens an openmeetings screen > with the blue circle animation (Loading), then the blue line cursor > animation, and the red message 'Loading …’ on the top right side (which means > : openmeetings server is now in full control of my screen) then an empty > screen that remains empty : nothing except the clear grey backround color of > openmeetings rooms. > > One additional important remark : > In this page : > https://code.google.com/p/openmeetings/wiki/DirectLoginSoapGeneralFlow it is > stated that the URL format for using the secure Hash is : > $ServerURL/?secureHash=ab23-anysecureHashCode > instead of previous one : > $ServerURL/swf?secureHash=ab23-anysecureHashCode > But the first format doesn’t work, and goes to the Login page. The second is > the one I use, but it doen’t reach the room, it ends, as I have said > previously, with a blank screen (after loading message and animations). > I don’t rememeber which of the formats I have used when it has worked (maybe > none of those …) but now, none of the formats leads me to see the room > display. > > > Another possible bug : in the rooms (when I enter using the OM interface > login and menus), I don’t have access to the menu option that allows to > record the conference, whereas I have checked all the parameters and the > recording is allowed. > > > My program is below > Best regards > Jacob > > Below is my program : > <?php > require('nusoap/lib/nusoap.php'); > > > function startSoapAndLogin($url,$username,$userpass) > { > /* > $url : 'http://192.168.1.54:5080/openmeetings/' > $username > $userpass > > retourne: > [ > status -2 : Fault ; > -1: Error ; > 1 : Succès; > $client : un objet SOAP Client > $SID Session ID > ] > */ > $url1=$url.'services/UserService?wsdl'; > $client = new nusoap_client($url1,"wsdl"); > > $error = $client->getError(); > if ($error) > { > return (array(-1,$client,'')); > } > > $result = $client->call("getSession"); > > if ($client->fault) > { > return(array(-2,$client,'')); > } > else > { > $error = $client->getError(); > if ($error) > { > return(array(-1,$client,'')); > } > else > { > $client->session_id = $result["return"]["session_id"]; > $SID=$result["return"]["session_id"]; > > $params = array('SID' => $SID,'username' => $username,'userpass' > => $userpass); > > $result = $client->call('loginUser',$params); > if ($client->fault) > { > return(array(-2,$client,$SID)); > } > else > { > $err = $client->getError(); > if ($err) > { > return(array(-1,$client,$SID)); > } > else > { > return(array(1,$client,$SID)); > } > } > } > } > } > > > > > function roomHash($client,$SID,$userparams) > { > > > $result_Hash=$client->call('setUserObjectAndGenerateRoomHash',$userparams); > $Hash=$result_Hash["return"]; > return($Hash); > } > > > $resArray=startSoapAndLogin('http://192.168.1.54:5080/openmeetings/','JJOO','pxw123'); > if ($resArray[0]==1) > { > $client=$resArray[1]; > $SID=$resArray[2]; > $userparams=array('SID' => > $SID,'username'=>'Jacob','firstname'=>'J.','lastname'=>'O', > > 'email','[email protected]','externalUserId'=>'abc','externalUserType'=>’abc', > 'room_id'=>2, 'becomeModeratorAsInt'=>0,'showAudioVideoTestAsInt'=>1); > $Hash=roomHash($client,$SID,$userparams); > echo "<p>Hash = ".$Hash."<p>"; > echo ("<a > href='http://192.168.1.54:5080/openmeetings/swf?secure_Hash=".$Hash."' > target='_blank'>Entrer dans la salle</a>"); > } > else > { > if ($resArray[0]==-2) echo '<h2>Fault</h2>'; > if ($resArray[0]==-1) echo '<h2>Error</h2>'; > } > > > Le 2 mai 2015 à 06:37, Abhishek Yadav <[email protected]> a > écrit : > >> Hello Jacob, >> >> I have created one library in php. >> I have created functions for most of the things because i am using it in one >> of the project. >> You can check it out. >> >> I am using through CURL in php. >> >> Steps to use (Lets us say , Login user ) : >> ------------------------------------------------------- >> >> $omobj = new Openmeeting($db_vHost_v, $db_vUserName_v, $db_vPassword_v, >> $db_vDatabase_v, $vOpenmeetingUrl_v); // Creating library object >> $sid_response = $omobj->omCreateSession(); // Creating openmeeting session >> $SID = $sid_response[1][1][0]; >> $res = $omobj->omLoginUser($SID, >> $this->config->item('OPEN_MEETINGS_ADMIN_USERNAME'), >> $this->config->item('OPEN_MEETINGS_ADMIN_PASSWORD')); // Login User >> >> Hope this will help you, Let me know if anything else needed. >> >> >> >> >> >> Regards, >> Abhishek Yadav >> >> >> >> On Fri, May 1, 2015 at 6:10 PM, Jacob Ouanounou <[email protected]> >> wrote: >> Hello >> >> Does someone have an idea of what I should do to make it work ? >> >> I am new in SOAP, I have written this SIMPLE PROGRAM in PHP to get a >> session-ID , and I get the fault below. >> >> Thank you very much >> >> >> >> <?php >> require('nusoap/lib/nusoap.php'); >> >> $client = new >> nusoap_client("http://192.168.1.54:5080/openmeetings/services/UserService/"); >> >> $error = $client->getError(); >> if ($error) { >> echo "<h2>Constructor error</h2><pre>" . $error . "</pre>"; >> } >> >> $result = $client->call("getSession"); >> >> if ($client->fault) { >> echo "<h2>Fault</h2><pre>"; >> print_r($result); >> echo "</pre>"; >> } >> else { >> $error = $client->getError(); >> if ($error) { >> echo "<h2>Error</h2><pre>" . $error . "</pre>"; >> } >> else { >> echo "<h2>Books</h2><pre>"; >> echo $result; >> echo "</pre>"; >> } >> } >> >> and I get this FAULT : >> Fault >> >> Array >> ( >> [faultcode] => soapenv:Server >> [faultstring] => namespace mismatch require >> http://services.axis.openmeetings.apache.org found http://tempuri.org >> [detail] => >> ) >> >> >> <Openmeeting.php> >
