A quick introduction to Kamailio - the leading Open Source SIP server (based on OpenSER and SER). Kamailio is quite different than Asterisk, FreeSwitch and many other VoIP platforms - why is that and how do you start getting your head around Kamailio?
Kamailio is the leading Open Source SIP Server - a SIP proxy, registrar, location server, presence server, IMS server and much more. Find out more by viewing this quick presentation! (Updated June 2014)
Scaling FreeSWITCH to high cps and number of concurrent calls.
You'll learn about how the FreeSWITCH internals work and how to tweak them to improve different call scenarios. You'll learn about OS and environment changes that can help to remove bottlenecks and ensure audio quality.
Kamailio combined with Asterisk creates and incredibly robust and durable VoIP framework. With scalability and security, adding Kamailio to an asterisk deployment makes sense and saves money.
Kamailio is the leading Open Source SIP Server - a SIP proxy, registrar, location server, presence server, IMS server and much more. Find out more by viewing this quick presentation! (Updated June 2014)
Scaling FreeSWITCH to high cps and number of concurrent calls.
You'll learn about how the FreeSWITCH internals work and how to tweak them to improve different call scenarios. You'll learn about OS and environment changes that can help to remove bottlenecks and ensure audio quality.
Kamailio combined with Asterisk creates and incredibly robust and durable VoIP framework. With scalability and security, adding Kamailio to an asterisk deployment makes sense and saves money.
Presentation done at Kamailio World 2013, Berlin, Germany - several options for scalability of SIP routing with Kamailio, from configuration file tricks to stateless and stateful load balancing with dispatcher module.
Cluecon 2015
Use of external controller applications to fetch the next routes and let Kamailio handle the SIP layer.
Example with Node.js external application and evapi+rtjson modules in Kamailio
Introduction to Kamailio (TADSummit 2020 Asia)Fred Posner
Quick introduction to Kamailio, the open source SIP server (https://www.kamailio.org).
Kamailio® (successor of former OpenSER and SER) is an Open Source SIP Server released under GPL, able to handle thousands of call setups per second. Kamailio can be used to build large platforms for VoIP and realtime communications – presence, WebRTC, Instant messaging and other applications. Moreover, it can be easily used for scaling up SIP-to-PSTN gateways, PBX systems or media servers like Asterisk™, FreeSWITCH™ or SEMS.
Since the dawn of the telephone operator switchboard, call routing has challenged network designers and managers with complex routing algorithms. While the technology has changed, the need remains the same.
Routing SIP traffic is one of the key functions of a Session Border Controller, directing traffic and working around network outages.
Continuing on the "How To" series of installation and provisioning sessions, this 30-minute educational webinar offers an opportunity to learn the fundamental and advanced SIP routing functions found in FreeSBC.
Topics covered in this session:
SIP Routing Architectures and Challenges
Basic SIP Routing Configuration
Dealing with Outages
Advanced SIP Routing Tables
Real-world Use Cases
Your Questions
Who would find most valuable:
Network architects at service providers and enterprises, networking consultants, analysts and decision-makers involved in acquiring network technology
Talk given at ClueCon 2016 that discusses FreeSWITCH and its place in a microservices architecture. Covers a specific deployment case using Docker and Adhearsion, along with certain features that make FreeSWITCH a model use-case for such a technology stack.
Considerable improvements can be achieved by automating the integration of Kamailio-based projects: automated builds, tests and deployments save time and increase reliability. This presentation focuses on common practices to automate the build of Kamailio (and RTPEngine) on various distributions and deploy them, together with their configuration, on testing and production environments.
Docker plays an important role in providing flexible, clean building environments and keep the process reproducible. We’ll see how Jenkins can orchestrate the builds with Docker slaves, and perform the deployments with a combination of platform-specific packages, Fabric, Puppet and Ansible.
Using Asterisk and Kamailio for Reliable, Scalable and Secure Communication S...Fred Posner
Presentation from AsteriskWorld 2017 at ITEXPO. Discussion of how I started with Asterisk and Kamailio as well as how to build Reliability, Scalability, and Security into your telephony platform.
Presentation done at Astricon 2013, Atlanta, USA - a look at Kamailio and SIP proxy server concept from the perspective of a media server and PBX such as Asterisk
Presentation done at Kamailio World 2013, Berlin, Germany - several options for scalability of SIP routing with Kamailio, from configuration file tricks to stateless and stateful load balancing with dispatcher module.
Cluecon 2015
Use of external controller applications to fetch the next routes and let Kamailio handle the SIP layer.
Example with Node.js external application and evapi+rtjson modules in Kamailio
Introduction to Kamailio (TADSummit 2020 Asia)Fred Posner
Quick introduction to Kamailio, the open source SIP server (https://www.kamailio.org).
Kamailio® (successor of former OpenSER and SER) is an Open Source SIP Server released under GPL, able to handle thousands of call setups per second. Kamailio can be used to build large platforms for VoIP and realtime communications – presence, WebRTC, Instant messaging and other applications. Moreover, it can be easily used for scaling up SIP-to-PSTN gateways, PBX systems or media servers like Asterisk™, FreeSWITCH™ or SEMS.
Since the dawn of the telephone operator switchboard, call routing has challenged network designers and managers with complex routing algorithms. While the technology has changed, the need remains the same.
Routing SIP traffic is one of the key functions of a Session Border Controller, directing traffic and working around network outages.
Continuing on the "How To" series of installation and provisioning sessions, this 30-minute educational webinar offers an opportunity to learn the fundamental and advanced SIP routing functions found in FreeSBC.
Topics covered in this session:
SIP Routing Architectures and Challenges
Basic SIP Routing Configuration
Dealing with Outages
Advanced SIP Routing Tables
Real-world Use Cases
Your Questions
Who would find most valuable:
Network architects at service providers and enterprises, networking consultants, analysts and decision-makers involved in acquiring network technology
Talk given at ClueCon 2016 that discusses FreeSWITCH and its place in a microservices architecture. Covers a specific deployment case using Docker and Adhearsion, along with certain features that make FreeSWITCH a model use-case for such a technology stack.
Considerable improvements can be achieved by automating the integration of Kamailio-based projects: automated builds, tests and deployments save time and increase reliability. This presentation focuses on common practices to automate the build of Kamailio (and RTPEngine) on various distributions and deploy them, together with their configuration, on testing and production environments.
Docker plays an important role in providing flexible, clean building environments and keep the process reproducible. We’ll see how Jenkins can orchestrate the builds with Docker slaves, and perform the deployments with a combination of platform-specific packages, Fabric, Puppet and Ansible.
Using Asterisk and Kamailio for Reliable, Scalable and Secure Communication S...Fred Posner
Presentation from AsteriskWorld 2017 at ITEXPO. Discussion of how I started with Asterisk and Kamailio as well as how to build Reliability, Scalability, and Security into your telephony platform.
Presentation done at Astricon 2013, Atlanta, USA - a look at Kamailio and SIP proxy server concept from the perspective of a media server and PBX such as Asterisk
Asterisk is an Open Source PBX - but how does it support larger installations? Can you scale it up to thousands of users, with hundreds of simultaneous calls? What about failover, backups and the famous blinking lamps? Olle Johansson goes through various models and describes where some of his current projects with strange names - Pinefrog, Pinana, Pinetree and Bufo fits into this picture.
Introduction to WebRTC used in the Stockholm WebRTC Meetup February 16th 2017. Talks about the underlying architecture - RTP, Turn, STUN, Ice and the world of changing IP networks
Kamailio 5.0 allows writing full routing logic in Lua scripting language, opening the door for easy integration with external services and increasing the flexibility of optimizing SIP routing.
KamailioWorld 2014: Kamailio, IMS and WebRTCCarsten Bock
This is the presentation, i held at KamailioWorld 2014 in April.
We are looking at Kamailio, IMS and WebRTC and how everything fits together.
In addition, we do a little market-research on these topics.
Workshop for metal work and General trading PD.Baja Mulia SejahteraEchov Deep
PD.Baja Mulia Sejahtera
Workshop for metal work and General Trading (bubut,las,moulding,construction,etc)
our workshop in Yogyakarta City,
West-Central-East Java Area
Experiences while deploying IMS and the benefits brought by relying on Kamailio and open source for building flexible IMS platforms. Not many took the challenges of developing IMS extensions, even fewer could keep it going, this talk comes to present that IMS implementation is mature, with key deployments world wide, at a moment when this technology has to become the core of 4G+ networks.
2600Hz - Tuning Kazoo to 10,000 Handsets - KazooCon 20152600Hz
People love to talk about scale. Some vendors pitch that their systems easily support 100,000 simultaneous calls, or 500 calls per second, etc. The reality is, in the real world, people’s behaviors vary and the feature sets they use can cut these numbers down quickly. For example, ask that same vendor claiming 100,000 simultaneous calls if it can be done while call recording, call statistics and other features are turned on at the same time, and you’ll usually get a very different, cautious, qualified response.
In this presentation, we'll show you how to set up your infrastructure to support 100,000 simultaneous calls.
SIP and DNS - federation, failover, load balancing and moreOlle E Johansson
SIP use DNS to find a server for a specific URI, like sip:alice@example.com. With DNS a SIP service can provide failover, load balancing and much more. SIP without DNS is a broken solution. SIP and DNS rocks!
Security and Real-time Communications – a maze of twisty little passages, tha...Alan Quayle
Security and Real-time Communications – a maze of twisty little passages, that all look alike.
Olle E. Johansson, Consultant in network security and real-time communication – PKI, webrtc, SIP , XMPP. Kamailio and Asterisk expert.
Olle has worked with Internet and TCP/IP networking for almost 30 years and is a developer, project manager, documentation writer, trainer and a secret lover of X.509 and PKI. Olle is active in the IETF and has co-authored an RFC and contributed to many. He has spoken at many conferences and trained many, many Asterisk and Kamailio admins. Olle co-founded Astricon, the Asterisk conference. Outside of work he is an oral storyteller and spends a lot of time in his garden back home in Sweden.
After almost 20 years of working with real-time communication: SIP, XMPP, WebRTC, and other protocols and platforms. I haven’t built a standard compliant secure platform once with strong encryption and identity handling. I’ve been close, but no cigar.
Looking at the standard documents for SIP, there are a lot of missing pieces and most of the Open Source implementations are missing large amounts of code to implement both existing security specifications as well as the missing pieces. It’s a mess, and that doesn’t help those who are trying to implement secure real-time communications. We can do better and hopefully we will do better.
While WebRTC mandates encrypted communication channels, it doesn’t mean that all platforms are secure. Also there are as many definitions of “secure platform” as people implementing them.
There are hooks and new solutions to build from, but few implementers get the requirements, time and resources to do this.
Let’s discuss what the issues are, where privacy plays in, the missing support in the standard documents and where to go next.
We will also talk about why we think that the requirements for security are missing in almost every project and how we can change that.
Keywords:
– #MoreCrypto: PKI and TLS
– Oauth2 and OpenID connect, where do they fit in?
– SIP, The session initiation protocol
– WebRTC
– SRTP, Secure RealTime Protocol
Time to get serious about realtime communicationOlle E Johansson
My talk for ElastixWorld 2013 in Mexico City, Voip2day in Madrid and Astricon 10 in Atlanta:
I list four to-do's for everyone working with realtime communication as we move away from telephony over IP into the world of Internet-based realtime communication. I believe that here is a trust gap between what users expect us to deliver, but don't ask for, and what we actually deliver. Let's change that together!
The presentation got the "Best speaker" award at Voip2day 2013.
Reboot the Open Realtime Revolution - #MoreCrypto (Fall 2014)Olle E Johansson
My talk at Voip2day 2014 in Madrid, Spain and Elastix World 2014 in Santiago, Chile. Asterisk is now 15 years old and the revolution has faded away and is now part of regular business. It's time to restart and look forward, build new things and include security by default. Security needs to be in focus for everyone in VoIP and realtime communication during the coming year.
A presentation about new functionality in SIP that is really needed for Hosted PBX services, SIP on mobile phones and more situations. #SIP #Kamailio #Asterisk #TLS #MoreCrypto
A video with this presentation is available on YouTube at
https://www.youtube.com/watch?v=uqFNlqB_Ssw
Speaker: Olle Johansson
"SIP 2.0 was published as an RFC in 2002 and started a revolution in the telecom industry. The big move away from traditional technologies is still happening and things are moving fast. But 99% of the implementations of SIP are still focused on ISDN-over-IP, something that is very frustrating to many that believe that there are much more functionality in SIP. WebRTC is about to become standardized and we already see some early implementations. How will this affect the SIP industry and what should be in focus for the coming year? Olle delivers his thoughts, ideas and will give some clear instructions about how to move forward."
ElastixWorld
Santiago de Chile
October 2014
CORD aims to bring the data center economy and cloud agility to the service provider networks and is an end-to-end solution for the next generation central offices. CORD leverages three related technologies: SDN, NFV, and Cloud and builds on merchant silicon, white boxes and open-source platforms such as ONOS, OpenStack, and XOS. ON.Lab, AT&T and partners demonstrated CORD POC at ONS2015 and are now building a CORD POD for a market trial.
The CORD thought leaders and developers introduce CORD, explain the motivation from a service provider perspective, discuss CORD architecture, related services and key use cases including vOLT, vSG and vRouter.
Topics of Discussion
>>> CORD Introduction
>>> Motivation from a Service Provider Perspective
>>> CORD Architecture
>>> Usecases: vOLT, vSG and vRouter
>>> CORD Future Plans
A presentation that tries to set an IPv6 agenda for the SIP community. VoIP and IPv6 is a natural match. If we want unified communication to be truly global and unified - we need to build solutions on IPv6 and not Ipv4.
Oracle Cloud is an integrated, flexible and robust platform based in standard technologies to help development teams to develop better applications faster and cheaper.
Brief introduction into SIP protocol, how it works, common problems to solve. Tech. details about handshake, SIP Trunks and SIP trunking. Market research.
Inspired by my work on understanding the effects of the EU cyber resilience act, I made this presentation on vulnerability handling - SBOM, Vex, CVE, CVSS, CWE and more.
Introduction to the proposed EU cyber resilience act (CRA)Olle E Johansson
A short introduction to the proposed EU Cyber Resilience Act. It's a large document to parse, so please don't take my words as a truth, just indications of what will come. The CRA will impact everyone that distributes software and connected devices on the EU market, so it's important to stay up to date with this regulation.
Januscon 2019: Slides from my short talk about the need for a federation solution to connect all isolated WebRTC and SIP islands out there. Sorry for the lack of text, hopefully it will be available in a streamed version soon.
Photos (C) Olle E. Johansson
A talk about me discovering new architectures, new ways of building scalable realtime platforms #SIP #WebRTC #Kamailio #MQTT #NODERED
Watch it live at https://www.youtube.com/watch?v=BbfUXUWtxIg
A presentation for Kamailio World 2017 in Berlin: How Open Standards and Open Source affect national public radio broadcast. My personal view and opinions. Also, some information about Project IrisBroadcast.
Realtime communication over a dual stack networkOlle E Johansson
Fosdem 2017: A short talk about dual stack (IPv4 and IPv6) issues when using SIP, WebRTC, XMPP and other realtime platforms in a dual stack world - where both client and server is connecting to the new and the old Internet.
Side note: Uploads to slide share doesn't work on IPv6-only networks.
My talk at Voip2day 2016 in Madrid (organised by Avanzada 7 in Malaga).
This talks cover recent trends in realtime communication, from VoIP to WebRTC and Internet of Things
A presentation covering work that needs to happen. We jokingly came up with a non-existing organisation that maintains a reference profile for SIP. While the organisation is just a joke, the work is quite serious.
2015 update: SIP and IPv6 issues - staying Happy in SIPOlle E Johansson
What's the state of SIP and IPv6?
- An update I gave at the Netnod spring Meeting 2015.
Nothing much is happening, despite the fact that we have proven real issues with dual stacks in SIP.
A presentation about how we can make the Internet hard to monitor - how we can and should encrypt more communication. This version includes a presentation of the TLS protocol.
Changes in 2.2: Added quotes from Viktor Dukhovni's IETF RFC 7435 about Opportunistic Security
We need to protect our Internet communication - from basic web surfing to IP telephony, E-mail and Internet of things. This presentation gives some background and introduces one of the core security protocols - TLS, Transport Layer Security. This presentation is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
Update: See http://www.slideshare.net/oej/morecrypto-with-tis-version-20
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Why is Kamailio so different? An introduction.
1. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Why is Kamailio so
different?
…than FreeSwitch, Asterisk and other PBXs
oej@edvina.net | 2015-02-07 | v1.1
2. Ⓒ 2005-2014 Edvina AB, Sollentuna, Sweden
All rights reserved.
Because it’s
not a PBX.
3. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
It’s a SIP router
SIP Request
SIP Response
SIP
The main decision you have to do
when configuring Kamailio
is whether to forward a SIP message,
or respond to a request.
4. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Most PBX’s
doesn't work like that
SIP Call PBX
In these systems, you route calls.
The SIP messaging has been programmed
by a developer. It’s not as flexible as Kamailio.
Nor is it as dangerous…
5. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Most PBX’s
handle media
SIP Call
PBX
Kamailio by default does not handle media.
We have 3rd party products for media
NAT traversal assistance.
RTP media
6. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
In Kamailio, we handle SIP
messaging.
REGISTER
SIP
PRACK
INFO
MESSAGE
SUBSCRIBE
NOTIFY
ACK
INVITE
You need to
understand all of SIP
and do the right thing
in every situation.
7. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
In Kamailio we handle SIP
transactions
SIP request
SIP
SIP request
SIP request
SIP request
SIP response
SIP response
SIP response
SIP response
This is not a call - but a request and
a response. Kamailio helps to find the right destination.
8. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Some transactions belong
together
SIP request
SIP response
SIP request
SIP response
SIP request
SIP response
This is what we in SIP
call a dialog.Typically a call or a
subscription.
Kamailio by
default does not bother
with dialogs. In your script, you
need to.
9. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Simplified routing script
request_route()
{
xlog(“SIP request: $rm to $run”);
!
if (has_to_tag()) {
route(WITHINDIALOG);
exit;
}
!
if ($fd == MYSELF) {
route(AUTH);
}
!
if (!lookup()) {
sl_send_reply(“404”, “Not found”);
exit;
}
!
t_relay();
}
The request_route starts with an incoming
SIP request. Log what it is!
Find out if it’s in a dialog.
Find out if it’s a known user
- authenticate -
Find out if it’s to a known SIP address
Forward the message
10. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
# record routing for dialog forming reque
are routed)
# - remove preloaded route headers
remove_hf("Route");
if (is_method("INVITE|SUBSCRIBE"))
record_route();
!
# account only INVITEs
if (is_method("INVITE")) {
setflag(FLT_ACC); # do accounting
} !
# dispatch requests to foreign domains
route(SIPOUT);
!
### requests for my local domains
!
# handle registrations
route(REGISTRAR);
!
if ($rU==$null) { # request with no User
sl_send_rep
Yes, you write code.
You configure Kamailio by writing
programming logic.
You write in Kamailio’s own
script language
Kamailio modules extend
the language.
The core alone is actually pretty
stupid. But very powerful.
11. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Good to know
Like in many script languages there are
many ways to accomplish the same
result.
Many modules are overlapping.
That’s fine.
12. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Where’s the CLI?
Kamailio doesn’t have a command
line interface where you can see
what’s going on.
We have utilities that communicate
with a running server.
In Kamailio 4.2 we got an event API
module. We still don’t know what will
happen with that.
KAMCMD
KAMCTL
13. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
A huge selection of modules
Kamailio has over 100
modules. It’s hard to find the right
set for your need.
Start with the default
configuration and build from
there.
14. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Transaction handling.
Some basic modules
TM & TMX
Stateless handling.
SL
Record Routing
RR
Authentication
AUTH *
Location database
USRLOC
SIP registration
REGISTRAR
Smart routing
DIALPLAN
In-memory hash tables
HTABLE
Pseudovariables
PV
Logging to syslog
XLOG
Denial-of-service attack
prevention
PIKE
Accounting
ACC
APIs
CTL, FIFO
Signalling security
TLS
NAT traversal support
NATHELPER
15. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Modules can depend
on each other
REGISTRAR
USRLOC
The REGISTRAR handles
registrations of devices.
The USRLOC module stores the
registrations and handles lookups.
Dependencies are well documented in each module’s
documentation page.
16. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
The core
MEMORY HANDLING
CONFIGURATION
MANAGEMENT
NETWORK TRAFFIC
PROCESS MANAGEMENT
STATISTICS
…much more
The core starts Kamailio, loads
modules and handles a lot of
generic issues.
17. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Kamailio and databases
DB
A standardised data interface.
Used by many modules.
NDB
For new databases, NoSQL.
Not used by modules.
db_mysql
db_text
db_pgsql
ndb_redis
ndb_cassandra
db_oracle
db_sqlite Please check the list of modules for
all available database modules.
ndb_mongodb
18. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
SIP authentication
AUTH
AUTH_DB
Database-driven
authentication
Anything
(using variables)
Fetching over HTTP
RADIUS or LDAP
Your own application.
SIP MD5 digest authentication
can be done in multiple ways.
19. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Build your own data model,
don’t just copy.
Alias phone number
Alias phone number
Auth account
desk phone
Auth account
soft phone
Auth account
cell phone
Address of record, THE
SIP address
Don’t assume one SIP account, one
phone number, one set of credentials
20. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Base your model
on existing data
Alias phone numbers
Auth accounts
The SIP server is just one server in your
infrastructure.
LDAP account
Address of record, THE
SIP address
Name, address etc
21. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
What? No RELOAD?
There’s no overall RELOAD
command.
Some modules have a
reload command.
Some modules only operate
on database.
22. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Where to start.
Learn SIP in detail.
Read the core cookbook.
Browse through the example
configuration and make sure you
understand it.
1.
2.
3.
Now start building,
add modules as you need them.
4.
23. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Getting help.
Use the mailing list, the IRC
channel or the G+ forum.
Please do not mail developers
directly. Use public channels.
Consultants that can help you are
available on the web site.
Trainings are regularly held, both
basic and advanced.
24. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Common mistakes:
Call routing
Carrierroute
LCR
The carrierroute module is not
the only way to do carrier routing. It’s
just one way, maybe it doesn’t fit your
model.
The LCR module is not the only
module for least cost routing. Discover
all the options and select the one that
fits your business.
25. Ⓒ 2015 Edvina AB, Sollentuna, Sweden
All rights reserved.
Common mistakes:
Call states
Dialog
The DIALOG module adds call
states. Don’t add it by default, you may
not need it.
Having call states makes failover
harder. You may have perfectly good call
states in other servers in your
network.
Adding call states use memory and
makes scalability not impossibly, but
much harder.
26. Ⓒ 2005-2014 Edvina AB, Sollentuna, Sweden
All rights reserved.
Good luck,
Kamailian!
www.kamailio.org
27. EDVINATRAINING CLASSES
• Kamailio from start
• The SIP Protocol
• RTP, RTCP and QoS
• SIP Security
• Scalability
• Many Kamailio labs
CUSTOM
INHOUSE
TRAININGS
• SIP,Asterisk, Kamailio
and much more
• Done at your site,
customized for your
project
• Cost effective when
more than four
students
Find more details at http://edvina.net
• Advanced Kamailio
• SIP trunking
• NAT handling
• WebRTC/SIP
• Testing, debugging
• Scalability
• Many Kamailio labs