SlideShare una empresa de Scribd logo
1 de 41
1
kmp@kmpeterson.com
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
• The current network (the PSTN) was engineered specifically for
voice
• Design and implementation were performed in a very different
environment
• TDM vs. Packet Switching
http://kmpeterson.com/special/bblisa-asterisk
• Everyone knows how telephones work.
• Service is universal, along with numbering.
• The Internet is not reliable. (See: jitter, latency, routing)
• Entrenched interests (“The Phone Compan(-ies)”)
• Cost
• Features
http://kmpeterson.com/special/bblisa-asterisk
• Understand enough of the technology to ask good questions
• Implement it yourself
• Help your organization/colleagues
• Where to go next
• Costs
• Functionality
• Services
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
PBX Features for Subscribers:Analog Telephone Sets Distributed Functionality
http://kmpeterson.com/special/bblisa-asterisk
IP Phones
PBX
The rest of it is just the usual stuff.
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
Cisco SPA112
IP Phone (Polycom Soundpoint IP550)
Audiocodes Mediant-600 Media Gateway
Features:
http://kmpeterson.com/special/bblisa-asterisk
Once again, countless:
Two parts of a phone call
SIP: Session Initiation Protocol
SDP: Session Description Protocol
RTP: Real Time Protocol
http://kmpeterson.com/special/bblisa-asterisk
Registration: Response:
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
Firewalls
SIP/RTP are UDP
▸ Application Layer Gateway (ALG) can replace incorrect fields.
▸ More efficient, lighter-weight
▸ Protocols such at STUN can determine global IP address, allow
endpoints to construct SDP messages with correct addresses.
http://kmpeterson.com/special/bblisa-asterisk
Requirements for Voice Traffic
▸ Lessons about QoS: traffic shaping, rate limiting, measurement
▸ Raise network engineering tasks to another level: you’ll know if your
network is working well.
▸ “Buffer Bloat” and the counterintuitive strategy of speeding up by
applying the brakes.
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
ata 192.168.0.12
phone1 192.168.0.11
ast 192.168.0.10
192.168.0.1
http://kmpeterson.com/special/bblisa-asterisk
Configuration (Files)
http://kmpeterson.com/special/bblisa-asterisk
http://kmpeterson.com/special/bblisa-asterisk
Server-based Provisioning
Configurability
http://kmpeterson.com/special/bblisa-asterisk
SIP configuration for IP Phone
friend user peer
Contexts and Extensions
context
progressinband
mailbox
directmedia
qualify
secret
http://kmpeterson.com/special/bblisa-asterisk
SIP configuration for IP Phone
friend user peer
context
progressinband
mailbox
directmedia
qualify
http://kmpeterson.com/special/bblisa-asterisk
Configuration for SIP provider
allowguest
register
type peer
host
context
http://kmpeterson.com/special/bblisa-asterisk
Asterisk “Programming”
▸ Careful with call flow through contexts
;
[context]
exten=>extension priority
same=>n
http://kmpeterson.com/special/bblisa-asterisk
Local extensions that can be dialed by our phones
x201
x202
x500
x811
Hangup
Answer
http://kmpeterson.com/special/bblisa-asterisk
Dialing out, in the US
_NXXNXXXXXX
EXTEN
[speedDial]
http://kmpeterson.com/special/bblisa-asterisk
Target contexts for our local phones and incoming
localHome
incomingTrunk
http://kmpeterson.com/special/bblisa-asterisk
Menu our incoming calls go into
1
8
0
i
t
http://kmpeterson.com/special/bblisa-asterisk
Actually making the phone ring
http://kmpeterson.com/special/bblisa-asterisk
•the asterisk console: /usr/sbin/asterisk -r
•backup services
•Support for E911 from commercial providers
•SELinux
•Network Monitoring
•beware of misuse
•Consider fail2ban
•Security monitoring (consider volume)
http://kmpeterson.com/special/bblisa-asterisk
• Users don’t understand the Internet
• Monitoring strategies
• Still not sure about the media stream
• Not too bad under CentOS
• Needed additional support for ODBC, SNMP
http://kmpeterson.com/special/bblisa-asterisk
1. Hadn’t really use ATA intensively
2. Found out at some point, couldn’t initiate calls and get audio
3. Spent a lot of time looking at packets on wire, reading up about
NAT-related issues and SIP protocol.
4. No serious differences between configurations for ATA and
Phone.
5. Tried defining port ranges - but they matched between ATA and
Phone, and still no sound.
6. Noticed “host unreachable replies” only for ATA voice traffic; then
noticed that Asterisk always talked to Phone earlier in session
than it did to ATA.
7. Turned of host firewall - iptables - and sound worked. But why...?
http://kmpeterson.com/special/bblisa-asterisk
• Set up mailbox for friends of in-laws to send their wishes
• Have several configured. Great way to learn about
implementations.
• Add friends to whitelist to avoid initial menu, also have more
options if not answered.
• Implemented option to send call to Mobile.
• Mobile programed to send call back if no answer there.
• Asterisk “remembers” numbers if they get sent back.
http://kmpeterson.com/special/bblisa-asterisk
• If CID is local emergency number, play short message (“your call
is being recorded”), route call to speaker on phone
• Audio copied to sound file; file emailed to me and SMS page
sent.
http://kmpeterson.com/special/bblisa-asterisk
Asterisk™: The Definitive Guide
By: Leif Madsen; Jim Van Meggelen; Russell Bryant
Publisher: O'Reilly Media, Inc.
Pub. Date: April 28, 2011 Most Recent Edition
Print ISBN-13: 978-0-596-51734-2
41
kmp@kmpeterson.com
http://kmpeterson.com/special/bblisa-asterisk

Más contenido relacionado

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Destacado

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

VoIP and Asterisk - A Technical Overview