Web Conference E-Mail

Status
Not open for further replies.

Amphibian

Joined
Sep 8, 2009
Messages
1,128
Reaction score
1
Hey Team,

After setting up a conference within the "Webconf" tab and doing the save the system sends a email to all those assigned to attend the web conf. The problem is that within that email it displays the following:

"You have been invited to a conference in the Elastix Server at . To enter this conference, please follow the following link: Enter Conference and enter your preferred nick (or leave the default one) and your generated password."

The words "Enter Conference" is a link, this link is directing the people to the wrong url. Looking at the code I see where the following "$sDominioWeb = `hostname`;" is the problem. Using "hostname" you end up with your hostname/domain name like "pbx.yoursorminepbx.com". The next line under it shows "$sDominioWeb = trim($sDominioWeb);", if I remember correctly does that not trim the "pbx." off the domainname?

Looking at the code located at "/var/www/html/modules/conferenceroom_list/libs/paloSantoCreateConference.class.php" one can see the following around line 515:

$sDominioWeb = `hostname`; // TODO: mejorar recoger dominio web.
$sDominioWeb = trim($sDominioWeb);
$sDominioCorreo = $sDominioWeb;
$regs = NULL;
if (ereg('^www\.(.*)$', $sDominioCorreo, $regs)) $sDominioCorreo = $regs[1];

I tried to change the "hostname" to "yoursminepbx.com" and it causes error codes. Can smeone reccomend to me what the proper coding would be to get this so that it sends the proper url? Otherwise I don't see the purpose of using the web conference with email delivery if the recip can't get to the right url location...... This code should be changed so that one could just manually enter the url, if so wanted, where the words "hostname" are now.

Thank you,
amphibian
 
Any Suggestion, anyone????
 
Solved.....

I believe I have made it perform like it should.


Thanks,

amphibian
 
How to correct the issue with Web Conference sending the wrong URL link within a email, as it worked for me. Others may want to test and see if it works for them. For me, there's not much use in using the Web Conference GUI to setup a new web conference if it sends the wrong URL link to the users invited to the conference so to save time for updates and make it usable for now the following changes can be made:

On your PBX, ssh into it and use your favorite text editor and make the following changes to the following file located under:

/var/www/html/modules/conferenceroom_list/libs/paloSantoCreateConference.class.php

MAKE A BACKUP OF THIS FILE BEFORE YOU CHANGE IT.

Open this file, look around line 515 and you will see: "$sDominioWeb = `hostname`; // TODO: mejorar recoger dominio web." This is where it pulls the server name of your server. The problem is that it pulls the full server name like "pbx.myserver.com", that won't work for people wanting to click on your email embeded link for going to the web page to sign in. That's ok, we don't want to change this line, instead look further down toline 585 and find this line:

foreach ($recordset as $tuplaContacto) {
$sURL = "https://$sDominioWeb/conference.php?conference_id=$idConf&id_user=".$tuplaContacto['id_invitado'];

we want to make changes to line 586 where it says "$sURL = "https://$sDominioWeb/conference.php?conference_id=$idConf&id_user=".$tuplaContacto['id_invitado'];" right after the "https://" change "$sDominioWeb" to the proper URL you need (such as "myserver.com" or an actual IP address).

Should look like this when done: $sURL = "https://mywebserver.com/conference.php?conference_id=$idConf&id_user=".$tuplaContacto['id_invitado'];...... dont change anything else on that line or it won't wrok properly.....,

Now go up a few lines to line 576 and locate the following: $sFrom = "Conference Invitation <conference@$sDominioWeb>";
change the last part ($sDominioWeb) to your proper email receiver (like [email protected]).

Then look at line 580 and locate "Reply-To: noreply@$sDominioCorreo\r\n" ." and change $sDominioWebCorreo agian to your email receiver (should look like "Reply-To: [email protected]\r\n" ),

Then goto line 609, change the following line "<head><title>Invitation to Conference</title></head>" to read like:
<head><title>Invitation to Join A Web Conference</title></head> (just sounds and look a little more professional),

Then at line 612, change "<p>You have been invited to a conference in the Elastix Server at $sDominioWeb."
to the following <p>You have been invited to join a Web Conference hosted on our Elastix Server at Bob's PBX Services (or what ever you call your service),

Then gotot line 621 and locate "<p><i>Message sent by $sDominioWeb conference invitation process.</i></p>" and change that to refelct your server info like: "<p><i>Message sent by Bob's PBX Services Web Conference invitation process.</i></p>" (or what ever you call your services).

That's it, save it then upload it to replace the original located on the Elastix server, then goto System Tab on PBX GUI and select restart "Telephony Service", then select restart "Web Services" and you should then be good to go.

These are the changes I made and now when I do a Web Conference it sends the right info within the email.

Hope this helps others,

amphibian
 
Status
Not open for further replies.