Sample SIP Call Message Flow

Figure 7-7 illustrates a simple call flow with two users, one Marshal server, and one Redirect server.

The following text is a listing of the messages from the call flow illustrated in Figure 7-7. Many of the message headers are repeated throughout the transactions.

In this scenario, the calling phone is extension 5121 and the called phone is local 5120. There is only one Marshal server, 192.168.36.180:5060, and one Redirect server, 192.168.36.200:5060. For the sake of brevity, in this setup, the Marshal server acts as both ingress and egress proxy. You will notice some messages being sent to and from the same IP address. We have also used the informal term, call, instead of the proper term, dialog, to express the setup, media negotiation, establishment, and teardown of a conversation.

  1. An INVITE message is sent by a calling party (5121) to the VoIP service, intended for a called party (5120). The key fields in this message have been highlighted in bold text.

                      INVITE sip:5120@192.168.36.180 SIP/2.0
        Via: SIP/2.0/UDP 192.168.6.21:5060
        From: sip:5121@192.168.6.21
        To: <sip:5120@192.168.36.180>
        Call-ID: c2943000-e0563-2a1ce-2e323931@192.168.6.21
        CSeq: 10 INVITE
        Expires: 180
        User-Agent: Cisco IP Phone/ Rev. 1/ SIP enabled
        Accept: application/sdp
        Contact: sip:5121@192.168.6.21:5060
        Content-Type: application/sdp
        Content-Length: 219 v=0 o=CiscoSystemsSIP-IPPhone-UserAgent 16264 18299 IN IP4 192.168.6.21 s=SIP Call ...

Get Practical VoIP Using VOCAL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.