Development platform to build voice

2011-01-07  来源:本站原创  分类:Mobile  人气:213 

Setting up the Updated Local VG Environment

This page will go over the steps of setting up a local Voice Genie Voice Environment for testing new / existing Voice Applications.

1. Download the Voice Genie Development Tools
2. Installing SJ Phone
3. Install MySQL and Setup the Database
4. Install VMWare and Configure Voice Genie Server
5. Install TomCat and Voice Applications
6. Firewall Settings
7. Running a test call
I. Download the Voice Genie Development Tools

1. In Windows Explorer, go to the follow location:

Z: \ Public \ Installations \ VGDevelopmentTools

On the share ad.adeptra.com

2. Download the entire VGDevlopmentTools directory to your local harddrive:

C: \ VGDevelopmentTools

* This will take a long time, there is a 6 gig file located in this folder.

3. Once download, continue to section III
II.Installing SJPhone

1. Goto C: \ VGDevelopmentTools, and execute the application:

SJphone-289a.exe

2. Follow the default installation steps. After installation, it should automatically launch and be ready to go.

3. Launch SJPhone, and in the main window where it says:

"Ready to call"

right click, and select 'Services' and make sure 'PC to PC Sip' is selected.

4. Also select Auto Accept Calls.

5. Test SJPhone by making an outbound call to another computer using its IP address.

6. Have another computer call your SJPhone.

7. If you have problems forming a connection, it is a firewall issue. Restart the computer, and go to Windows Firewall settings and allow SJPhone access.
III. Install MySQL

1. Unzip mysql-5.0.45-win32.zip and start the setup process.

2. Use all of the defaults throughout the setup, and during the last step, make sure "Setup database instance now" is checked.

3. This will launch the setup application for configuring the MySQL Instance.

4. Using the following:

i. Select Standard Configuration.

ii. Set the root password to 'root'

iii. Select 'include bin in environment variables.'

5. After setup is complete, launch a command window.

NOTE: If you get a failure, Open Control Panel, Windows Firewall, ExceptrionsTab, Add Program, and

add C: \ Program Files \ MySQL \ MySQL Server 5.0 \ bin \ mysql.exe

6. The database needs to be created:

mysql - uroot - proot (note: if this doesn't work, then: mysql-uroot-proot)

This will log you into MySQL.
create database pace1;

This will create a database instance that is required by the voice environment.

quit

Exit MySQL.

7. Next, we need to setup the database. First navigate to the location of the VGDevelopment Tools via command line:

cd C: \ VGDevelopmentTools

Now, to actually run the database setup:

mysql pace1-uroot-proot <pacingDb.sql

If this completes with no errors, the MySQL Database is setup and ready to go.
IV. Install VMWare and Configure Voice Genie Server

1. Goto C: \ VGDevelopmentTools, and execute the application:

VMware-player-1.0.3-34682.exe

2. Follow default setup.

3. Start up VMWare Player from the start menu.

4. You will be prompted with a folder window, navigate to C: \ VGDevelopmentTools \ VGLinux_v7_0_11 \, and select the file - rhel3.vmx

5. On the first launching of VMWare player, it will prompt you with an error for a UID, select 'Create new' and press 'Ok'.

6. When prompted with a window 'VMWare Web Check' press Cancel.

7. A linux start up screen will come up, and Voice Genie Linux will load.

8. In the VMWare window, select the dropdown menu titled 'Ethernet.'

i. Make sure 'Connected' is checked.

ii. Also select 'Host-only'.

9. If Host-only was not already selected in the previous step, login to the VMWare Linux using the username:

root

And the password:

root1

Then run the following command:

shutdown now-h

Next, restart VMWare as previous stated.

10. If you restarted, wait for VG Linux to boot up again, and log back in. If you did not, login using the username:

root

And the password:

root1

11. Switch to the following directory:

cd / usr / local / vg-scriptmanager / done

12. Now, return to windows and open a command prompt. Enter the following command:

ipconfig

13. Look for the VMWare, VMnet1 adapter:

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix.:

IP Address............: 192.168.49.1

Subnet Mask...........: 255.255.255.0

Default Gateway.........:

14. The third number in the IP Address will be the 'y'. In the example above, it is 49. Write down y.

15. Select 'x', x can be any number in the range of 5 to 250. Select an x and write it down.

16. Return to voice genie, and run the following command:

./I010network (No spaces - do 'ls' to see the names of the scripts)

This will launch a shell script prompting you for information.

17. Enter information for the following prompts:

Hostname: voiceserver

Domain Name: mydomain.com

IP Address: 192.168.yx (where y and x are the values selected above)

Net Mask (Subnet) 255.255.255.0

Gateway IP Address: 192.168.y.1

Name Server: 192.168.y.1

18. Enter the following command:

shutdown now-h

19. Restart VM Ware and minimize, this setup is done:
V. Install TomCat and Voice Applications

1. Start the installation for Tomcat by executing the application in the VGDevelopment Directoy:

apache-tomcat-5.5.25.exe

2. After installation completes, unzip the following two files to the webapps directory in the Tomcat folder:

In my case:: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ webapps \

The file to unzip are:

voiceapp.zip (This contains a baseline of sample voice genie applications)

DeviceRelaySimulator.zip (Simulates the injects of the voice payload)

3. Once the files are unzipped, open the configuration file in the following path:

C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ webapps \ voiceapp \ WEB-INF \ applicationContext.properties

4. Edit the configuration file changes all y's and x's in the IP Addresses to the values defined above:

nodeId = 81584

tcpAsyncResponseReceiver.hostName = 192.168.y.1
tcpAsyncResponseReceiver.port = 6001

ccxml.baseUrl = http://192.168.y.1:8080/voiceapp
ccxml.detectionAvailable = false
ccxml.sip.userAgentServer.address = 192.168.yx: 5068
ccxml.sip.userAgentClient.hostName = 192.168.y.1
ccxml.sip.userAgentClient.port = 5061
ccxml.detectionTimeout = 3250

outbound.callLimiting.audioCodes.snmpAgent.address = 192.168.yx: 161
outbound.callLimiting.maximumConcurrentCalls = 4
outbound.callLimiting.cardinality = 1
outbound.callLimiting.inboundSeparated = true
outbound.callLimiting.countPollPeriod = 0

outbound.ignoreCallWindows = true

machineIp = 192.168.yx: 5060

testConsumerPhoneNumber = sip: 192.168.y.1: 5060
testAgentPhoneNumber = sip: 192.168.y.1: 5060

pacing.statDb.jdbc.url = jdbc: mysql: / / localhost/pace1
pacing.statDb.jdbc.username = root
pacing.statDb.jdbc.password = root

http.dumpResponses = true
http.dumpResponses.dir = c: / temp

5. Save this file, right click 'My Computer' on the desktop, then select manage. Find services, and in the list find the Apache Foundation Tomcat service. Select Start and Stop service.

6. In a web browser, go to the following site:

http://localhost:8080/manager/html

Username: admin

Password: admin (may be just blank if you left it blank during installation)

7. Find the following applications:

DeviceRelaySimulator

voiceapp

If both are in a running, then you have no problems. If voiceapp is not running, there is something wrong with the configuration and it needs to be fixed.
VI. Firewall Settings

1. Goto Control Panel in Windows

2. Select 'Windows Firewall'

3. Click the 'Exceptions' tab.

4. Click 'Add Port'

5. For name, enter "Tomcat" and for Port Number enter 8080.
VII. Running a test call

1. Open a command prompt, and navigate to the following directory:

C: <path> \ VGDevelopmentTools

2. Enter the following command to run a test call:

java-cp. CtiTestSubmitter localhost 1203 287.xml

What the above command does is submits a Voice Payload (287) to the Device Relay Simulator and launches an outbound call to the SIP phone.

3. If nothing plays, re-enter the above command, the Voice Genie Server usually fails on the first call. If no call is place, then there is either a firewall issue, or a configuration issue and everything will need to be reviewed.

4. To troubleshoot, view C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ logs \ stdout_ <todays date>. Log and search for ERROR, WARN. Invalid

Note: To setup Eclipse: http://confluence.us1.adeptra.com:8888/confluence/display/Tools/Eclipse \ \

相关文章
  • Development platform to build voice 2011-01-07

    Setting up the Updated Local VG Environment This page will go over the steps of setting up a local Voice Genie Voice Environment for testing new / existing Voice Applications. 1. Download the Voice Genie Development Tools 2. Installing SJ Phone 3. In

  • Ubuntu 10.04.2 LTS LAMP development platform to build 2011-05-14

    1. Installing Apache sudo apt-get install apache2 2. Installing PHP sudo apt-get install libapache2-mod-php5 php5 3. Install Mysql sudo apt-get install mysql-server mysql-common mysql-admin sudo apt-get install php5-mysql 4. Installing phpmyadmin sud

  • Guide to mobile phone development platform. Tutorials and information on (reprint) 2009-10-10

    Welcome to reprint, please specify the source reprint. Author: mobile phone information blog that is: http://canco.javaeye.com Recently, no matter the cell phone development platform learning guides, tutorials and summarize information for your refer

  • Qt for Symbian platform to build 2010-03-29

    1. The first erected in the development platform for Symbian-Carbide, here ignored. I'm using Carbide 2.3 version. Ensure normal operation and then perform the following installation Hello world. SDK is best FP1, FP2, S60_5rd. 2.Qt for Symbian instal

  • Android development environment to build Record 2010-03-29

    Android development environment to build is actually very simple, need time to pay attention in the development of some of the details. In this paper, a running account, in the form of record of the author Installation and Configuration Android devel

  • j2ee Rapid Development Platform - Code Generator - Workflow Platform 2010-06-27

    Rapid J2EE application development platform to help you zero risk, zero-cost rapid development system chosen DMX, select the successful Skyline Software is a leading government coordination office applications solutions provider, focused JBPM workflo

  • 211SOFT development platform to get started online articles 2010-09-24

    1. Login web site In the browser address bar: https: / / www.211soft.com, enter 211SOFT the official website of the earlier development platform. Click on the right of the "right experience 211SOFT online development platform", enter the online

  • 211SOFT development platform get started online articles 2010-09-24

    1. Login web site In the browser address bar: https: / / www.211soft.com, enter 211SOFT the official website of the earlier development platform. Click on the right of "immediate experience 211SOFT online development platform", enter the online

  • Development environment to build Android 2.2 2010-10-01

    Development environment to build Android 2.2 The past few days have seen a few good applications on Android, itching, and I want explore the world of Android, so determined to learn about the development of Android technology. :) Then of course, is t

  • Full demo android development environment to build process 2010-10-20

    Reprinted: http://hi.baidu.com/lvjava/blog/item/74a8480ee120e0c67acbe10f.html Download a (1) java JDK download: Access to the website: http://java.sun.com/javase/downloads/index.jsp (or click to download) the following diagram: Choose Download JDK do

  • Web development platform chaos 2010-11-09

    The following excerpt online web development platform of some description: By xxx software development and application will have an unprecedented high efficiency, high quality, high adaptability. The goal is to make each application software develope

  • Using RadRails build redmine development environment to build 2010-11-22

    Redmine is based on the ROR framework for the development of a cross-platform project management system, which is a project management system up and comer. RadRails is based on the eclipse platform, Ruby on Rails (ROR) IDE. Developers who are familia

  • Android Development Study Notes (a): Android development environment to build 2010-12-16

    What did I say: Che Dan's life is frustrating. This sentence for me, very appropriate, bought the book iPhone development, learning for some time, I found that this lack of Mac, of people too painful, persist for some time, decisively surrendered And

  • (Detailed) Eclipse3.6 development environment to build Android 2.2 2011-01-04

    Then of course, is the development environment to build Android you, follow these steps: 1. Install JDK. Note that only install the JRE does not work, you need to install JDK The author is to http://www.oracle.com/technetwork/java/javase/downloads/in

  • J-HI rapid development platform 2011-01-14

    rapid development platform J-HI official website: http://www.J-HI.net What is J-HI J-HI is a JAVA WEB rapid development of open source software platform, primarily serving the software enterprises and traditional industries, enterprises and instituti

  • Recommend the best audio and video development platform 2011-02-21

    AnyChat interactive audio and video development platform (SDK) is a cross-platform instant messaging solution, based on the advanced H.264 video coding standard, AAC audio coding standard and P2P technology, the integration of Bai Rui technology in a

  • Detailed development platform for instant messaging 2011-02-21

    The use of instant messaging is an important branch of the Internet, instant messaging 50 years, more people will be used in more places. It is far from instant messaging to the beginning of the development of high points. According to demand theory,

  • Founder platform (enterprise application development platform) 2011-03-03

    Founder Founder platform knowledge platform is an enterprise-class rapid application development platform. With it, enterprises and developers can be very convenient, fast, high-quality development of complex business systems, including OA, CRM, EAI,

  • Why use development platform 2011-06-30

    Why use development platform to implement the project? Now, whether software companies or enterprises, to develop new projects, there is a development platform to be used to implement business systems awareness. So the implementation of business syst

  • Guide to mobile development platform. Introduction tutorial and information 2009-04-14

    Recently, nothing, put the cell phone development platform study guides, tutorial and summarize information to facilitate your reference. Mobile client software development platform is the biggest difficult not uniform, many mobile phone development