presentation slides - ClueCon

candlewhynotΔιαχείριση Δεδομένων

31 Ιαν 2013 (πριν από 4 χρόνια και 4 μήνες)

302 εμφανίσεις

Building A Telephony Application With
FreeSWITCH

and
Lua
:

William Dale, PE

San Diego CA

Employee Time Clock

William Dale, PE
-

Cluecon

2011


www.labortimetracker.com

Intro

William Dale, PE
-

Cluecon

2011


www.labortimetracker.com

Technology Stack



Debian

6 (Squeeze)


Freeswitch


Apache


JBoss


PostgreSQL


Perl




William Dale, PE
-

Cluecon

2011


www.labortimetracker.com

Future Technologies


No

SQL


CDN


Global DNS


Jester
?


Gemeinschaft
?


Sangoma
?




Architecture
Overview



PSTN Gateway



COM Server



Application Server



Database Server



Com Server
(
FreeSWITCH
)



Dial Plan



Lua

Script



Mod_CURL



PSTN

Gateway

(Inbound
Phone
Call)

Web Service

Querystring

Parameter

(HTTP Get)

Database

Exec

Stored
Procedure

William Dale, PE
-

Cluecon

2011


www.labortimetracker.com

Route Phone Call to
FreeSWITCH


Contract

with

PSTN Provider



SIP
Trunk



Toll

Free
Inbound



Secondary

SIP
Trunk



Register

Gateway
with

FreeSWITCH

PSTN

Gateway

(Inbound
Phone
Call)

William Dale, PE
-

Cluecon

2011


www.labortimetracker.com

FreeSWITCH


Register

Gateways

(SOFIA STATUS)



Enable

Modules


Mod_flite


Mod_curl



Configure
Dialplan


Regex

the
Inbound

Number
(s)


Transfer
inboud

call to extension 5050



Exec

Lua

script
based

on extension

Com Server
(
FreeSWITCH
)



Dial Plan



Lua

Script



Mod_CURL



William Dale, PE
-

Cluecon

2011


www.labortimetracker.com

Web Services


Setup
Listener



Security


Source IP


SSL


TOKEN



Return values


XML


CSV


Fix

Length

String Value


Web Service

Querystring

Parameter

(HTTP Get)

William Dale, PE
-

Cluecon

2011


www.labortimetracker.com

Sound File
Processing


Process

wav

files


Convert

to
compressed

format


MP3


OOG



Create

Work

Flow


Use
folders


Convert

to mp3/ogg


Post to web services


Asynchronous
call


Clean up

Web Service

REST

nginx

William Dale, PE
-

Cluecon

2011


www.labortimetracker.com

Call Database


Database Call



Exec

Stored

Procedures



Pass

in
parameters



Performance


Keep

within

40


80 ms.

Database

Exec

Stored
Procedure

William Dale, PE
-

Cluecon

2011


www.labortimetracker.com

Freeswitch

Enabled

Features



Group communications


Employee

send

messge


Play
Supervisor
/Group


Voice
Verification


Expenses


Mileage


Tips


Sales

William Dale, PE
-

Cluecon

2011


www.labortimetracker.com

DEMO Application


Login
into



Freeswitch

(
fs_cli
)


Labor Time
Tracker

(Web
App
)



Call
Toll

Free
Number



Enter Job/
Department

ID



Enter PIN



Employee

has
punched

timeclock
!



William Dale, PE
-

Cluecon

2011


www.labortimetracker.com

Building A Telephony Application With
FreeSWITCH

and
Lua
:

Question and Answers

wdale@utiliware.com


William Dale, PE
-

Cluecon

2011


www.labortimetracker.com