Example: SIP Call PSTN through the gateway

xiaoxiao2021-03-06  112

Sip to Pstn Call Through Gateway

In the example shown in, the calling SIP phone places a telephone call to the PSTN through a PSTN gateway. The SIP phone collects the dialed digits and puts them into a SIP URI used in the Request-URI and the To header. The caller may have dialed either the globalized phone number 1-202-555-1313 or they may have just dialed a local number 555-1313, and the SIP phone added the assumed country code and area code to produce the globalized URI. The SIP phone has been preconfigured with the IP address of the PSTN gateway, so it is able to send the INVITE directly to gw.carrier.com. The gateway initiates the call into the PSTN by selecting an SS7 ISUP trunk to the next telephone switch in the PSTN. The dialed digits from the INVITE are mapped into the ISUP IAM. The ISUP Address Complete Message (ACM) is sent back by the PSTN to indicate that the trunk has been seized. Progress tones are generated in the one-way audio path established in the PSTN . In this example, Ring Tone is generated by t he far end telephone switch. The gateway maps the ACM to the 183 Session Progress response containing SDP indicating the RTP port that the gateway will bridge the audio from the PSTN. Upon reception of the 183, the caller's UAC begins receiving the RTP packets sent from ...............

Figure 10.3: Sip to pstn call through gateway.

The call completes when the called party answers the telephone, which causes the telephone switch to send an Answer Message (ANM) to the gateway. The gateway then cuts the PSTN audio connection through in both directions and sends a 200 OK response to the caller. Because the RTP media path is already established, the gateway echoes the SDP in the 183 but causes no changes to the RTP connection. The UAC sends an ACK to complete the SIP signaling exchange. Because there is no equivalent message in ISUP, the gateway absorbs the ACK.The call terminates when the caller sends the BYE to the gateway. The gateway maps the BYE to the ISUP Release message or REL. The gateway sends the 200 OK to the BYE and receives a RLC from the PSTN. These two messages have NO Dependency On Each Other; IF, for Some Reason, Either The Sip or PSTN Network Does NOT RESPERLY, ONE DOS NOT WANT RESOURES HELD IN The Other Network as a result.

M1 INVITE SIP: 12025551313@gw.carrier.com; user = phone SIP / 2.0

VIA: SIP / 2.0 / UDP 8.19.19.06:5060; branch=z9hg4bk4545

Max-Forwards: 70

From: ; tag = 12

TO:

Call-ID: 49235243082018498@television.tv

CSEQ: 1 Invite

Supported: 100rel

Contact: Sip: Filo.farnsworth@studio.television.tv

Content-Type: Application / SDP

Content-Length: 154

V = 0

O = ff 2890844535 2890844535 in ip4 8.19.19.06

S = -

T = 0 0

C = in ip4 8.19.19.06

M = Audio 5004 RTP / AVP 0 8 ↞two alternative codecs,

A = = rtpmap: 0 PCMU / 8000 PCM μ-Law OR

A = RTPMAP: 8 PCMA / 8000 PCM A-LAW

M2 IAMCDPN = 202-555-1313, NPI = E.164,

Noa = national ↞GATEWAY MAPS TELEPHONE

INTO CALLED PARTY NUMBER

M3 ACM

M4 SIP / 2.0 183 Session Progress

VIA: SIP / 2.0 / UDP 8.19.19.06:5060; branch=z9hg4bk4545

From: ; tag = 12

TO: < 12025551313@gw.carrier.com; user = phone>; tag = 37 ↞tag and brackets

Call-ID: 49235243082018498@television.tv

CSEQ: 1 Invite

RSEQ: 08071

Contact:

Content-Type: Application / SDP

Content-Length: 139

V = 0

O = Port1723 2890844535 2890844535 in IP4 50.60.70.80

S = -

T = 0 0

C = in IP4 50.60.70.80

M = Audio 62002 RTP / AVP 0 ↞gateway selects μ-law codec

a = rtpmap: 0 pcmu / 8000

M5 PRACK SIP: 50.60.70.80 SIP / 2.0

VIA: SIP / 2.0 / UDP 8.19.19.06:5060; branch=z9hg4bk454

Max-Forwards: 70

From: ; tag = 37

TO: ; tag = 12

Call-ID: 49235243082018498@television.tv

CSEQ: 2 PRACK

Contact: Sip: Filo.farnsworth@studio.television.tv

RACK: 08071 1 INVITE

Content-Length: 0

M6 SIP / 2.0 200 OK

VIA: SIP / 2.0 / UDP 8.19.19.06:5060; branch=z9hg4bk454

From: ; tag = 37

TO: ; tag = 12

Call-ID: 49235243082018498@television.tv

CSEQ: 2 PRACK

M7 ANM

M8 SIP / 2.0 200 OK

VIA: SIP / 2.0 / UDP 8.19.19.06:5060; branch=z9hg4bk4545

From: ; tag = 12

TO: < 12025551313@gw.carrier.com; user = phone>; tag = 37

Call-ID: 49235243082018498@television.tvcseq: 1 Invite

Contact:

Content-Type: Application / SDP

Content-Length: 139

V = 0

O = Port1723 2890844535 2890844535 in IP4 50.60.70.80

S = -

T = 0 0

C = in IP4 50.60.70.80

M = Audio 62002 RTP / AVP 0

a = rtpmap: 0 pcmu / 8000

M9 ACK SIP: 50.60.70.80 SIP / 2.0

VIA: SIP / 2.0 / UDP 8.19.19.06:5060; branch=z9hg4bkfgrw

Max-Forwards: 70

From: ; tag = 12

TO: < 12025551313@gw.carrier.com; user = phone>; tag = 37

Call-ID: 49235243082018498@television.tv

CSEQ: 1 ACK

M10 BYE SIP: 50.60.70.80 SIP / 2.0

VIA: SIP / 2.0 / UDP 8.19.19.06:5060; Branch=z9hg4bk321

Max-Forwards: 70

From: ; tag = 12

TO: < 12025551313@gw.carrier.com; user = phone>; tag = 37

Call-ID: 49235243082018498@television.tv

CSEQ: 3 BYE ↞CSEQ Incremented

M11 REL

Causecode = 16 Normal clearing

M12 SIP / 2.0 200 OK

VIA: SIP / 2.0 / UDP 8.19.19.06:5060; Branch=z9hg4bk321

From: ; tag = 12

TO: < 12025551313@gw.carrier.com; user = phone>; tag = 37

Call-ID: 49235243082018498@television.tv

CSEQ: 3 bye

M13 RLC

转载请注明原文地址:https://www.9cbs.com/read-101525.html

New Post(0)