15. - SIP and the PSTN

 

Here our SIP phone dial the number of a PSTN device, the proxy will send the invite onto the SIP/PSTN Gateway that will next sent the proper setup message to the PSTN switch then to the telephone.

A PRACK 183 inform the SIP phone of the progress of the call setup and setup an Early Media (RTP)

Once the PSTN phone start ringing the alerting 180 Ringing messages are sent back to our SIP phone along with the 200 OK

Our SIP phone will response with an ACK then the media will start to flow, it is up to the SIP/PSTN gateway to convert the media from RTP to TDM and viceversa

image.png

In more detail 01216896815, the SIP proxy uses the location services and determines the number is on the PSTN it then passes the invite to the SIP/PSTN Gateway which thenn by the PSTN Switch goes to Grahams phone. The detail on the next image shows the INVITE along with the contact details and SDP information

image.png

Some other sample SIP Codes re: SIP to PSTN call setup attemps are 

Here is an example of a PSTN to SIP Call Flow

image.png

Early Media

To overcome a few problems that arise due to the two different systems such as SIP and the PSTN trying to work together, a concept called 'Early Media' has been introduced

Early media is not required on standard PSTN calls as when a number is dialed a media channel is established so that the caller can hear the ringing tone of the remote device, This also gives companies the opportunity to replace ringing media with corporate messages or other instructions for the caller before they get to speak to a real person.

Clipping is a problem where if a person using a PSTN phone answer their phoene adn starts talking straight away without Early Media the SIP phone that is calling them will miss the first part of the conversation as it hasn't yet received a 200 ok message to enable it to setup the RTP media path.

Early media also allows Busy Tone and other announcements to be played to the caller even though the called phone has not been picked up.

image.png

Early Offer / Delayed Offer

With Early offer the invite sends the SDP to being voice inmediately 

image.png

With delayed  offer Invite goes without SDP allowing the other end select a codec to use, if available it will reply with an ACK SDP to begin media.

image.png

SIP Bridging or SIP-T is a framework that can enable SIP networks to carry legacy telephone signals across an IP based network to another legacy network, This would have a dramatic effect on long distance call charges which is great for end users but of course there are technical issues that need to be addressed.

The legacy SS7 ISUP messages have to be interrogated by the SIP/PSTN gateway and then the information that will help SIP proxies to route the SIP messages is built into the SIP header, while othert ISUP information added as a MIME message body, to ensure that the body is closed to 'unwanted' parties snooping on the network it can be encrypted and this is discussed in the security module course.

SIP INFO is another SIP-T approach or method that is used for in-call ISUP signaling across an IP network.

In essence SIP-T must provide translation beteen protocols and providee feature transparency across PSTN to SIP to PSTN interconnections.

 

image.png

ISUP and SIP messages

image.png

ISDN User part (ISUP) to SIP codes

 

image.png

Here is an example of a PSTN to PSTN via SIP

image.png

 

ISUP Encapsulation / SDP also known as SIP Bridging

If this is all that a client requires, then all of the ISUP information can be held in the body of the SIP message and the details such as To: From: Contact, etc. never changes as these just relates to the SIP gateway addresses, an example of the SDP portion of the SIP message (mime/isup) is below, This way any ISUP information that cannot be mapped to SIP will be retained and in this case, secured as well.

image.png

 

image.png

 

SIP and DTMF

As well as DTMF Dialling tones there are a lot more tonees and events that need to be considered when carrying them across a SIP/VoIP network

DTMF Tones

image.png

image.png

Standard subscriber line tones

image.png

Country specific subscriber line tones

image.png

Trunk Events

image.png

 

Different types of DTMF


DTMF RFC 2833 example

image.png

 

SIP INFO DTMF example

image.png

 

 

Summary

 


Revision #4
Created 6 May 2023 23:40:52 by Cesar Gzz
Updated 7 May 2023 02:21:38 by Cesar Gzz