SlideShare una empresa de Scribd logo
1 de 4
Descargar para leer sin conexión
Laboratorio de Conmutación

                      Kamailio Lab 2012-13
                                          (version 1.0)
                                        Sep. 11, 2012




Introduction
As you know, Quobis Networks is collaborating in the extended practice of Laboratorio de
Conmutación. This is our proposal for the Kamailio exercise. Honestly we can say it is not
difficult at all but it requires you to know a few VoIP concepts and learn how to configure
Kamailio. We recommend to read a SIP tutorial (see bibliography section) before starting the
practice, you will get very valuable skills for the practice and your professional life.


Why Kamailio?
We have already presented the amazing features of Kamailio in previous classes. It is the
most powerful SIP open-source softswitch used in real VoIP operators such as 1&1 and
Freenet. In the bibliography section you can find links to good Kamailio documentation.



Exercise.
Welcome to the LC imaginary real-world. Last year, your colleagues had to start a new operator
from scratch. In this practice you will have to increase the services and the capacity of your
system by implementing new techniques.

As you may know, the United Archipelago Republic is formed by more than 100 islands.
However 99% of population enjoy their lives in the 4 biggest islands, namely, Big Banana, Big
Treasure, Drake Island and Lost Island.
The national telecommunication operator was acquired by a Galician capital risk fund in 2011.
For operative reasons, it was decided to divide the operator in four smaller operator based
in each of the main islands. Thanks to the global financial crisis, the Caribbean country is
increasing its GDP and population. They are hiring new VoIP skills and you has been luckily
selected to manage the addition of new functionalities to the SIP system of the island operator
you choose. You will be posted there by your Telecom company, so pack your luggage and
enjoy the experience.

To implement the central softswitch infrastructure your colleagues had a limited budget but they
got very valuable VoIP skills implementing the system on their own with the powerful Kamailio
open-source software.



Basic functionality.
All groups must configure Kamailio so that it can do the following:

   1. Register up to 100 users (except for team 2).
   2. Establish calls between registered users.
   3. Establish calls to each other’s groups.



General considerations
   ●   Users will be provisioned with their complete E.164 number (including the international
       prefix).
   ●   Numbering length is up to system administrator however the length of the
       complete number must respect E.164 standard (never longer than 15 digits, http:/
       /en.wikipedia.org/wiki/E.164). The recommended length is 5 digits after country
       prefix. For instance, Big Banana Island numeration would go from 00178800000 to
       00178839999, more than enough for an island.
   ●    Users registered on the same Kamailio, thus belonging to the same, island should be
       able to call each other without dialing the international prefix.
   ●   Users from different islands must dial the complete number (including prefix) to call each
       other.
   ●   As an additional exercise, user numbers can be associated to SIP URIs, for example,
       user 00178838888 can be bound to a SIP URI like this mahatma.gandhi@<kamailio
       IP>. If you feel capable, you can even substitute <kamailio IP> for a domain name:
       bigbanana.ur, bigtreausure.ur, drakeisland.ur, lostisland.ur. If
       you were wondering it, yes, ‘ur’ domain root is free: http://www.iana.org/domains/root/db/
       )



Additional functionality.
Additionally to the basic exercise, every group must chose one of the following options:

Option 1: you will configure Kamailio for Big Banana Island. With a population of 10,000
native residents, they received last year 120,000 people during tourist season. Most of them
comes from Europe and North America so most of the call traffic is international. We want to
balance all the international traffic between a number of SIP providers. In the practice we’ll
simulate just a couple of SIP providers. The SIP providers can be simulated with either Asterisk
or sipp4. However, Kamailio will check every 30 seconds the availability of our SIP providers, to
prevent us from sending calls to an out- of-service SIP provider. To avoid service disruptions
Kamailio must implement peak load protection. To simulate calls you can use sipp. XML sipp
configuration files will be provided by Quobis. The international prefix assigned for Big
Banana island is: 001788[0-3]


Option 2: you will configure Kamailio for Big Treasure Island. This Island it’s a Tax Haven
so it has a lot of corporative customers. Last year we implemented TLS support to be able to
encrypt the signaling exchanged between our customer terminals and Kamailio. This year, as
a massive customer requirement we must support attended call transfer between our users. It
should be supported by default by Kamailio, anyway we need to implement a demo scenario
with sipp so that we can test the scenario easily in an automatic way. So you must implement
the call transfer scenario in sipp from the traces that will be provided to you in due time. The
international prefix assigned for Big Treasure Island is: 001788[4-5]


Option 3: you will configure Kamailio for Drake Island. This island has been a pirate refuge for
centuries. This tradition survives and nowadays this island has the world highest cracker rate
per km2. Last year we used SIPvicious toolkit to test the security of our Kamailio server. Though
simple, it’s quite powerful, hacker community skills improve day after day so you must use more
powerful tools. That’s the reason why this year will use the Metasploit modules implemented
by our colleague jesus.perez@quobis.com to simulate DoS, DDoS and extension brute-force
attacks. Your challenge in the practice option will be implement as many attacks and security
methods as you can. The security of this operator is in your hands. The international prefix
assigned for Drake Island is: 001788[6-7]

Option 4: you will configure Kamailio for Lost island. Last year your colleagues had to force
GSM codec in every calls processed by this operator since they use WiMAX air links whose
capacity dramatically decreases during hurricane and other extreme atmospheric phenomena.
During this year hurricanes our bandwidth saving technique worked pretty well, but operator
CEO says that we should offer a better audio quality when the sky is blue and the Sun is
shining, which is almost all the time. To do so we’ll only force GSM codec in our calls when
wind is over 50km/h or visibility is lower than 3km. To implement it you must get the weather
conditions of our island from a public and free weather webservices server and act accordingly.
Our recommendation is to call a script which checks the Globalweather service from http://
www.webservicex.net calling a Python script from Kamailio (a check every 5 minutes would
be enough), to indicate the need of using GSM codec in a Kamailio pseudovariable which
must be checked when processing every call. In short, the target is to modify SDPs to
only allow GSM1 codec in every call when weather conditions are bad2, and leave the
selected codec the rest of the time. The international prefix assigned for Drake Island is:
001788[8-9]



Help!
Take it easy, luckily you are not alone. Quobis is going to support you during the practice, we
will offer at least one more lesson and provide e-mail support: university@quobis.com

On the other side, Kamailio project is supported by a big community formed by developers,
testers and users who are looking forward to helping you in your challenging project. You can
visit the Kamailio web site and subscribe to Kamailio mailing lists.

Note about using Kamailio mailing list: many people is going to invest their time in reading
all the list mails everyday so, please, read carefully the documentation and try to find similar
questions already answered in the list. If you don’t find the answer on your own, do not hesitate
to send a mail to the list trying to write it in an understandable way, including all the progress
you have done so far.



What tools can I use?
There are many tools which can be really useful to carry out this exercise. Below you can find
some of them:
   ● wireshark: protocol analyzer.
   ● ngrep-sip: sip-adapted ngrep http://dev.sipdoc.net/projects/sip-stuff/wiki/Ngrep-SIPsipp
   ● jitsi: a Java softphone.
   ● SIPp and SIPvicous: check links included in bibliography section.



Bibliography
    1.   SIP tutorial: http://www.iptel.org/files/sip_tutorial.pdf
    2.   Kamailio Knowledge Base: http://kb.asipto.com/kamailio:index
    3.   Kamailio Wiki: http://www.kamailio.org/dokuwiki/doku.php/start
    4.   SIPp: http://sipp.sourceforge.net/
    5.   SIPvicious: http://blog.sipvicious.org/



1In a production environment, the right choice would be normally G.729. The thing is that
G.729 codec can only be used after paying a cannon, so open source softphones do not
support it. However GSM is an open standard and it is implemented by most of the open source
softphones.
2Obviously, Globalweather service will only offer weather from real real cities. For this practice
will use the weather conditions from Nassau Airport (Bahamas).

Más contenido relacionado

La actualidad más candente

Asterisk World Theater Talk Tlc 080319
Asterisk World Theater Talk Tlc 080319Asterisk World Theater Talk Tlc 080319
Asterisk World Theater Talk Tlc 080319
Carl Ford
 
VoIP Techniques and Challenges PRESENTATION
VoIP Techniques and Challenges PRESENTATIONVoIP Techniques and Challenges PRESENTATION
VoIP Techniques and Challenges PRESENTATION
Karama Said(BEng,MSc)
 

La actualidad más candente (20)

Voip In College
Voip In CollegeVoip In College
Voip In College
 
Adhearsion and Telegraph Framework Presentation
Adhearsion and Telegraph Framework PresentationAdhearsion and Telegraph Framework Presentation
Adhearsion and Telegraph Framework Presentation
 
Asterisk World Theater Talk Tlc 080319
Asterisk World Theater Talk Tlc 080319Asterisk World Theater Talk Tlc 080319
Asterisk World Theater Talk Tlc 080319
 
Introduction to VOIP
Introduction to VOIPIntroduction to VOIP
Introduction to VOIP
 
respond_to :voice - the convergence of voice and web interfaces with Rails an...
respond_to :voice - the convergence of voice and web interfaces with Rails an...respond_to :voice - the convergence of voice and web interfaces with Rails an...
respond_to :voice - the convergence of voice and web interfaces with Rails an...
 
Tropo Presentation for TADHack
Tropo Presentation for TADHackTropo Presentation for TADHack
Tropo Presentation for TADHack
 
VoIP Techniques and Challenges PRESENTATION
VoIP Techniques and Challenges PRESENTATIONVoIP Techniques and Challenges PRESENTATION
VoIP Techniques and Challenges PRESENTATION
 
Introduction to VoIP, RTP and SIP
Introduction to VoIP, RTP and SIP Introduction to VoIP, RTP and SIP
Introduction to VoIP, RTP and SIP
 
Introduction To SIP
Introduction  To  SIPIntroduction  To  SIP
Introduction To SIP
 
Astricon 2007
Astricon 2007Astricon 2007
Astricon 2007
 
Practical Fundamentals of Voice over IP (VoIP) for Engineers and Technicians
Practical Fundamentals of Voice over IP (VoIP) for Engineers and TechniciansPractical Fundamentals of Voice over IP (VoIP) for Engineers and Technicians
Practical Fundamentals of Voice over IP (VoIP) for Engineers and Technicians
 
2012 ah vegas wlan design for voice video
2012 ah vegas   wlan design for voice video2012 ah vegas   wlan design for voice video
2012 ah vegas wlan design for voice video
 
2012 ah emea top 10 tips from aruba tac
2012 ah emea   top 10 tips from aruba tac 2012 ah emea   top 10 tips from aruba tac
2012 ah emea top 10 tips from aruba tac
 
IPv6 - A Real World Deployment for Mobiles
IPv6 - A Real World Deployment for MobilesIPv6 - A Real World Deployment for Mobiles
IPv6 - A Real World Deployment for Mobiles
 
voip gateway
 voip gateway voip gateway
voip gateway
 
Shanghai Breakout: Wireless LAN Security Fundamentals
Shanghai Breakout: Wireless LAN Security Fundamentals Shanghai Breakout: Wireless LAN Security Fundamentals
Shanghai Breakout: Wireless LAN Security Fundamentals
 
Vo ip sip
Vo ip sipVo ip sip
Vo ip sip
 
80211ac faq 121311
80211ac faq 12131180211ac faq 121311
80211ac faq 121311
 
VoLTE video telephony – a communication evolution
VoLTE video telephony – a communication evolution VoLTE video telephony – a communication evolution
VoLTE video telephony – a communication evolution
 
Gigabit wi fi 802.11ac in depth onno harms
Gigabit wi fi 802.11ac in depth onno harmsGigabit wi fi 802.11ac in depth onno harms
Gigabit wi fi 802.11ac in depth onno harms
 

Destacado (12)

Grupo Exportación Tic Galicia
Grupo Exportación Tic GaliciaGrupo Exportación Tic Galicia
Grupo Exportación Tic Galicia
 
Presentation MultipleTalk
Presentation MultipleTalkPresentation MultipleTalk
Presentation MultipleTalk
 
Quobis webinar Siete avances clave en la operabilidad de redes VoIP y NGN
Quobis webinar  Siete avances clave en la operabilidad de redes VoIP y NGNQuobis webinar  Siete avances clave en la operabilidad de redes VoIP y NGN
Quobis webinar Siete avances clave en la operabilidad de redes VoIP y NGN
 
Presentacion kamailio uvigo_09262011
Presentacion kamailio uvigo_09262011Presentacion kamailio uvigo_09262011
Presentacion kamailio uvigo_09262011
 
Webinar seguridad VoIP
Webinar seguridad VoIPWebinar seguridad VoIP
Webinar seguridad VoIP
 
Presentacion vtdm
Presentacion vtdmPresentacion vtdm
Presentacion vtdm
 
Info secvoip
Info secvoipInfo secvoip
Info secvoip
 
Quobis portfolio corporativo
Quobis portfolio corporativoQuobis portfolio corporativo
Quobis portfolio corporativo
 
Presentation VoiceInstant
Presentation VoiceInstantPresentation VoiceInstant
Presentation VoiceInstant
 
Presentation TalkStorage
Presentation TalkStoragePresentation TalkStorage
Presentation TalkStorage
 
¿Cómo está cambiando la industria del call center?
¿Cómo está cambiando la industria del call center?¿Cómo está cambiando la industria del call center?
¿Cómo está cambiando la industria del call center?
 
Quobis profile english 2010
Quobis profile english 2010Quobis profile english 2010
Quobis profile english 2010
 

Similar a Kamailio practice Quobis-University of Vigo Laboratory of Commutation 2012-2013

Aruba utilities on mobile devices v30
Aruba utilities on mobile devices v30Aruba utilities on mobile devices v30
Aruba utilities on mobile devices v30
Marcello Marchesini
 

Similar a Kamailio practice Quobis-University of Vigo Laboratory of Commutation 2012-2013 (20)

Building a Streaming Microservices Architecture - Data + AI Summit EU 2020
Building a Streaming Microservices Architecture - Data + AI Summit EU 2020Building a Streaming Microservices Architecture - Data + AI Summit EU 2020
Building a Streaming Microservices Architecture - Data + AI Summit EU 2020
 
Experiences with serverless for high throughput low usage applications | ryan...
Experiences with serverless for high throughput low usage applications | ryan...Experiences with serverless for high throughput low usage applications | ryan...
Experiences with serverless for high throughput low usage applications | ryan...
 
Kubernetes is Hard! Lessons Learned Taking Our Apps to Kubernetes by Eldad Assis
Kubernetes is Hard! Lessons Learned Taking Our Apps to Kubernetes by Eldad AssisKubernetes is Hard! Lessons Learned Taking Our Apps to Kubernetes by Eldad Assis
Kubernetes is Hard! Lessons Learned Taking Our Apps to Kubernetes by Eldad Assis
 
Skyping awesomeness
Skyping awesomenessSkyping awesomeness
Skyping awesomeness
 
Introduction into SIP protocol
Introduction into SIP protocolIntroduction into SIP protocol
Introduction into SIP protocol
 
Cloud Crowd - Mandhir Gidda Razorfish " Building a Public / Private Hybrid Cl...
Cloud Crowd - Mandhir Gidda Razorfish " Building a Public / Private Hybrid Cl...Cloud Crowd - Mandhir Gidda Razorfish " Building a Public / Private Hybrid Cl...
Cloud Crowd - Mandhir Gidda Razorfish " Building a Public / Private Hybrid Cl...
 
CloudCrowd - RazorFish Presentation on Building Hybrid Public/Private Cloud
CloudCrowd - RazorFish Presentation on Building Hybrid Public/Private CloudCloudCrowd - RazorFish Presentation on Building Hybrid Public/Private Cloud
CloudCrowd - RazorFish Presentation on Building Hybrid Public/Private Cloud
 
Wi-Fi Behavior of Popular Mobile Devices #AirheadsConf Italy
Wi-Fi Behavior of Popular Mobile Devices #AirheadsConf ItalyWi-Fi Behavior of Popular Mobile Devices #AirheadsConf Italy
Wi-Fi Behavior of Popular Mobile Devices #AirheadsConf Italy
 
Mobile Devices and Wi-Fi
Mobile Devices and Wi-FiMobile Devices and Wi-Fi
Mobile Devices and Wi-Fi
 
SYN207: Newest and coolest NetScaler features you should be jazzed about
SYN207: Newest and coolest NetScaler features you should be jazzed aboutSYN207: Newest and coolest NetScaler features you should be jazzed about
SYN207: Newest and coolest NetScaler features you should be jazzed about
 
Aruba utilities on mobile devices v30
Aruba utilities on mobile devices v30Aruba utilities on mobile devices v30
Aruba utilities on mobile devices v30
 
Confluent Steaming Webinar - Cape Town - Vitality
Confluent Steaming Webinar - Cape Town - VitalityConfluent Steaming Webinar - Cape Town - Vitality
Confluent Steaming Webinar - Cape Town - Vitality
 
Basic VoIP Drupal Intro - for BioRAFT
Basic VoIP Drupal Intro - for BioRAFTBasic VoIP Drupal Intro - for BioRAFT
Basic VoIP Drupal Intro - for BioRAFT
 
Shanghai Breakout: Mobile Devices and Wi-Fi
Shanghai Breakout: Mobile Devices and Wi-FiShanghai Breakout: Mobile Devices and Wi-Fi
Shanghai Breakout: Mobile Devices and Wi-Fi
 
IRJET- Voice Recognition(AI) : Voice Assistant Robot
IRJET-  	  Voice Recognition(AI) : Voice Assistant RobotIRJET-  	  Voice Recognition(AI) : Voice Assistant Robot
IRJET- Voice Recognition(AI) : Voice Assistant Robot
 
Astricon 2010: Scaling Asterisk installations
Astricon 2010: Scaling Asterisk installationsAstricon 2010: Scaling Asterisk installations
Astricon 2010: Scaling Asterisk installations
 
Scaling Apache Pulsar to 10 PB/day
Scaling Apache Pulsar to 10 PB/dayScaling Apache Pulsar to 10 PB/day
Scaling Apache Pulsar to 10 PB/day
 
Scaling Apache Pulsar to 10 Petabytes/Day - Pulsar Summit NA 2021 Keynote
Scaling Apache Pulsar to 10 Petabytes/Day - Pulsar Summit NA 2021 KeynoteScaling Apache Pulsar to 10 Petabytes/Day - Pulsar Summit NA 2021 Keynote
Scaling Apache Pulsar to 10 Petabytes/Day - Pulsar Summit NA 2021 Keynote
 
Apache Pulsar @Splunk
Apache Pulsar @SplunkApache Pulsar @Splunk
Apache Pulsar @Splunk
 
WebRTC Summit November 2013 - WebRTC Interoperability (and why it is important)
WebRTC Summit November 2013 - WebRTC Interoperability (and why it is important)WebRTC Summit November 2013 - WebRTC Interoperability (and why it is important)
WebRTC Summit November 2013 - WebRTC Interoperability (and why it is important)
 

Más de Quobis

An hour with WebRTC FIC UDC
An hour with WebRTC FIC UDCAn hour with WebRTC FIC UDC
An hour with WebRTC FIC UDC
Quobis
 
QUOBIS corporate portfolio
QUOBIS corporate portfolioQUOBIS corporate portfolio
QUOBIS corporate portfolio
Quobis
 
Webinar WebRTC HTML5 (english)
Webinar WebRTC HTML5 (english)Webinar WebRTC HTML5 (english)
Webinar WebRTC HTML5 (english)
Quobis
 
Webinar WebRTC y HTML5 (spanish) - Quobis
Webinar WebRTC y HTML5 (spanish) - QuobisWebinar WebRTC y HTML5 (spanish) - Quobis
Webinar WebRTC y HTML5 (spanish) - Quobis
Quobis
 
Corporative Profile 2010
Corporative Profile 2010Corporative Profile 2010
Corporative Profile 2010
Quobis
 

Más de Quobis (10)

[REPORT] Comunicaciones Unificadas y Colaboración (UCC)
[REPORT] Comunicaciones Unificadas   y Colaboración (UCC)[REPORT] Comunicaciones Unificadas   y Colaboración (UCC)
[REPORT] Comunicaciones Unificadas y Colaboración (UCC)
 
VOIP2DAY 2015: "WebRTC security concerns, a real problem?"
VOIP2DAY 2015: "WebRTC security concerns, a real problem?"VOIP2DAY 2015: "WebRTC security concerns, a real problem?"
VOIP2DAY 2015: "WebRTC security concerns, a real problem?"
 
Security and identity management on WebRTC
Security and identity management on WebRTCSecurity and identity management on WebRTC
Security and identity management on WebRTC
 
An hour with WebRTC FIC UDC
An hour with WebRTC FIC UDCAn hour with WebRTC FIC UDC
An hour with WebRTC FIC UDC
 
QUOBIS corporate portfolio
QUOBIS corporate portfolioQUOBIS corporate portfolio
QUOBIS corporate portfolio
 
Webinar WebRTC HTML5 (english)
Webinar WebRTC HTML5 (english)Webinar WebRTC HTML5 (english)
Webinar WebRTC HTML5 (english)
 
Webinar WebRTC y HTML5 (spanish) - Quobis
Webinar WebRTC y HTML5 (spanish) - QuobisWebinar WebRTC y HTML5 (spanish) - Quobis
Webinar WebRTC y HTML5 (spanish) - Quobis
 
Perfil Quobis
Perfil QuobisPerfil Quobis
Perfil Quobis
 
Corporative Profile 2010
Corporative Profile 2010Corporative Profile 2010
Corporative Profile 2010
 
“Pode a Ibéria ser um mercado único para uma start-up?”
“Pode a Ibéria ser um mercado único para uma start-up?”“Pode a Ibéria ser um mercado único para uma start-up?”
“Pode a Ibéria ser um mercado único para uma start-up?”
 

Último

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Último (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Kamailio practice Quobis-University of Vigo Laboratory of Commutation 2012-2013

  • 1. Laboratorio de Conmutación Kamailio Lab 2012-13 (version 1.0) Sep. 11, 2012 Introduction As you know, Quobis Networks is collaborating in the extended practice of Laboratorio de Conmutación. This is our proposal for the Kamailio exercise. Honestly we can say it is not difficult at all but it requires you to know a few VoIP concepts and learn how to configure Kamailio. We recommend to read a SIP tutorial (see bibliography section) before starting the practice, you will get very valuable skills for the practice and your professional life. Why Kamailio? We have already presented the amazing features of Kamailio in previous classes. It is the most powerful SIP open-source softswitch used in real VoIP operators such as 1&1 and Freenet. In the bibliography section you can find links to good Kamailio documentation. Exercise. Welcome to the LC imaginary real-world. Last year, your colleagues had to start a new operator from scratch. In this practice you will have to increase the services and the capacity of your system by implementing new techniques. As you may know, the United Archipelago Republic is formed by more than 100 islands. However 99% of population enjoy their lives in the 4 biggest islands, namely, Big Banana, Big Treasure, Drake Island and Lost Island. The national telecommunication operator was acquired by a Galician capital risk fund in 2011. For operative reasons, it was decided to divide the operator in four smaller operator based
  • 2. in each of the main islands. Thanks to the global financial crisis, the Caribbean country is increasing its GDP and population. They are hiring new VoIP skills and you has been luckily selected to manage the addition of new functionalities to the SIP system of the island operator you choose. You will be posted there by your Telecom company, so pack your luggage and enjoy the experience. To implement the central softswitch infrastructure your colleagues had a limited budget but they got very valuable VoIP skills implementing the system on their own with the powerful Kamailio open-source software. Basic functionality. All groups must configure Kamailio so that it can do the following: 1. Register up to 100 users (except for team 2). 2. Establish calls between registered users. 3. Establish calls to each other’s groups. General considerations ● Users will be provisioned with their complete E.164 number (including the international prefix). ● Numbering length is up to system administrator however the length of the complete number must respect E.164 standard (never longer than 15 digits, http:/ /en.wikipedia.org/wiki/E.164). The recommended length is 5 digits after country prefix. For instance, Big Banana Island numeration would go from 00178800000 to 00178839999, more than enough for an island. ● Users registered on the same Kamailio, thus belonging to the same, island should be able to call each other without dialing the international prefix. ● Users from different islands must dial the complete number (including prefix) to call each other. ● As an additional exercise, user numbers can be associated to SIP URIs, for example, user 00178838888 can be bound to a SIP URI like this mahatma.gandhi@<kamailio IP>. If you feel capable, you can even substitute <kamailio IP> for a domain name: bigbanana.ur, bigtreausure.ur, drakeisland.ur, lostisland.ur. If you were wondering it, yes, ‘ur’ domain root is free: http://www.iana.org/domains/root/db/ ) Additional functionality.
  • 3. Additionally to the basic exercise, every group must chose one of the following options: Option 1: you will configure Kamailio for Big Banana Island. With a population of 10,000 native residents, they received last year 120,000 people during tourist season. Most of them comes from Europe and North America so most of the call traffic is international. We want to balance all the international traffic between a number of SIP providers. In the practice we’ll simulate just a couple of SIP providers. The SIP providers can be simulated with either Asterisk or sipp4. However, Kamailio will check every 30 seconds the availability of our SIP providers, to prevent us from sending calls to an out- of-service SIP provider. To avoid service disruptions Kamailio must implement peak load protection. To simulate calls you can use sipp. XML sipp configuration files will be provided by Quobis. The international prefix assigned for Big Banana island is: 001788[0-3] Option 2: you will configure Kamailio for Big Treasure Island. This Island it’s a Tax Haven so it has a lot of corporative customers. Last year we implemented TLS support to be able to encrypt the signaling exchanged between our customer terminals and Kamailio. This year, as a massive customer requirement we must support attended call transfer between our users. It should be supported by default by Kamailio, anyway we need to implement a demo scenario with sipp so that we can test the scenario easily in an automatic way. So you must implement the call transfer scenario in sipp from the traces that will be provided to you in due time. The international prefix assigned for Big Treasure Island is: 001788[4-5] Option 3: you will configure Kamailio for Drake Island. This island has been a pirate refuge for centuries. This tradition survives and nowadays this island has the world highest cracker rate per km2. Last year we used SIPvicious toolkit to test the security of our Kamailio server. Though simple, it’s quite powerful, hacker community skills improve day after day so you must use more powerful tools. That’s the reason why this year will use the Metasploit modules implemented by our colleague jesus.perez@quobis.com to simulate DoS, DDoS and extension brute-force attacks. Your challenge in the practice option will be implement as many attacks and security methods as you can. The security of this operator is in your hands. The international prefix assigned for Drake Island is: 001788[6-7] Option 4: you will configure Kamailio for Lost island. Last year your colleagues had to force GSM codec in every calls processed by this operator since they use WiMAX air links whose capacity dramatically decreases during hurricane and other extreme atmospheric phenomena. During this year hurricanes our bandwidth saving technique worked pretty well, but operator CEO says that we should offer a better audio quality when the sky is blue and the Sun is shining, which is almost all the time. To do so we’ll only force GSM codec in our calls when wind is over 50km/h or visibility is lower than 3km. To implement it you must get the weather conditions of our island from a public and free weather webservices server and act accordingly. Our recommendation is to call a script which checks the Globalweather service from http:// www.webservicex.net calling a Python script from Kamailio (a check every 5 minutes would be enough), to indicate the need of using GSM codec in a Kamailio pseudovariable which must be checked when processing every call. In short, the target is to modify SDPs to
  • 4. only allow GSM1 codec in every call when weather conditions are bad2, and leave the selected codec the rest of the time. The international prefix assigned for Drake Island is: 001788[8-9] Help! Take it easy, luckily you are not alone. Quobis is going to support you during the practice, we will offer at least one more lesson and provide e-mail support: university@quobis.com On the other side, Kamailio project is supported by a big community formed by developers, testers and users who are looking forward to helping you in your challenging project. You can visit the Kamailio web site and subscribe to Kamailio mailing lists. Note about using Kamailio mailing list: many people is going to invest their time in reading all the list mails everyday so, please, read carefully the documentation and try to find similar questions already answered in the list. If you don’t find the answer on your own, do not hesitate to send a mail to the list trying to write it in an understandable way, including all the progress you have done so far. What tools can I use? There are many tools which can be really useful to carry out this exercise. Below you can find some of them: ● wireshark: protocol analyzer. ● ngrep-sip: sip-adapted ngrep http://dev.sipdoc.net/projects/sip-stuff/wiki/Ngrep-SIPsipp ● jitsi: a Java softphone. ● SIPp and SIPvicous: check links included in bibliography section. Bibliography 1. SIP tutorial: http://www.iptel.org/files/sip_tutorial.pdf 2. Kamailio Knowledge Base: http://kb.asipto.com/kamailio:index 3. Kamailio Wiki: http://www.kamailio.org/dokuwiki/doku.php/start 4. SIPp: http://sipp.sourceforge.net/ 5. SIPvicious: http://blog.sipvicious.org/ 1In a production environment, the right choice would be normally G.729. The thing is that G.729 codec can only be used after paying a cannon, so open source softphones do not support it. However GSM is an open standard and it is implemented by most of the open source softphones. 2Obviously, Globalweather service will only offer weather from real real cities. For this practice will use the weather conditions from Nassau Airport (Bahamas).