Send and Receive SIP Signals Using the Same Port

Prior to this feature

Prior to this feature, the CSP received inbound SIP signals on a specific User Datagram Protocol (UDP) port - by default it was port 5060. The receiving port could be changed at run time.

All outbound SIP signals were sent out on a UDP port allocated by the CSP when you configured SIP. This port number could be any valid (and unused) port number above 1023. The port used for outbound SIP signaling from the CSP remained constant until SIP was deconfigured.

With this feature

With this feature, the CSP now sends and receives SIP signals using the same port as configured by the host. By default, the CSP uses port 5060 for all SIP traffic.

Important Points Regarding this Feature

Note the following important points before implementing this feature:

 

 

 

Important! Dialogic recommends that the port not be changed while calls are in progress because doing so could cause the following:

After a port change, any outstanding SIP responses to the previous port will be ignored.

If the remote UA has not received a target refresh request from the CSP since the port change, then any request from a remote UA will be ignored subsequent to the port change. These requests include, but are not limited to, BYE,
RE-INVITE, OPTIONS, REFER and NOTIFY.

Other Points

As soon as the host changes the port number, the CSP expects inbound SIP traffic in the new port. All outbound SIP traffic hereafter contains the new port number in the Contact Header.

When the port number is changed, the previous port is closed. Any SIP messages sent to the previous port number will not be received by the CSP.

Via and Contact headers are updated for outbound calls.

Changing Port Number

You can change the port number for inbound/the EXS API or SwitchKit CSA. The following describes each procedure.

Using API

Use the following TLV in the VoIP Protocol Configure (0x00EE) message to change the port number for inbound/outbound SIP signaling traffic.

The range of values is 0x400-0xFFFF (1024-65535) provided the port is not in use. The default is port 0x13C4 (5060).

0x0262 Use SIP Local Port

Byte

Description

0, 1

Tag 0x0262

2, 3

Length 0x0002

4, 5

Value[0] Port Number

Using CSA

Refer to Configuring SIP in the Converged Services Administrator User’s Guide to configure with SwitchKit CSA.

Call Flows and Traces

Default

The port is set to the default value in the call flow and corresponding trace below.

 

 

CSP1:

 

H->X

[00 15 00 ee 00 00 01 00 00 00 00 02 01 c8 00 01 04 02

62 00 02 13 c4]

 

X->H

[00 07 00 ee 00 00 01 00 10]

 

H->X

[00 83 00 2c 00 01 01 00 01 0d 03 00 64 1f 02 03 00 1e

00 0f 00 02 01 16 00 02 00 00 01 1a 00 03 00 00 00 03

00 33 00 5d 00 09 27 7e 00 03 08 00 00 29 19 00 06 32

32 32 32 32 00 29 1b 00 0c 31 30 2e 31 30 2e 31 2e 32

35 32 00 29 1c 00 04 00 00 13 c4 29 23 00 06 38 38 38

38 38 00 29 25 00 0c 31 30 2e 31 30 2e 31 2e 32 35 34

00 29 26 00 04 00 00 13 c4 27 92 00 04 0a 0a 01 b6 27

93 00 04 00 00 10 7c]

 

X->H

[00 07 00 2c 00 01 01 00 10]

 

X->H

[00 11 00 43 00 15 01 00 01 0d 03 00 64 1f 00 a7 00 24 00]

 

H->X

[00 05 00 43 00 15 01]

 

X->H

[00 44 00 43 00 16 01 00 01 0d 03 00 64 1f 00 a7 00 20 01 03

00 33 00 2e 00 01 29 ff 00 28 2a 0e 00 04 0a 0a 01 ac

2a 01 00 1c 2a 03 00 01 00 2a 07 00 04 00 00 27 9c 2a

13 00 01 00 2a 02 00 06 2a 08 00 02 00 02]

 

H->X

[00 05 00 43 00 16 01]

2

Printing all SIP messages

 

1 -SENT To 10.10.1.252:5060 at 3857

INVITE sip:22222@10.10.1.252:5060 SIP/2.0

Via: SIP/2.0/UDP 10.10.1.254

To: 22222<sip:22222@10.10.1.252:5060>

From: 88888<sip:88888@10.10.1.254:5060>;tag=41275790f11

Call-ID: EXCEL-CSP1.101f.3857.140@10.10.1.254

Contact: 88888<sip:88888@10.10.1.254:5060>

User-Agent: Excel_CSP/83.1.13

Supported: timer

Session-Expires: 1800

Min-SE: 300

CSeq: 1 INVITE

Content-Type: application/sdp

Content-Length: 100

 

v=0

o=sip 0 0 IN IP4 10.10.1.254

s=SIP_Call

c=IN IP4 10.10.1.182

t=0 0

m=audio 4220 RTP/AVP 0

 

2 -RECEIVED From 10.10.1.252:5060 at 3857

SIP/2.0 100 Trying

To: 22222<sip:22222@10.10.1.252:5060>;tag=5790bba

From: 88888<sip:88888@10.10.1.254:5060>;tag=41275790f11

Call-ID: EXCEL-CSP1.101f.3857.140@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5060>

Via: SIP/2.0/UDP 10.10.1.254

User-Agent: Excel_CSP/83.1.13

Content-Length: 0

 

 

3 -RECEIVED From 10.10.1.252:5060 at 3857

SIP/2.0 180 Ringing

To: 22222<sip:22222@10.10.1.252:5060>;tag=5790bba

From: 88888<sip:88888@10.10.1.254:5060>;tag=41275790f11

Call-ID: EXCEL-CSP1.101f.3857.140@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5060>

Via: SIP/2.0/UDP 10.10.1.254

User-Agent: Excel_CSP/83.1.13

Content-Length: 0

 

 

4 -RECEIVED From 10.10.1.252:5060 at 3857

SIP/2.0 200 OK

To: 22222<sip:22222@10.10.1.252:5060>;tag=5790bba

From: 88888<sip:88888@10.10.1.254:5060>;tag=41275790f11

Call-ID: EXCEL-CSP1.101f.3857.140@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5060>

Require: timer

Supported: timer

Session-Expires: 1800; refresher=uas

Via: SIP/2.0/UDP 10.10.1.254

User-Agent: Excel_CSP/83.1.13

Content-Type: application/sdp

Content-Length: 131

 

v=0

o=sip 1139999646 1139999646 IN IP4 10.10.1.252

s=SIP_Call

c=IN IP4 10.10.1.172

t=0 0

m=audio 10140 RTP/AVP 0

a=sendrecv

 

5 -SENT To 10.10.1.252:5060 at 3857

ACK sip:22222@10.10.1.252:5060 SIP/2.0

Via: SIP/2.0/UDP 10.10.1.254

To: 22222<sip:22222@10.10.1.252:5060>;tag=5790bba

From: 88888<sip:88888@10.10.1.254:5060>;tag=41275790f11

Call-ID: EXCEL-CSP1.101f.3857.140@10.10.1.254

CSeq: 1 ACK

Content-Length: 0

 

 

*********************************************************

 

CSP2:

 

H->X

[00 15 00 ee 00 00 02 00 00 00 00 02 01 c8 00 01 04 02

62 00 02 13 c4]

 

X->H

[00 07 00 ee 00 00 02 00 10]

 

X->H

[00 da 00 2d 00 07 02 00 01 0d 03 00 c8 07 00 33 01 03 00 33

00 c6 00 11 27 4e 00 02 00 05 27 7e 00 03 08 00 00 29

19 00 06 32 32 32 32 32 00 29 1b 00 0c 31 30 2e 31 30

2e 31 2e 32 35 32 00 29 1c 00 04 00 00 13 c4 29 23 00

06 38 38 38 38 38 00 29 25 00 0c 31 30 2e 31 30 2e 31

2e 32 35 34 00 29 26 00 04 00 00 13 c4 29 28 00 06 38

38 38 38 38 00 29 2d 00 06 38 38 38 38 38 00 29 2f 00

0c 31 30 2e 31 30 2e 31 2e 32 35 34 00 29 30 00 04 00

00 13 c4 29 33 00 01 01 27 18 00 08 02 00 00 00 05 88

88 80 27 17 00 06 02 00 05 22 22 20 29 ff 00 23 2a 0e

00 04 0a 0a 01 b6 2a 01 00 17 2a 03 00 01 00 2a 07 00

04 00 00 10 7c 2a 02 00 06 2a 08 00 02 00 02 29 16 00

01 01]

 

H->X

[00 0c 00 2d 00 07 02 00 01 0d 03 00 c8 07]

 

H->X

[00 0c 00 2d 00 07 02 00 01 0d 03 00 c8 07]

 

H->X

[00 11 00 bf 00 00 02 00 02 0d 03 00 c8 07 0d 03 00 c8

07]

 

X->H

[00 07 00 bf 00 00 02 00 10]

 

H->X

[00 0d 00 ba 00 00 02 00 01 0d 03 00 c8 07 01]

 

X->H

[00 07 00 ba 00 00 02 00 10]

2

Printing all SIP messages

 

1 -RECEIVED From 10.10.1.254:5060 at 3002

INVITE sip:22222@10.10.1.252:5060 SIP/2.0

Via: SIP/2.0/UDP 10.10.1.254

To: 22222<sip:22222@10.10.1.252:5060>

From: 88888<sip:88888@10.10.1.254:5060>;tag=41275790f11

Call-ID: EXCEL-CSP1.101f.3857.140@10.10.1.254

Contact: 88888<sip:88888@10.10.1.254:5060>

User-Agent: Excel_CSP/83.1.13

Supported: timer

Session-Expires: 1800

Min-SE: 300

CSeq: 1 INVITE

Content-Type: application/sdp

Content-Length: 100

 

v=0

o=sip 0 0 IN IP4 10.10.1.254

s=SIP_Call

c=IN IP4 10.10.1.182

t=0 0

m=audio 4220 RTP/AVP 0

 

2 -SENT To 10.10.1.254:5060 at 3002

SIP/2.0 100 Trying

To: 22222<sip:22222@10.10.1.252:5060>;tag=5790bba

From: 88888<sip:88888@10.10.1.254:5060>;tag=41275790f11

Call-ID: EXCEL-CSP1.101f.3857.140@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5060>

Via: SIP/2.0/UDP 10.10.1.254

User-Agent: Excel_CSP/83.1.13

Content-Length: 0

 

 

3 -SENT To 10.10.1.254:5060 at 3002

SIP/2.0 180 Ringing

To: 22222<sip:22222@10.10.1.252:5060>;tag=5790bba

From: 88888<sip:88888@10.10.1.254:5060>;tag=41275790f11

Call-ID: EXCEL-CSP1.101f.3857.140@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5060>

Via: SIP/2.0/UDP 10.10.1.254

User-Agent: Excel_CSP/83.1.13

Content-Length: 0

 

 

4 -SENT To 10.10.1.254:5060 at 3002

SIP/2.0 200 OK

To: 22222<sip:22222@10.10.1.252:5060>;tag=5790bba

From: 88888<sip:88888@10.10.1.254:5060>;tag=41275790f11

Call-ID: EXCEL-CSP1.101f.3857.140@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5060>

Require: timer

Supported: timer

Session-Expires: 1800; refresher=uas

Via: SIP/2.0/UDP 10.10.1.254

User-Agent: Excel_CSP/83.1.13

Content-Type: application/sdp

Content-Length: 131

 

v=0

o=sip 1139999646 1139999646 IN IP4 10.10.1.252

s=SIP_Call

c=IN IP4 10.10.1.172

t=0 0

m=audio 10140 RTP/AVP 0

a=sendrecv

 

5 -RECEIVED From 10.10.1.254:5060 at 3002

ACK sip:22222@10.10.1.252:5060 SIP/2.0

Via: SIP/2.0/UDP 10.10.1.254

To: 22222<sip:22222@10.10.1.252:5060>;tag=5790bba

From: 88888<sip:88888@10.10.1.254:5060>;tag=41275790f11

Call-ID: EXCEL-CSP1.101f.3857.140@10.10.1.254

CSeq: 1 ACK

Content-Length: 0

 

 

 

 

 

Change port

The port is changed to 5070 in the call flow and trace below.

 

CSP1:

 

H->X

[00 15 00 ee 00 00 01 00 00 00 00 02 01 c8 00 01 04 02

62 00 02 13 c4]

 

X->H

[00 07 00 ee 00 00 01 00 10]

 

H->X

[00 15 00 ee 00 00 01 00 00 00 00 02 01 c8 00 01 04 02

62 00 02 13 ce]

 

X->H

[00 07 00 ee 00 00 01 00 10]

 

H->X

[00 83 00 2c 00 01 01 00 01 0d 03 00 64 1f 02 03 00 1e

00 0f 00 02 01 16 00 02 00 00 01 1a 00 03 00 00 00 03

00 33 00 5d 00 09 27 7e 00 03 08 00 00 29 19 00 06 32

32 32 32 32 00 29 1b 00 0c 31 30 2e 31 30 2e 31 2e 32

35 32 00 29 1c 00 04 00 00 13 c4 29 23 00 06 38 38 38

38 38 00 29 25 00 0c 31 30 2e 31 30 2e 31 2e 32 35 34

00 29 26 00 04 00 00 13 c4 27 92 00 04 0a 0a 01 b6 27

93 00 04 00 00 10 7c]

 

X->H

[00 07 00 2c 00 01 01 00 10]

 

X->H

[00 11 00 43 00 13 01 00 01 0d 03 00 64 1f 00 a7 00 24 00]

 

H->X

[00 05 00 43 00 13 01]

 

H->X

[00 05 00 43 00 13 01]

 

X->H

[00 44 00 43 00 14 01 00 01 0d 03 00 64 1f 00 a7 00 20 01 03

00 33 00 2e 00 01 29 ff 00 28 2a 0e 00 04 0a 0a 01 ab

2a 01 00 1c 2a 03 00 01 00 2a 07 00 04 00 00 3d 9c 2a

13 00 01 00 2a 02 00 06 2a 08 00 02 00 02]

 

H->X

[00 05 00 43 00 14 01]

2

Printing all SIP messages

 

1 -SENT To 10.10.1.252:5060 at 3463

INVITE sip:22222@10.10.1.252:5060 SIP/2.0

Via: SIP/2.0/UDP 10.10.1.254:5070

To: 22222<sip:22222@10.10.1.252:5060>

From: 88888<sip:88888@10.10.1.254:5060>;tag=41271073d87

Call-ID: EXCEL-CSP1.101f.3463.950@10.10.1.254

Contact: 88888<sip:88888@10.10.1.254:5070>

User-Agent: Excel_CSP/83.1.13

Supported: timer

Session-Expires: 1800

Min-SE: 300

CSeq: 1 INVITE

Content-Type: application/sdp

Content-Length: 100

 

v=0

o=sip 0 0 IN IP4 10.10.1.254

s=SIP_Call

c=IN IP4 10.10.1.182

t=0 0

m=audio 4220 RTP/AVP 0

 

2 -RECEIVED From 10.10.1.252:5060 at 3463

SIP/2.0 100 Trying

To: 22222<sip:22222@10.10.1.252:5060>;tag=1073a30

From: 88888<sip:88888@10.10.1.254:5060>;tag=41271073d87

Call-ID: EXCEL-CSP1.101f.3463.950@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5060>

Via: SIP/2.0/UDP 10.10.1.254:5070

User-Agent: Excel_CSP/83.1.13

Content-Length: 0

 

 

3 -RECEIVED From 10.10.1.252:5060 at 3464

SIP/2.0 180 Ringing

To: 22222<sip:22222@10.10.1.252:5060>;tag=1073a30

From: 88888<sip:88888@10.10.1.254:5060>;tag=41271073d87

Call-ID: EXCEL-CSP1.101f.3463.950@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5060>

Via: SIP/2.0/UDP 10.10.1.254:5070

User-Agent: Excel_CSP/83.1.13

Content-Length: 0

 

 

4 -RECEIVED From 10.10.1.252:5080 at 3466

SIP/2.0 200 OK

To: 22222<sip:22222@10.10.1.252:5060>;tag=1073a30

From: 88888<sip:88888@10.10.1.254:5060>;tag=41271073d87

Call-ID: EXCEL-CSP1.101f.3463.950@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5080>

Require: timer

Supported: timer

Session-Expires: 1800; refresher=uas

Via: SIP/2.0/UDP 10.10.1.254:5070

User-Agent: Excel_CSP/83.1.13

Content-Type: application/sdp

Content-Length: 131

 

v=0

o=sip 1139999254 1139999254 IN IP4 10.10.1.252

s=SIP_Call

c=IN IP4 10.10.1.171

t=0 0

m=audio 15772 RTP/AVP 0

a=sendrecv

 

5 -SENT To 10.10.1.252:5080 at 3466

ACK sip:22222@10.10.1.252:5080 SIP/2.0

Via: SIP/2.0/UDP 10.10.1.254:5070

To: 22222<sip:22222@10.10.1.252:5060>;tag=1073a30

From: 88888<sip:88888@10.10.1.254:5060>;tag=41271073d87

Call-ID: EXCEL-CSP1.101f.3463.950@10.10.1.254

CSeq: 1 ACK

Content-Length: 0

 

 

 

*********************************************************

 

CSP2:

 

H->X

[00 15 00 ee 00 00 02 00 00 00 00 02 01 c8 00 01 04 02

62 00 02 13 c4]

 

X->H

[00 07 00 ee 00 00 02 00 10]

 

X->H

[00 da 00 2d 00 06 02 00 01 0d 03 00 c8 06 00 33 01 03 00 33

00 c6 00 11 27 4e 00 02 00 05 27 7e 00 03 08 00 00 29

19 00 06 32 32 32 32 32 00 29 1b 00 0c 31 30 2e 31 30

2e 31 2e 32 35 32 00 29 1c 00 04 00 00 13 c4 29 23 00

06 38 38 38 38 38 00 29 25 00 0c 31 30 2e 31 30 2e 31

2e 32 35 34 00 29 26 00 04 00 00 13 c4 29 28 00 06 38

38 38 38 38 00 29 2d 00 06 38 38 38 38 38 00 29 2f 00

0c 31 30 2e 31 30 2e 31 2e 32 35 34 00 29 30 00 04 00

00 13 ce 29 33 00 01 01 27 18 00 08 02 00 00 00 05 88

88 80 27 17 00 06 02 00 05 22 22 20 29 ff 00 23 2a 0e

00 04 0a 0a 01 b6 2a 01 00 17 2a 03 00 01 00 2a 07 00

04 00 00 10 7c 2a 02 00 06 2a 08 00 02 00 02 29 16 00

01 01]

 

H->X

[00 0c 00 2d 00 06 02 00 01 0d 03 00 c8 06]

 

H->X

[00 0c 00 2d 00 06 02 00 01 0d 03 00 c8 06]

 

H->X

[00 11 00 bf 00 00 02 00 02 0d 03 00 c8 06 0d 03 00 c8

06]

 

X->H

[00 07 00 bf 00 00 02 00 10]

 

H->X

[00 15 00 ee 00 00 02 00 00 00 00 02 01 c8 00 01 04 02

62 00 02 13 d8]

 

X->H

[00 07 00 ee 00 00 02 00 10]

 

H->X

[00 0d 00 ba 00 00 02 00 01 0d 03 00 c8 06 01]

 

X->H

[00 07 00 ba 00 00 02 00 10]

2

Printing all SIP messages

 

1 -RECEIVED From 10.10.1.254:5070 at 2608

INVITE sip:22222@10.10.1.252:5060 SIP/2.0

Via: SIP/2.0/UDP 10.10.1.254:5070

To: 22222<sip:22222@10.10.1.252:5060>

From: 88888<sip:88888@10.10.1.254:5060>;tag=41271073d87

Call-ID: EXCEL-CSP1.101f.3463.950@10.10.1.254

Contact: 88888<sip:88888@10.10.1.254:5070>

User-Agent: Excel_CSP/83.1.13

Supported: timer

Session-Expires: 1800

Min-SE: 300

CSeq: 1 INVITE

Content-Type: application/sdp

Content-Length: 100

 

v=0

o=sip 0 0 IN IP4 10.10.1.254

s=SIP_Call

c=IN IP4 10.10.1.182

t=0 0

m=audio 4220 RTP/AVP 0

 

2 -SENT To 10.10.1.254:5070 at 2608

SIP/2.0 100 Trying

To: 22222<sip:22222@10.10.1.252:5060>;tag=1073a30

From: 88888<sip:88888@10.10.1.254:5060>;tag=41271073d87

Call-ID: EXCEL-CSP1.101f.3463.950@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5060>

Via: SIP/2.0/UDP 10.10.1.254:5070

User-Agent: Excel_CSP/83.1.13

Content-Length: 0

 

 

3 -SENT To 10.10.1.254:5070 at 2609

SIP/2.0 180 Ringing

To: 22222<sip:22222@10.10.1.252:5060>;tag=1073a30

From: 88888<sip:88888@10.10.1.254:5060>;tag=41271073d87

Call-ID: EXCEL-CSP1.101f.3463.950@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5060>

Via: SIP/2.0/UDP 10.10.1.254:5070

User-Agent: Excel_CSP/83.1.13

Content-Length: 0

 

 

4 -SENT To 10.10.1.254:5070 at 2611

SIP/2.0 200 OK

To: 22222<sip:22222@10.10.1.252:5060>;tag=1073a30

From: 88888<sip:88888@10.10.1.254:5060>;tag=41271073d87

Call-ID: EXCEL-CSP1.101f.3463.950@10.10.1.254

CSeq: 1 INVITE

Contact: 22222<sip:22222@10.10.1.252:5080>

Require: timer

Supported: timer

Session-Expires: 1800; refresher=uas

Via: SIP/2.0/UDP 10.10.1.254:5070

User-Agent: Excel_CSP/83.1.13

Content-Type: application/sdp

Content-Length: 131

 

v=0

o=sip 1139999254 1139999254 IN IP4 10.10.1.252

s=SIP_Call

c=IN IP4 10.10.1.171

t=0 0

m=audio 15772 RTP/AVP 0

a=sendrecv

 

5 -RECEIVED From 10.10.1.254:5070 at 2611

ACK sip:22222@10.10.1.252:5080 SIP/2.0

Via: SIP/2.0/UDP 10.10.1.254:5070

To: 22222<sip:22222@10.10.1.252:5060>;tag=1073a30

From: 88888<sip:88888@10.10.1.254:5060>;tag=41271073d87

Call-ID: EXCEL-CSP1.101f.3463.950@10.10.1.254

CSeq: 1 ACK

Content-Length: 0