asterisk : going deeper
TRANSCRIPT
February 27, 2007 © 2007 Sun Microsystems 1
Asterisk : Going Deeper
Stephen UhlerSun Microsystems Laboratories
February 27, 2007 © 2007 Sun Microsystems 2
Outline
• Intro: how I got into the phone business• Running Asterisk in a Corporate
environment• Running a phone system when you have a
day job• Stuff for me• Asterisk on Solaris
February 27, 2007 © 2007 Sun Microsystems 3
February 27, 2007 © 2007 Sun Microsystems 4
Asterisk Beginnings at SUN
February 27, 2007 © 2007 Sun Microsystems 5
How I Got into the Phone Business
February 27, 2007 © 2007 Sun Microsystems 6
You Want What?
T1/PRI
February 27, 2007 © 2007 Sun Microsystems 7
Phone-y ExpectationsThe good-old days, whenhanging-up on someoneactually meant something
“Can you hear me now?”
February 27, 2007 © 2007 Sun Microsystems 8
*
*
Internet
DMZ
SlabNet *
*
OfficePhones
Home-officephones
SIP/IAX
SIP/IAXVSP
Main PBXtest PBX
SUNPBX
“T1”
SunlabsVOIPTelephonyArchitecture T1 gateway
IAX
SIPIAXHTTPS
Voicemail
HTTPSremotemanagement
firewalls
Safe Firewall Traversal
February 27, 2007 © 2007 Sun Microsystems 9
Sunlabs phonesystem
MainPBX
LegacyPBX *
Gateway*
SparcSolaris
*Conference Server
*
SIPIAX
ISDN/PRI
*Asterisk
HTTP
February 27, 2007 © 2007 Sun Microsystems 10
Auto-provisioning
• No fuss phone distribution
February 27, 2007 © 2007 Sun Microsystems 11
Auto-provisioning: the Pieces• DHCP server• FTP boot/configuration
server• Corporate LDAP
authentication service• Asterisk
– IVR (extensions.conf)– Provisioning (AGI)
February 27, 2007 © 2007 Sun Microsystems 12
Web Services Interface
February 27, 2007 © 2007 Sun Microsystems 13
Batch control using theManager Interface
• Keeping *’s in sync– SIP registrations– DUNDI– DB entries
• Additional phoneservices
AMIManager
February 27, 2007 © 2007 Sun Microsystems 14
SunrayServer
SunrayServer
WEBServices
Admin
smartcard usersunray location
PSTN
PBX(telephone switch)
smartca
rd su
nray
Follow-me Sunray Phone System
user location
February 27, 2007 © 2007 Sun Microsystems 15
Portable “soft” phone
• Simple, lightweight,and functional
• Uses the IAXprotocol
• Runs on Solaris,Sunray, Windows,Linux, and Mac
• Easily customizableGUI
February 27, 2007 © 2007 Sun Microsystems 16
Screen-based Auto Dial
• Watch the clipboardand cut buffer
• Look for phonenumbers
• Place the call– Use web services
interface– Use soft phone
February 27, 2007 © 2007 Sun Microsystems 17
Batch AMI service: Conference Monitor
• Watch Conference“joins” and “leaves”
• Send text messages to“smart” phones– Add “conference”
menu for GUIconference controls
– Display joins andleaves
February 27, 2007 © 2007 Sun Microsystems 18
ConMan Conference FeaturesUser Administration
Creation &Management
Selection
Monitoring & control
February 27, 2007 © 2007 Sun Microsystems 19
Asterisk on Solaris
February 27, 2007 © 2007 Sun Microsystems 20
Asterisk on Big Iron
February 27, 2007 © 2007 Sun Microsystems 21
A Modest Example:1000 Calls
1 call = 8000B/sec @ 20ms/pkt = ~200B/pkt1000 calls = 50,000 pkts/sec = 10,000,000 B/sec
Poll() [schedule] [schedule] write() read()
100,000 thread schedules150,000 system calls