SlideShare a Scribd company logo
AG Projects ICE: the ultimate way of beating NAT in SIP
The SIP Infrastructure Experts
AstriCon 2010
Wideband Audio Conferencing with Asterisk
Saúl Ibarra Corretgé | AG Projects
Because G711 is not enough
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Index
● What is Wideband voice?
● Should I use Wideband anyway?
● Asterisk wideband capabilities
● Conference calls with Asterisk
● Testing and results
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
What is Wideband voice?
● Higher quality voice
● Higher detailed voice
● Richer sound
Nothing new! G722 is from 1988!
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
What is Wideband voice? (II)
● Human voice ranges from 30 to 18000 Hz
● The more frequencies we transmit the
richer the voice is
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
What is Wideband voice? (III)
● Nyquist sampling theorem
● If we want to transmit X amount of frequencies
they need to be sampled at 2X sample rate
● G711
● ~50 – 4000 Hz -> 8000 Hz sample rate
● G722
● ~0 – 7000 Hz -> 16000 Hz sample rate
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
What is Wideband voice? (IV)
How can G711 and G722 use same
bitrate (64 kbps) then?
● G711
● Uses PCM. 8 bits per sample * 8000 samples =
64 kbps
● G722
● Uses SB-ADPCM
– 48 kbps for the lower band
– 16 kbps for the higher band
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
What is Wideband voice? (V)
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Should I use Wideband anyway?
Short answer: yes.
Long(er) answer: yes, of course.
● “Cleaner” sound
● Easier way to identify voices
● Clearer diference between close sounds: “sailing” vs “failing”,
etc.
● Just don't say “what?” ever again.
25% of calls at SIP2SIP.info use wideband
Only 2% did use wideband same period last year
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Asterisk codec capabilities
Narrowband codecs
● G711
● GSM
● G729
● iLBC
● G723.1
● G726
● ...
Wideband codecs
● G722
● G722.1 (Siren 7 and Siren
14)
● Speex 16 KHz (new in 1.8!)
● G719 passthrough (new in
1.8!)
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Conferencing
Multiple callers involved in a single call
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Conferencing (II)
● Client side
● Server side
● Hosted service
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Asterisk conferencing capabilities
Asterisk supports several channel independent
applications for conferencing:
● MeetMe
● It's been around since forever
● Mixing is done in DAHDI really
● No wideband support (mixing is done in
DAHDI at 8 Khz)
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Asterisk conferencing capabilities (II)
● ConfBridge
● New as of Asterisk 1.6.2
● Uses “new” Brdging API
● No DAHDI needed
● Wideband capable!
● Can do mixing at 16 Khz or 8 Khz, but not both
● Not as many options as MeetMe... yet!
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Asterisk conferencing capabilities (III)
● AppKonference
● Third party application
● Fork of AppConference, around since Asterisk
1.0.x
● No DAHDI required
● Wideband capable!
● Video capable!
● Not working with Asterisk 1.8 yet
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
A note on timing sources
● Full explanation on doc/timing.txt
● Asterisk supports several sources which can be used to
provide internal timing
● res_timing_timerfd
– Only available on Linux systems with Kernel >= 2.6.25 & glibc >=
2.8
– Very reliable source of timing
● res_timing_kqueue
– Only available on BSD systems (yes, also works on the Mac)
● res_timing_dahdi
– Uses DAHDI to provide timing
● res_timing_pthread
– Uses the pthread library to provide timing
– Least efective, but more portable
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
ConfBridge
● No confguration fle
● Smart bridging: 2 party and multiparty mixing
● Be careful, you can't mix diferent sample rates
● Inbound codec can't be forced
● Not as complete as MeetMe...
● ... I'm sure patches would be welcome :-)
exten => _*7XXXX,1,NoOp(Entering conference ${EXTEN:4})
same => n,Answer
same => n,ConfBridge(${EXTEN:4},M)
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
AppKonference
● No confguration fle
● Inbound codec can't be forced
● Minimize encoding/decoding
● One speaker: frames sent directly to each
participant. Frames transcoded once per codec type
● Two speakers: each speaker gets the other speakers
frames. The two speakers frames are then mixed
and transcoded once per codec type
exten => _*7XXXX,1,NoOp(Entering conference ${EXTEN:4})
same => n,Answer
same => n,Konference(${EXTEN:4},H)
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Testing
● See how diferent options perform in terms of
CPU usage
● AppKonference
● ConfBridge (with TimerFD timing)
● ConfBridge (with Pthreads timing)
● Test scenarios (always 50 users)
● 1 speaker
● 2 speakers
● Everyone speaking, madness!
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Tools
● pcapsipdump: capture SIP + RTP in PCAP format
discarding everything else
● Wireshark: edit captured PCAP
● SIPp: SIP + RTP trafc generation
● sysstat: system stats generation
● OpenOfce: graphics. It sucks, btw.
● Human hear
● Hardware
● Code2Duo desktop computer with 8GB of DDR3 RAM
● Gigabit Ethernet
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Tools: Asterisk versions
● ConfBridge tests
● Asterisk SVN branch 1.8 r292230
● AppKonference tests
● Asterisk 1.6.2.14-rc1
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Results: 1 Speaker
1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
0
5
10
15
20
25
30
35
40
45
Single Speaker
1 Speaker (AppKonference)
1 Speaker (ConfBridge + TimerFD)
1 Speaker (ConfBridge + Pthreads)
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Results: 2 Speakers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
0
10
20
30
40
50
60
70
2 Speakers
2 Speakers (ConfBridge + Pthreads)
2 Speakers (ConfBridge + TimerFD)
2 Speakers (AppKonference)
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Results: 50 Speakers!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
0
10
20
30
40
50
60
70
80
50 Speakers
50 Speakers (ConfBridge + Pthreads)
50 Speakers (ConfBridge + TimerFD)
50 Speakers (AppKonference)
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Results analysis
● AppKonference had more audio cuts (according to
Human Hear TM)
● Short audio-loss when lots of calls were starting
(ConfBridge)
● Overall TimerFD performed better than Pthread
● AppKonference was tested on a diferent
release version
● With 50 speakers AppKonference produces no
audio at all
● ConfBridge doesn't have as many features as
good old MeetMe
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Recap
● Wideband can make our conference calls more
understandable
● With G722 we use same bandwidth as G711
● Asterisk provides all the necesary tools for a
nice and wideband conference call experience
● ConfBridge looks like the way to go
● All hardware devices involved need to
support wideband
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Spam!
● Join the VoIP Users Conference!
● Every friday at 12:00 EDT
● Highly skilled speakers talking about VoIP
● Anyone can join the conference!
● In G722, of course!
http://vuc.me
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Questions?
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
BYE
BYE sip:audience@astricon.net SIP/2.0
Via: SIP/2.0/UDP 192.168.99.23:49919;rport;branch=z9hG4bKPjDb30Dx0sH-ozn9QB.cCCboyU.atR97aM
Max-Forwards: 70
From: "saghul" <sip:saul@ag-projects.com>;tag=UCpGKVZbQQx7BUKYtiuPEX668oa9jaU7
To: <sip:audience@astricon.net>;tag=as59aef35c
Call-ID: DEWDfu63OACwYeQk7MrhmRhRq.1cqqis
CSeq: 10633 BYE
Route: <sip:81.23.228.129;lr;ftag=UCpGKVZbQQx7BUKYtiuPEX668oa9jaU7;did=641.a8a9c553>
User-Agent: blink-0.20.2
Content-Length: 0
saul@ag-projects.com
sip:saul@ag-projects.com
@saghul
AG Projects Wideband Audio Conferencing with Asterisk
The SIP Infrastructure Experts
AstriCon 2010
Images
http://www.fickr.com/photos/kigs/4991332361/sizes/l/in/photost
ream/
http://www.cisco.com/en/US/prod/collateral/voicesw/ps6788/pho
nes/ps379/ps8537/prod_white_paper0900aecd806fa57a.html
http://www.fickr.com/photos/timdorr/2737609108/sizes/z/in/pho
tostream/
http://www.trennum.net/hullabaloo/

More Related Content

PDF
Proyecto OP^2: Open Pi Phone
PDF
OpenSIPS Workshop
PDF
SIP is hard, let's go shopping!
PDF
From SIP to WebRTC and vice versa
PDF
SIP2SIP: SIP gratis para las masas
PDF
Building an Open Source VoIP Hardware Phone
PDF
The Future of the PBX
PDF
Blink: voice is not enough
Proyecto OP^2: Open Pi Phone
OpenSIPS Workshop
SIP is hard, let's go shopping!
From SIP to WebRTC and vice versa
SIP2SIP: SIP gratis para las masas
Building an Open Source VoIP Hardware Phone
The Future of the PBX
Blink: voice is not enough

What's hot (18)

PDF
Rethinking the PBX
PDF
SIP Conferencing Reloaded
PDF
CDRTool: CDR mediation and rating engine for OpenSIPS
PDF
SylkServer: State of the art RTC application server
PDF
Building an Open Source VoIP Hardware Phone
PDF
SIP Beyond VoIP
PDF
Videoconferencias: el santo grial de WebRTC
PPTX
Projects examples
PPTX
.NET Fest 2018. Андрей Тарарака. Как порулить грузовиком в Австралии, находяс...
PPTX
Blockchain Software for Hardware: The Canaan AvalonMiner Open Source Embedded...
PDF
apidays LIVE Paris 2021 - Using OpenAPI to configure your API Gateway by Ole ...
PDF
Webinar - Scaling your Puppet infrastructure
PDF
Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
PDF
WebRTC Audio Codec: Opus and processing requirements
PDF
Prepare to defend thyself with Blue/Green
PDF
What's happening in the OSGi IoT Expert Group? - Tim Ward
PPTX
NEC Platforms' Activity For IPv6 Deployment
PPTX
Kevin@Boeing
Rethinking the PBX
SIP Conferencing Reloaded
CDRTool: CDR mediation and rating engine for OpenSIPS
SylkServer: State of the art RTC application server
Building an Open Source VoIP Hardware Phone
SIP Beyond VoIP
Videoconferencias: el santo grial de WebRTC
Projects examples
.NET Fest 2018. Андрей Тарарака. Как порулить грузовиком в Австралии, находяс...
Blockchain Software for Hardware: The Canaan AvalonMiner Open Source Embedded...
apidays LIVE Paris 2021 - Using OpenAPI to configure your API Gateway by Ole ...
Webinar - Scaling your Puppet infrastructure
Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
WebRTC Audio Codec: Opus and processing requirements
Prepare to defend thyself with Blue/Green
What's happening in the OSGi IoT Expert Group? - Tim Ward
NEC Platforms' Activity For IPv6 Deployment
Kevin@Boeing
Ad

Viewers also liked (20)

PDF
Extendiendo SIP con WebRTC
PDF
Proyecto Open Pi Phone
PDF
De SIP a WebRTC y vice versa
PDF
Opus codec
PPTX
Sistema integral de comunicacion multimedia para la Facultad de Ciencias d...
PDF
Matria nº 7
PPTX
Lces joy hughes
PDF
Email Deliverability
PPT
El Pla Local d’Adaptació al Canvi Climàtic de Girona
PDF
Автоматизация гостиниц на оборудовании HDL Buspro
PDF
Amplify Your Customer Success With User Reviews
PDF
2014 2015 ieee java projects lists
PDF
Ofrecimiento Servicios Web Linkedin
PDF
Building businesspost.ie using Node.js
PDF
5-3 SlopeInterceptForm.pdf
PPTX
Contaminacion
PPT
Identidad y comunicacion conceptos basicos comunicacion - clase 01
PPT
comunicación multimedia
PDF
Cultos y-procesiones-2012
PDF
Extendiendo SIP con WebRTC
Proyecto Open Pi Phone
De SIP a WebRTC y vice versa
Opus codec
Sistema integral de comunicacion multimedia para la Facultad de Ciencias d...
Matria nº 7
Lces joy hughes
Email Deliverability
El Pla Local d’Adaptació al Canvi Climàtic de Girona
Автоматизация гостиниц на оборудовании HDL Buspro
Amplify Your Customer Success With User Reviews
2014 2015 ieee java projects lists
Ofrecimiento Servicios Web Linkedin
Building businesspost.ie using Node.js
5-3 SlopeInterceptForm.pdf
Contaminacion
Identidad y comunicacion conceptos basicos comunicacion - clase 01
comunicación multimedia
Cultos y-procesiones-2012
Ad

Similar to Wideband Audio Conferencing with Asterisk (20)

PPT
Download It
PPT
Michael Graves Astricon 2009 Hd Voice Demo Rev2
PPT
200706 kathmann shared by voip.com.vn
PPT
Asterisk Introduction
PPT
Jonathan Christensen's Presentation at eComm 2009
PPT
Jonathan Christensen's Presentation at eComm 2009
PDF
The 12 tasks of Asterisk
PDF
Aculab HD voice whitepaper
PDF
Asterisk presentation v1.1
PPT
02 asterisk - the future of telecommunications
PPT
Eastman Mike
PDF
Open Source Telephony Disruptive Solutions
PDF
Using Asterisk in a SIP softswitch
PPT
MM_Conferencing.ppt
PPTX
How Do You Hear Me Now?
PPT
OST Market - Hybrid Case Histories
PDF
Asterisk Update
PPT
Voip from kishor ramani
KEY
Fun with Linux Telephony
PPT
Download It
Michael Graves Astricon 2009 Hd Voice Demo Rev2
200706 kathmann shared by voip.com.vn
Asterisk Introduction
Jonathan Christensen's Presentation at eComm 2009
Jonathan Christensen's Presentation at eComm 2009
The 12 tasks of Asterisk
Aculab HD voice whitepaper
Asterisk presentation v1.1
02 asterisk - the future of telecommunications
Eastman Mike
Open Source Telephony Disruptive Solutions
Using Asterisk in a SIP softswitch
MM_Conferencing.ppt
How Do You Hear Me Now?
OST Market - Hybrid Case Histories
Asterisk Update
Voip from kishor ramani
Fun with Linux Telephony

More from Saúl Ibarra Corretgé (20)

PDF
JanusCon 2024: Mom there are robots in my meeting
PDF
Challenges running Jitsi Meet at scale during the pandemic
PDF
The Road to End-to-End Encryption in Jitsi Meet
PDF
Jitsi: State of the Union 2020
PDF
Jitsi Meet: our tale of blood, sweat, tears and love
PDF
Jitsi Meet: Video conferencing for the privacy minded
PDF
Jitsi - Estado de la unión 2019
PDF
Get a room! Spot: the ultimate physical meeting room experience
PDF
Going Mobile with React Native and WebRTC
PDF
Going Mobile with React Native and WebRTC
PDF
Jitsi: Estado de la Unión (2018)
PDF
Jitsi: state-of-the-art video conferencing you can self-host
PDF
WebRTC: El epicentro de la videoconferencia y IoT
PDF
Jitsi: Open Source Video Conferencing
PDF
Jitsi: State of the Union
PDF
libuv: cross platform asynchronous i/o
PDF
Escalabilidad horizontal desde las trincheras
PDF
A deep dive into libuv
PDF
Planning libuv v2
PDF
libuv, NodeJS and everything in between
JanusCon 2024: Mom there are robots in my meeting
Challenges running Jitsi Meet at scale during the pandemic
The Road to End-to-End Encryption in Jitsi Meet
Jitsi: State of the Union 2020
Jitsi Meet: our tale of blood, sweat, tears and love
Jitsi Meet: Video conferencing for the privacy minded
Jitsi - Estado de la unión 2019
Get a room! Spot: the ultimate physical meeting room experience
Going Mobile with React Native and WebRTC
Going Mobile with React Native and WebRTC
Jitsi: Estado de la Unión (2018)
Jitsi: state-of-the-art video conferencing you can self-host
WebRTC: El epicentro de la videoconferencia y IoT
Jitsi: Open Source Video Conferencing
Jitsi: State of the Union
libuv: cross platform asynchronous i/o
Escalabilidad horizontal desde las trincheras
A deep dive into libuv
Planning libuv v2
libuv, NodeJS and everything in between

Recently uploaded (20)

PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Getting Started with Data Integration: FME Form 101
PDF
Hybrid model detection and classification of lung cancer
PPTX
TLE Review Electricity (Electricity).pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
project resource management chapter-09.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
A Presentation on Touch Screen Technology
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Mushroom cultivation and it's methods.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
WOOl fibre morphology and structure.pdf for textiles
Getting Started with Data Integration: FME Form 101
Hybrid model detection and classification of lung cancer
TLE Review Electricity (Electricity).pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
A comparative study of natural language inference in Swahili using monolingua...
Unlocking AI with Model Context Protocol (MCP)
project resource management chapter-09.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
A Presentation on Touch Screen Technology
cloud_computing_Infrastucture_as_cloud_p
NewMind AI Weekly Chronicles - August'25-Week II
Programs and apps: productivity, graphics, security and other tools
Mushroom cultivation and it's methods.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
A novel scalable deep ensemble learning framework for big data classification...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Univ-Connecticut-ChatGPT-Presentaion.pdf

Wideband Audio Conferencing with Asterisk

  • 1. AG Projects ICE: the ultimate way of beating NAT in SIP The SIP Infrastructure Experts AstriCon 2010 Wideband Audio Conferencing with Asterisk Saúl Ibarra Corretgé | AG Projects Because G711 is not enough
  • 2. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Index ● What is Wideband voice? ● Should I use Wideband anyway? ● Asterisk wideband capabilities ● Conference calls with Asterisk ● Testing and results
  • 3. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 What is Wideband voice? ● Higher quality voice ● Higher detailed voice ● Richer sound Nothing new! G722 is from 1988!
  • 4. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 What is Wideband voice? (II) ● Human voice ranges from 30 to 18000 Hz ● The more frequencies we transmit the richer the voice is
  • 5. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 What is Wideband voice? (III) ● Nyquist sampling theorem ● If we want to transmit X amount of frequencies they need to be sampled at 2X sample rate ● G711 ● ~50 – 4000 Hz -> 8000 Hz sample rate ● G722 ● ~0 – 7000 Hz -> 16000 Hz sample rate
  • 6. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 What is Wideband voice? (IV) How can G711 and G722 use same bitrate (64 kbps) then? ● G711 ● Uses PCM. 8 bits per sample * 8000 samples = 64 kbps ● G722 ● Uses SB-ADPCM – 48 kbps for the lower band – 16 kbps for the higher band
  • 7. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 What is Wideband voice? (V)
  • 8. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Should I use Wideband anyway? Short answer: yes. Long(er) answer: yes, of course. ● “Cleaner” sound ● Easier way to identify voices ● Clearer diference between close sounds: “sailing” vs “failing”, etc. ● Just don't say “what?” ever again. 25% of calls at SIP2SIP.info use wideband Only 2% did use wideband same period last year
  • 9. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Asterisk codec capabilities Narrowband codecs ● G711 ● GSM ● G729 ● iLBC ● G723.1 ● G726 ● ... Wideband codecs ● G722 ● G722.1 (Siren 7 and Siren 14) ● Speex 16 KHz (new in 1.8!) ● G719 passthrough (new in 1.8!)
  • 10. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Conferencing Multiple callers involved in a single call
  • 11. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Conferencing (II) ● Client side ● Server side ● Hosted service
  • 12. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Asterisk conferencing capabilities Asterisk supports several channel independent applications for conferencing: ● MeetMe ● It's been around since forever ● Mixing is done in DAHDI really ● No wideband support (mixing is done in DAHDI at 8 Khz)
  • 13. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Asterisk conferencing capabilities (II) ● ConfBridge ● New as of Asterisk 1.6.2 ● Uses “new” Brdging API ● No DAHDI needed ● Wideband capable! ● Can do mixing at 16 Khz or 8 Khz, but not both ● Not as many options as MeetMe... yet!
  • 14. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Asterisk conferencing capabilities (III) ● AppKonference ● Third party application ● Fork of AppConference, around since Asterisk 1.0.x ● No DAHDI required ● Wideband capable! ● Video capable! ● Not working with Asterisk 1.8 yet
  • 15. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 A note on timing sources ● Full explanation on doc/timing.txt ● Asterisk supports several sources which can be used to provide internal timing ● res_timing_timerfd – Only available on Linux systems with Kernel >= 2.6.25 & glibc >= 2.8 – Very reliable source of timing ● res_timing_kqueue – Only available on BSD systems (yes, also works on the Mac) ● res_timing_dahdi – Uses DAHDI to provide timing ● res_timing_pthread – Uses the pthread library to provide timing – Least efective, but more portable
  • 16. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 ConfBridge ● No confguration fle ● Smart bridging: 2 party and multiparty mixing ● Be careful, you can't mix diferent sample rates ● Inbound codec can't be forced ● Not as complete as MeetMe... ● ... I'm sure patches would be welcome :-) exten => _*7XXXX,1,NoOp(Entering conference ${EXTEN:4}) same => n,Answer same => n,ConfBridge(${EXTEN:4},M)
  • 17. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 AppKonference ● No confguration fle ● Inbound codec can't be forced ● Minimize encoding/decoding ● One speaker: frames sent directly to each participant. Frames transcoded once per codec type ● Two speakers: each speaker gets the other speakers frames. The two speakers frames are then mixed and transcoded once per codec type exten => _*7XXXX,1,NoOp(Entering conference ${EXTEN:4}) same => n,Answer same => n,Konference(${EXTEN:4},H)
  • 18. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Testing ● See how diferent options perform in terms of CPU usage ● AppKonference ● ConfBridge (with TimerFD timing) ● ConfBridge (with Pthreads timing) ● Test scenarios (always 50 users) ● 1 speaker ● 2 speakers ● Everyone speaking, madness!
  • 19. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Tools ● pcapsipdump: capture SIP + RTP in PCAP format discarding everything else ● Wireshark: edit captured PCAP ● SIPp: SIP + RTP trafc generation ● sysstat: system stats generation ● OpenOfce: graphics. It sucks, btw. ● Human hear ● Hardware ● Code2Duo desktop computer with 8GB of DDR3 RAM ● Gigabit Ethernet
  • 20. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Tools: Asterisk versions ● ConfBridge tests ● Asterisk SVN branch 1.8 r292230 ● AppKonference tests ● Asterisk 1.6.2.14-rc1
  • 21. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Results: 1 Speaker 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 0 5 10 15 20 25 30 35 40 45 Single Speaker 1 Speaker (AppKonference) 1 Speaker (ConfBridge + TimerFD) 1 Speaker (ConfBridge + Pthreads)
  • 22. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Results: 2 Speakers 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 0 10 20 30 40 50 60 70 2 Speakers 2 Speakers (ConfBridge + Pthreads) 2 Speakers (ConfBridge + TimerFD) 2 Speakers (AppKonference)
  • 23. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Results: 50 Speakers! 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 0 10 20 30 40 50 60 70 80 50 Speakers 50 Speakers (ConfBridge + Pthreads) 50 Speakers (ConfBridge + TimerFD) 50 Speakers (AppKonference)
  • 24. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Results analysis ● AppKonference had more audio cuts (according to Human Hear TM) ● Short audio-loss when lots of calls were starting (ConfBridge) ● Overall TimerFD performed better than Pthread ● AppKonference was tested on a diferent release version ● With 50 speakers AppKonference produces no audio at all ● ConfBridge doesn't have as many features as good old MeetMe
  • 25. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Recap ● Wideband can make our conference calls more understandable ● With G722 we use same bandwidth as G711 ● Asterisk provides all the necesary tools for a nice and wideband conference call experience ● ConfBridge looks like the way to go ● All hardware devices involved need to support wideband
  • 26. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Spam! ● Join the VoIP Users Conference! ● Every friday at 12:00 EDT ● Highly skilled speakers talking about VoIP ● Anyone can join the conference! ● In G722, of course! http://vuc.me
  • 27. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Questions?
  • 28. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 BYE BYE sip:audience@astricon.net SIP/2.0 Via: SIP/2.0/UDP 192.168.99.23:49919;rport;branch=z9hG4bKPjDb30Dx0sH-ozn9QB.cCCboyU.atR97aM Max-Forwards: 70 From: "saghul" <sip:saul@ag-projects.com>;tag=UCpGKVZbQQx7BUKYtiuPEX668oa9jaU7 To: <sip:audience@astricon.net>;tag=as59aef35c Call-ID: DEWDfu63OACwYeQk7MrhmRhRq.1cqqis CSeq: 10633 BYE Route: <sip:81.23.228.129;lr;ftag=UCpGKVZbQQx7BUKYtiuPEX668oa9jaU7;did=641.a8a9c553> User-Agent: blink-0.20.2 Content-Length: 0 saul@ag-projects.com sip:saul@ag-projects.com @saghul
  • 29. AG Projects Wideband Audio Conferencing with Asterisk The SIP Infrastructure Experts AstriCon 2010 Images http://www.fickr.com/photos/kigs/4991332361/sizes/l/in/photost ream/ http://www.cisco.com/en/US/prod/collateral/voicesw/ps6788/pho nes/ps379/ps8537/prod_white_paper0900aecd806fa57a.html http://www.fickr.com/photos/timdorr/2737609108/sizes/z/in/pho tostream/ http://www.trennum.net/hullabaloo/