I went back to the messages from Tata’s Customer Support and realised that they had highlighted the modifications in the SIP Invite that is coming from their SBC. I’ve now pointed this out to them.
My current setup is able to handle inbound and outbound calls just fine sometimes. I noticed that most calls are not answered for the callee even though they are handled correctly by my Asterisk. I raised a support ticket for this and their team seems to be unable to diagnose the problem.
Pasting here an example inbound call where the callee heard “This number is not available” – a variant of 503.
No. Time Source Destination Protocol Length Info
1 0.000000 10.53.179.34 10.54.28.114 SIP/SDP 1031 Request: INVITE sip:XX34300@10.54.28.114:5060;transport=UDP |
Frame 1: 1031 bytes on wire (8248 bits), 1031 bytes captured (8248 bits)
Linux cooked capture v1
Internet Protocol Version 4, Src: 10.53.179.34, Dst: 10.54.28.114
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (INVITE)
Request-Line: INVITE sip:XX34300@10.54.28.114:5060;transport=UDP SIP/2.0
Message Header
From: "91894959XXXX"<sip:91894959XXXX@10.53.179.34:5060;transport=UDP>;tag=BN-1441910912-1-1671210138-2122592896
To: "731XX34370"<sip:731XX34370@10.54.28.114:5060;transport=UDP>
Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759
[Generated Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759]
CSeq: 3383 INVITE
Via: SIP/2.0/UDP 10.53.179.34:5060;branch=z9hG4bK-1f4dea1e-aa88-29a258a-7f6d3c334cc0
Route: <sip:10.54.28.114:5060;transport=UDP;lr>
X-SessionId: -1441910912
User-Agent: BN4000-3.8.3-042
Supported: timer,100rel
Max-Forwards: 68
Contact: <sip:91894959XXXX@10.53.179.34:5060;transport=UDP>
Allow: INVITE,CANCEL,ACK,BYE,OPTIONS,INFO,PRACK,UPDATE,REFER,NOTIFY,SUBSCRIBE,PUBLISH,MESSAGE,REGISTER
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 176
Message Body
No. Time Source Destination Protocol Length Info
2 0.501176 10.53.179.34 10.54.28.114 SIP/SDP 1031 Request: INVITE sip:XX34300@10.54.28.114:5060;transport=UDP |
Frame 2: 1031 bytes on wire (8248 bits), 1031 bytes captured (8248 bits)
Linux cooked capture v1
Internet Protocol Version 4, Src: 10.53.179.34, Dst: 10.54.28.114
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (INVITE)
Request-Line: INVITE sip:XX34300@10.54.28.114:5060;transport=UDP SIP/2.0
Message Header
From: "91894959XXXX"<sip:91894959XXXX@10.53.179.34:5060;transport=UDP>;tag=BN-1441910912-1-1671210138-2122592896
To: "731XX34370"<sip:731XX34370@10.54.28.114:5060;transport=UDP>
Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759
[Generated Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759]
CSeq: 3383 INVITE
Via: SIP/2.0/UDP 10.53.179.34:5060;branch=z9hG4bK-1f4dea1e-aa88-29a258a-7f6d3c334cc0
Route: <sip:10.54.28.114:5060;transport=UDP;lr>
X-SessionId: -1441910912
User-Agent: BN4000-3.8.3-042
Supported: timer,100rel
Max-Forwards: 68
Contact: <sip:91894959XXXX@10.53.179.34:5060;transport=UDP>
Allow: INVITE,CANCEL,ACK,BYE,OPTIONS,INFO,PRACK,UPDATE,REFER,NOTIFY,SUBSCRIBE,PUBLISH,MESSAGE,REGISTER
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 176
Message Body
No. Time Source Destination Protocol Length Info
3 0.661854 10.54.28.114 10.53.179.34 SIP 685 Status: 100 Trying |
Frame 3: 685 bytes on wire (5480 bits), 685 bytes captured (5480 bits)
Linux cooked capture v1
Internet Protocol Version 4, Src: 10.54.28.114, Dst: 10.53.179.34
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (100)
Status-Line: SIP/2.0 100 Trying
Message Header
Via: SIP/2.0/UDP 10.53.179.34:5060;branch=z9hG4bK-1f4dea1e-aa88-29a258a-7f6d3c334cc0;received=10.53.179.34
From: "91894959XXXX"<sip:91894959XXXX@10.53.179.34:5060;transport=UDP>;tag=BN-1441910912-1-1671210138-2122592896
To: "731XX34370"<sip:731XX34370@10.54.28.114:5060;transport=UDP>
Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759
[Generated Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759]
CSeq: 3383 INVITE
Server: Asterisk PBX 16.29.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:XX34300@10.54.28.114:5060>
Content-Length: 0
No. Time Source Destination Protocol Length Info
4 0.661995 10.54.28.114 10.53.179.34 SIP 685 Status: 100 Trying |
Frame 4: 685 bytes on wire (5480 bits), 685 bytes captured (5480 bits)
Linux cooked capture v1
Internet Protocol Version 4, Src: 10.54.28.114, Dst: 10.53.179.34
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (100)
Status-Line: SIP/2.0 100 Trying
Message Header
Via: SIP/2.0/UDP 10.53.179.34:5060;branch=z9hG4bK-1f4dea1e-aa88-29a258a-7f6d3c334cc0;received=10.53.179.34
From: "91894959XXXX"<sip:91894959XXXX@10.53.179.34:5060;transport=UDP>;tag=BN-1441910912-1-1671210138-2122592896
To: "731XX34370"<sip:731XX34370@10.54.28.114:5060;transport=UDP>
Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759
[Generated Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759]
CSeq: 3383 INVITE
Server: Asterisk PBX 16.29.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:XX34300@10.54.28.114:5060>
Content-Length: 0
No. Time Source Destination Protocol Length Info
5 0.662163 10.54.28.114 10.53.179.34 SIP 701 Status: 180 Ringing |
Frame 5: 701 bytes on wire (5608 bits), 701 bytes captured (5608 bits)
Linux cooked capture v1
Internet Protocol Version 4, Src: 10.54.28.114, Dst: 10.53.179.34
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (180)
Status-Line: SIP/2.0 180 Ringing
Message Header
Via: SIP/2.0/UDP 10.53.179.34:5060;branch=z9hG4bK-1f4dea1e-aa88-29a258a-7f6d3c334cc0;received=10.53.179.34
From: "91894959XXXX"<sip:91894959XXXX@10.53.179.34:5060;transport=UDP>;tag=BN-1441910912-1-1671210138-2122592896
To: "731XX34370"<sip:731XX34370@10.54.28.114:5060;transport=UDP>;tag=as0544149f
Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759
[Generated Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759]
CSeq: 3383 INVITE
Server: Asterisk PBX 16.29.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:XX34300@10.54.28.114:5060>
Content-Length: 0
No. Time Source Destination Protocol Length Info
6 2.663542 10.54.28.114 10.53.179.34 SIP/SDP 1053 Status: 200 OK (INVITE) |
Frame 6: 1053 bytes on wire (8424 bits), 1053 bytes captured (8424 bits)
Linux cooked capture v1
Internet Protocol Version 4, Src: 10.54.28.114, Dst: 10.53.179.34
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (200)
Status-Line: SIP/2.0 200 OK
Message Header
Via: SIP/2.0/UDP 10.53.179.34:5060;branch=z9hG4bK-1f4dea1e-aa88-29a258a-7f6d3c334cc0;received=10.53.179.34
From: "91894959XXXX"<sip:91894959XXXX@10.53.179.34:5060;transport=UDP>;tag=BN-1441910912-1-1671210138-2122592896
To: "731XX34370"<sip:731XX34370@10.54.28.114:5060;transport=UDP>;tag=as0544149f
Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759
[Generated Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759]
CSeq: 3383 INVITE
Server: Asterisk PBX 16.29.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:XX34300@10.54.28.114:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 308
Message Body
No. Time Source Destination Protocol Length Info
7 2.723185 10.53.179.34 10.54.28.114 SIP 550 Request: ACK sip:XX34300@10.54.28.114:5060 |
Frame 7: 550 bytes on wire (4400 bits), 550 bytes captured (4400 bits)
Linux cooked capture v1
Internet Protocol Version 4, Src: 10.53.179.34, Dst: 10.54.28.114
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (ACK)
Request-Line: ACK sip:XX34300@10.54.28.114:5060 SIP/2.0
Message Header
From: "91894959XXXX"<sip:91894959XXXX@10.53.179.34:5060;transport=UDP>;tag=BN-1441910912-1-1671210138-2122592896
To: "731XX34370"<sip:731XX34370@10.162.202.206:5060;transport=UDP>;tag=as0544149f
Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759
[Generated Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759]
CSeq: 3383 ACK
Via: SIP/2.0/UDP 10.53.179.34:5060;branch=z9hG4bK-15908f03-aa8b-29a3030-7f6d387e8a80
Max-Forwards: 70
Contact: <sip:91894959XXXX@10.53.179.34:5060;transport=UDP>
Content-Length: 0
No. Time Source Destination Protocol Length Info
8 34.728820 10.53.179.34 10.54.28.114 SIP 602 Request: BYE sip:XX34300@10.54.28.114:5060 |
Frame 8: 602 bytes on wire (4816 bits), 602 bytes captured (4816 bits)
Linux cooked capture v1
Internet Protocol Version 4, Src: 10.53.179.34, Dst: 10.54.28.114
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (BYE)
Request-Line: BYE sip:XX34300@10.54.28.114:5060 SIP/2.0
Message Header
From: "91894959XXXX"<sip:91894959XXXX@10.53.179.34:5060;transport=UDP>;tag=BN-1441910912-1-1671210138-2122592896
To: "731XX34370"<sip:731XX34370@10.162.202.206:5060;transport=UDP>;tag=as0544149f
Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759
[Generated Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759]
CSeq: 3384 BYE
Route: <sip:10.54.28.114:5060;lr>
Via: SIP/2.0/UDP 10.53.179.34:5060;branch=z9hG4bK-46801cb9-aaab-29aad34-7f6d38653040
Max-Forwards: 69
Reason: SIP;cause=503;text="Subsystem Id: PE Cause Code: PENoTreatmentFound"
Content-Length: 0
No. Time Source Destination Protocol Length Info
9 34.728975 10.54.28.114 10.53.179.34 SIP 616 Status: 200 OK (BYE) |
Frame 9: 616 bytes on wire (4928 bits), 616 bytes captured (4928 bits)
Linux cooked capture v1
Internet Protocol Version 4, Src: 10.54.28.114, Dst: 10.53.179.34
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (200)
Status-Line: SIP/2.0 200 OK
Message Header
Via: SIP/2.0/UDP 10.53.179.34:5060;branch=z9hG4bK-46801cb9-aaab-29aad34-7f6d38653040;received=10.53.179.34
From: "91894959XXXX"<sip:91894959XXXX@10.53.179.34:5060;transport=UDP>;tag=BN-1441910912-1-1671210138-2122592896
To: "731XX34370"<sip:731XX34370@10.162.202.206:5060;transport=UDP>;tag=as0544149f
Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759
[Generated Call-ID: 17fe9f73-13b75480-aa88-7f6d1284e4e8-ea04600e-13c4-759]
CSeq: 3384 BYE
Server: Asterisk PBX 16.29.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
Note the Reason: SIP;cause=503;text="Subsystem Id: PE Cause Code: PENoTreatmentFound" Content-Length: 0
in the end.