Introduction

Welcome to Teleweb Docs!

This documentation is designed for Teleweb users and developers. For user tutorials, scroll to tutorials.

If you are a developer, the docs will help you manually install and successfully get Teleweb Light v1 working on your own server.

Following all the instructions as mentionned in this documentation will get you up and running in no time.

Downloads

Get started with Teleweb Light by downloading the application files online. Download from your favorite repository.

Download Teleweb Light v1 On GitHub

Download Teleweb Light v1 On SourceForge

System Requirements

Teleweb was developped and mainly tested in a Windows environment. However, it may be used in any environment that can run following technologies :

PHP 5.6 or higher

Apache 2.0 or higher

Mysqli 5.0 or higher

Browser Requirements

All the magic of Teleweb happens in your browser. Therefore it is really important to use the proper browser to benefit from all the software advantages. Teleweb was mainly tested and built for Mozilla Firefox 3 and higher. The software was also extensively tested in Chrome 4.

Although it is recommended that you install Mozilla Firefox or Chrome on all computers intented to use Teleweb for optimal performance, you may test and use the software in all other major browsers as well.

Dependencies

All dependencies necessited to successfully run Teleweb are already installed and ready to use. Everything that is needed is built-in the application.

Twilio Account

Teleweb call center functionalities were built utilizing Twilio library. In order to be able to use the call center functionalities, you must acquire a free Twilio Account and purchase a number with voice and sms capabilities.

1. Get a free Twilio account here : Sign up on Twilio

2. Purchase a Twilio number with voice and sms capabilities.

3. Find your Twilio Account SID and Primary Auth Token.

4. Create a TwiML APP and point the VOICE REQUEST URL to

https://EXAMPLEmytelewebsite.com/view/voice.php
Point the MESSAGING REQUEST URL to
https://EXAMPLEmytelewebsite.com/view/sms.php
Click create and locate your TwiML APP SID.

5. In the Teleweb application, locate config.php. Navigate to TWILIO ACCOUNT PARAMETERS and fill up all twilio fields with your twilio credentials.

/*
 * 
 * 
 * 
 ******************************
 * 
 * 
 * TWILIO ACCOUNT PARAMETERS
 * 
 * To be able to deploy this app online successfully
 * You need a twilio account
 * Sign up and get a twilio number for free
 * Visit Twilio : http://twilio.com/
 *
 * 
 * 
 ******************************/
/*
 * 
 * twilio account sid
 * 
 * 
 * 
 */
$TWILIO_ACCOUNT_SID = '';
/*
 * 
 * twilio account token
 * 
 * 
 * 
 */
$TWILIO_AUTH_TOKEN = '';
/*
 * 
 * twilio twiml app sid
 * 
 * 
 * 
 */
$TWILIO_TWIML_APP_SID = '';
/*
 * 
 * twilio workspace sid
 * 
 * Use this if you intend on using the Task Router
 * Otherwise leave it as is
 * 
 */
//$TWILIO_WORKSPACE_SID= '';
/*
 * 
 * twilio caller id
 * 
 * Your twilio caller id is the phone number you have purchased
 * The proper syntax is +16667778888
 * You must add the + and your area code
 * 
 */
$TWILIO_CALLER_ID = '';
                         

Database Configuration

1. Create a new database on your server.

2. In the Teleweb application, locate teleweb.sql inside the download folder.

3. Import the teleweb.sql in your MySQL database.

4. In the Teleweb application, locate config.php. Navigate to DATABASE PARAMETERS and fill up all database fields with your database credentials.

/*
 * 
 * 
 * 
 ******************************
 * 
 * 
 * DATABASE PARAMETERS
 * 
 * 
 * 
 * 
 ******************************
 */
if($appstatus==0){
/*
 * 
 * database parameters
 * server name
 * development
 * 
 * 
 * 
 */
$s345='';
}else{
/*
 * 
 * database parameters
 * server name
 * production
 * 
 * 
 * 
 */    
$s345='';    
}
/*
 * 
 * database 
 * username
 * 
 * 
 * 
 */
if($appstatus==0){
/*
 * 
 * database 
 * username
 * development
 * 
 * 
 */    
$u345 = "";
}else{
/*
 * 
 * database 
 * username
 * production
 * 
 * 
 */      
$u345 = "";    
}
/*
 * 
 * database 
 * password
 * 
 * 
 * 
 */
if($appstatus==0){
/*
 * 
 * database 
 * password
 * development
 * 
 * 
 */    
$p345 = "";
}else{
/*
 * 
 * database 
 * password
 * production
 * 
 * 
 */    
$p345 = "";   
}
/*
 * 
 * database 
 * database name
 * 
 * 
 * 
 */
if($appstatus==0){
/*
 * 
 * database 
 * database name
 * development
 * 
 * 
 */    
$d345 = "";
}else{
/*
 * 
 * database 
 * database name
 * production
 * 
 * 
 */      
$d345 = "";    
}
                            

Php Mailer Configuration

Teleweb allows its users to email prospects utilizing the PHP Mailer Library.

1. In the Teleweb app, locate config.php

2. Navigate to PHP MAILER PARAMETERS and fill up all the fields with your mail credentials.

/*
 * 
 * 
 * 
 ******************************
 * 
 * 
 * PHP MAILER PARAMETERS
 * 
 * For all troubleshooting options
 * And all other options
 * Visit : https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
 *
 * 
 * 
 ******************************/
/*
 * 
 * php mailer parameters
 * hostname
 * 
 * 
 */
if($appstatus==0){
/*
 * 
 * php mailer parameters
 * hostname
 * development
 * test or send using gmail
 */    
$smtphost = 'smtp.gmail.com';
}else{
/*
 * 
 * php mailer parameters
 * hostname
 * production
 * send using professional email
 * find your host provider smtp host name
 * example : send.one.com
 * 
 */       
$smtphost = '';   
}
/*
 * 
 * php mailer parameters
 * encryption
 * tls
 * leave that uncommented if using tls
 */
$smtpencryption = 'tls';
/*
 * 
 * php mailer parameters
 * smtp_username
 * smtp_email
 * 
 * 
 */
if($appstatus==0){
/*
 * 
 * php mailer parameters
 * smtp_username
 * smtp_email
 * development
 * This the email you use to send email for testing 
 * OR can use same one for production
 * Example : myemail@gmail.com
 * 
 */    
$smtpusername = '';
}else
 if($appstatus==0){
/*
 * 
 * php mailer parameters
 * smtp_username
 * smtp_email
 * production
 * eg : info@mycompany.com
 */       
$smtpusername = '';    
}
/*
 * 
 * php mailer parameters
 * password
 * your email password for testing
 * 
 */
if($appstatus==0){
/*
 * 
 * php mailer parameters
 * password
 * development
 * 
 * 
 * 
 */
$smtpPassword = '';
}else{
/*
 * 
 * php mailer parameters
 * password
 * production
 * your email password when live
 */
$smtpPassword = '';    
}
/*
 * 
 * php mailer parameters
 * port 587
 * 
 * 
 */
$smtpPort=587;
/*
 * 
 * php mailer parameters
 * port 465
 * If need this port uncomment
 * 
 */
//$smtpPort=465;
/*
 * 
 * php mailer parameters
 * port status
 * set to 1 to open
 * set to 0 to close
 * 
 */
$smtport = 1;
/*
 * 
 * php mailer parameters
 * smtp_email_from
 * 
 * 
 */
if($appstatus==0){
/*
 * 
 * php mailer parameters
 * smtp_email_from
 * development
 * This is the email the receiver will see
 * eg info@mycompany.com
 * 
 */
$smtpEmailFrom = '';
}else{
/*
 * 
 * php mailer parameters
 * smtp_email_from
 * production
 * 
 */
$smtpEmailFrom = '';    
}
/*
 * 
 * php mailer parameters
 * smtp_name_from
 * 
 * 
 */
if($appstatus==0){
/*
 * 
 * php mailer parameters
 * smtp_name_from
 * development
 * This is the name that will appear on headline 
 * eg John From Teleweb
 * 
 */
$smtpNameFrom = '';
}else{
/*
 * 
 * php mailer parameters
 * smtp_name_from
 * production
 */
 $smtpNameFrom = '';   
}
/*
 * 
 * php mailer parameters
 * debug mode
 * 0 = no debug
 * 2 = error reporting
 * 
 */
$smtpDebug = 0;
/*
 * 
 * php mailer parameters
 * authentication 
 * 
 * 
 */
$smtpAuth = true;
/*
 * 
 * php mailer parameters
 * default mail signature for every mail sent
 * Use this as a default mail signature 
 * to be included in all your mails
 * eg Regards, The Teleweb Team
 */
$mailsignature = '';
                        

Controller & Session Requests

For all Teleweb frontend requests, locate controller.php

For all Teleweb session requests, locate session.php

Starting Teleweb

Bravo! You made it to the bottom of the API. If you have followed all instructions properly, you are ready to get this app going!

In the Teleweb application, locate index.php. Navigate in between the head tags and comment or delete following line

window.location.replace("install.php");

License

/*************************************************************************
 * 
 * TELEWEB 
 * CURRENT VERSION : 1.0 \\ teleweb ultra light
 * 
 * LICENSE : GNU GENERAL PUBLIC LICENSE
 * Read More On GNU GENERAL PUBLIC LICENSE at https://www.gnu.org/licenses/gpl-3.0.en.html
 *
 * Copyright (C) [2019] Teleweb Systems initiative of Webb24h Incorporated
 * All Rights Reserved.
 **************************************************************************/