Minutes 2026-11-19

Voice over IP by Tiristan

What is it?

    Collection of various protocols

    Designed to replace analog phone systems

Protocols:

    Session initiaton protocol (SIP)

        Widely used

        Only old businesses don't use it

    Skinny client control protocol (SCCP)

        Old, dying out

    Real time protocol (RTP)

        Used with SCCP and SIP

        Transmits voice data

SIP

    Open source

    RFC 3261

    TCP/UDP

    Supports TLS encryption

    Doesn't transmit voice, just establishes connection

        Call control, adding phones

        Texting?

    SIP packet capture

        Invite (Phone initiating call)

        Has source and destination phone numbers/IPs

SCCP

    Developed by Selsius systems, now owned by Cisco

    Cisco proprietary

    TCP only

    Also supports TLS

    Only manages calls and doesn't do audio

    Mostly dead, not supported anymore

RTP

    Open source, RFC 1880

    Audio stream of the call

    Only UDP (faster communication)

    Can be secured as well

    Packet capture

        Source+Destination

        Codec (G.711 is common)

Major problems

    Jitter

        UDP packets aren't verified that they are delivered

        Some packets drop

        Why not TCP? It makes sure packets are delivered and retransmitted

            Slow

        Acceptable is 30ms which TCP can't keep up

    Latency

        Analog lines typically had <10ms latency

        Voip has a lot

        Runs on internet protocols and server processing adds latency

        150ms acceptable but may be difficult to manage

    How to fix it?

        QoS (Quality of Service, network admins hate it!)

            What is it?

            Rules that define how traffic is processed

            MTU might use it to limit bandwidth

            Defines traffic priority

            Use it to give Voip better priority

                Lets data skip the queue ahead of other traffic

        Increase processing power

        More bandwidth to endpoints

    Encryption

        SIP, SCCP, and RTP are all unencrypted by default

        You can just listen in easily by tapping into the network

            Wireshark can build and replay audio

        How to fix

            Use TLS and get SIPS or Secure SCCP/sRTP

                Hides numbers you're calling to/from

            sRTP prevents reconstruction of audio stream from captured packets

    How do you fax?

        Most fax machines need analog phone lines

        Needs more reliable stream than can normally supply VoIP

            Lost packets can cause the fax to fail

        Fix

            ATA (Analog telephone adapter)

                Lets you connect analog phones to VoIP network

                    Also PA systems

            T.38 protocol

                Designed for faxing with error checking

How to use VoIP

    Businesses usually have a private branch exchange (PBX)

        Acts as an internal telephone provider

        Can assign internal extensions, 4 digits are typical

    Popular PBX systems

        Cisco UCM

        FreePBX

        Mitel IP PBX

        3CX

        Ring central

        Tradeoffs between cost and reliability

External calling

    PBX can call inside but how do we get out?

    SIP Trunk

        These uses SIP and RDP

        Similar to how ISP works, gives you a link between their's and your PBX

        Most common way

    PRI lines

        T1 network line to telecom provider

        Direct copper line, similar to old telephone system

            Carries digital data

        23 calls at once, large business may need multiple

        Being phased out in favor of SIP trunks

        1.544mbps

    Hard phones

        Physical phones that work over Ethernet/PoE and PBX systems

    Soft phones

        Virtual, usually a desktop or phone app

        Connects to PBX same way as a hard phone

        Convenient for remote work where an employee needs a company number on their mobile phone

Questions?

    Can PRI lines be on connections other than T1?

        Not that we know of.

    Mandatory reporters discussion

        Lame!