SIP Debugging enabled
<--- SIP read from UDP:192.168.1.40:5060 --->
INVITE sip:7502519749@192.168.1.220:2022 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK20638727;rport
Max-Forwards: 70
From: <sip:904@192.168.1.40>;tag=as62391d02
To: <sip:7502519749@192.168.1.220:2022>
Contact: <sip:904@192.168.1.40:5060>
Call-ID: 15c45d42484426be3a7fd56b2e4283e4@192.168.1.40:5060
CSeq: 102 INVITE
User-Agent: IPBX-2.11.0(11.25.3)
Date: Mon, 01 Jan 2024 11:55:02 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 281
v=0
o=root 181958847 181958847 IN IP4 192.168.1.40
s=Asterisk PBX 11.25.3
c=IN IP4 192.168.1.40
t=0 0
m=audio 15008 RTP/AVP 8 0 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
<------------->
--- (14 headers 13 lines) ---
Sending to 192.168.1.40:5060 (NAT)
Sending to 192.168.1.40:5060 (NAT)
Using INVITE request as basis request - 15c45d42484426be3a7fd56b2e4283e4@192.168.1.40:5060
Found peer '904' for '904' from 192.168.1.40:5060
<--- Reliably Transmitting (no NAT) to 192.168.1.40:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK20638727;received=192.168.1.40;rport=5060
From: <sip:904@192.168.1.40>;tag=as62391d02
To: <sip:7502519749@192.168.1.220:2022>;tag=as3ccf0dad
Call-ID: 15c45d42484426be3a7fd56b2e4283e4@192.168.1.40:5060
CSeq: 102 INVITE
Server: IPBX-2.11.0.47(11.25.3)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="3565f503"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '15c45d42484426be3a7fd56b2e4283e4@192.168.1.40:5060' in 6400 ms (Method: INVITE)
<--- SIP read from UDP:192.168.1.40:5060 --->
ACK sip:7502519749@192.168.1.220:2022 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK20638727;rport
Max-Forwards: 70
From: <sip:904@192.168.1.40>;tag=as62391d02
To: <sip:7502519749@192.168.1.220:2022>;tag=as3ccf0dad
Contact: <sip:904@192.168.1.40:5060>
Call-ID: 15c45d42484426be3a7fd56b2e4283e4@192.168.1.40:5060
CSeq: 102 ACK
User-Agent: IPBX-2.11.0(11.25.3)
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
Reliably Transmitting (NAT) to 192.168.1.204:5060:
OPTIONS sip:900@192.168.1.204:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.220:2022;branch=z9hG4bK77d34688;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.220:2022>;tag=as1663be47
To: <sip:900@192.168.1.204:5060>
Contact: <sip:Unknown@192.168.1.220:2022>
Call-ID: 1e667d3115773d2515b141e62d9f7569@192.168.1.220:2022
CSeq: 102 OPTIONS
User-Agent: IPBX-2.11.0.47(11.25.3)
Date: Mon, 01 Jan 2024 11:55:02 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
Retransmitting #1 (NAT) to 192.168.1.160:5060:
OPTIONS sip:192.168.1.160 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.220:2022;branch=z9hG4bK1d40d078;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.220:2022>;tag=as1dbd5889
To: <sip:192.168.1.160>
Contact: <sip:Unknown@192.168.1.220:2022>
Call-ID: 715f9c76226be7df1a4c51d424be78fc@192.168.1.220:2022
CSeq: 102 OPTIONS
User-Agent: IPBX-2.11.0.47(11.25.3)
Date: Mon, 01 Jan 2024 11:55:01 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
Retransmitting #1 (NAT) to 192.168.1.204:5060:
OPTIONS sip:900@192.168.1.204:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.220:2022;branch=z9hG4bK77d34688;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.220:2022>;tag=as1663be47
To: <sip:900@192.168.1.204:5060>
Contact: <sip:Unknown@192.168.1.220:2022>
Call-ID: 1e667d3115773d2515b141e62d9f7569@192.168.1.220:2022
CSeq: 102 OPTIONS
User-Agent: IPBX-2.11.0.47(11.25.3)
Date: Mon, 01 Jan 2024 11:55:02 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
<--- SIP read from UDP:192.168.1.205:5060 --->
OPTIONS sip:heartbeat@192.168.1.220:2022 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.205:5060;rport;branch=z9hG4bKZNcmFZ92g4SNF
Max-Forwards: 70
From: <sip:heartbeat@192.168.1.205>;tag=0K9SZ8eK69jvr
To: <sip:heartbeat@192.168.1.220:2022>
Call-ID: e0434c9f-21c5-123d-6898-f8a03d20bdb4
CSeq: 77414567 OPTIONS
Contact: <sip:heartbeat@192.168.1.205;transport=UDP>
User-Agent: DAG1000-8S DAG 2.81.10.03
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER
Supported: replaces
Allow-Events: refer, ua-profile, message-summary, check-sync, dialog, presence
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Sending to 192.168.1.205:5060 (NAT)
Looking for heartbeat in from-CRM (domain 192.168.1.220)
<--- Transmitting (NAT) to 192.168.1.205:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.1.205:5060;branch=z9hG4bKZNcmFZ92g4SNF;received=192.168.1.205;rport=5060
From: <sip:heartbeat@192.168.1.205>;tag=0K9SZ8eK69jvr
To: <sip:heartbeat@192.168.1.220:2022>;tag=as4a43b4e4
Call-ID: e0434c9f-21c5-123d-6898-f8a03d20bdb4
CSeq: 77414567 OPTIONS
Server: IPBX-2.11.0.47(11.25.3)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Accept: application/sdp
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'e0434c9f-21c5-123d-6898-f8a03d20bdb4' in 32000 ms (Method: OPTIONS)
Retransmitting #2 (NAT) to 192.168.1.160:5060:
OPTIONS sip:192.168.1.160 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.220:2022;branch=z9hG4bK1d40d078;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.220:2022>;tag=as1dbd5889
To: <sip:192.168.1.160>
Contact: <sip:Unknown@192.168.1.220:2022>
Call-ID: 715f9c76226be7df1a4c51d424be78fc@192.168.1.220:2022
CSeq: 102 OPTIONS
User-Agent: IPBX-2.11.0.47(11.25.3)
Date: Mon, 01 Jan 2024 11:55:01 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
Retransmitting #2 (NAT) to 192.168.1.204:5060:
OPTIONS sip:900@192.168.1.204:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.220:2022;branch=z9hG4bK77d34688;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.220:2022>;tag=as1663be47
To: <sip:900@192.168.1.204:5060>
Contact: <sip:Unknown@192.168.1.220:2022>
Call-ID: 1e667d3115773d2515b141e62d9f7569@192.168.1.220:2022
CSeq: 102 OPTIONS
User-Agent: IPBX-2.11.0.47(11.25.3)
Date: Mon, 01 Jan 2024 11:55:02 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
Retransmitting #3 (NAT) to 192.168.1.160:5060:
OPTIONS sip:192.168.1.160 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.220:2022;branch=z9hG4bK1d40d078;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.220:2022>;tag=as1dbd5889
To: <sip:192.168.1.160>
Contact: <sip:Unknown@192.168.1.220:2022>
Call-ID: 715f9c76226be7df1a4c51d424be78fc@192.168.1.220:2022
CSeq: 102 OPTIONS
User-Agent: IPBX-2.11.0.47(11.25.3)
Date: Mon, 01 Jan 2024 11:55:01 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
Here From 192.168.1.40 Server to 192.168.1.220 I make a call with caller ID as 904. But that call is unauthorized. Because 904 is an extension in 192.168.1.220 Server. Suppose If I fix different caller ID other than extension numbers(220 server extensions) then calls are accepted.
The Problem is external incoming call CallerID is one of the internal extension numbers then call is rejected.