Thanks for your reply.
I rebuilt the OpenWRT and It started working. However, after some time, it started happening again and now it is giving me same issue.
I am also using the same OpenWRT image on the different device(with different credential and had the problem only once – but it is working fine since then).
Also, in the following output, it is showing “sipphone/user4” Unreachable, 1/2 hour ago it was reachable but was having the same issue.
–> Output of the “sip show peers”
iobot-009c*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
1001/1001 192.168.141.144 D Auto (No) No 5060 OK (168 ms)
1002/1002 192.168.141.112 D Auto (No) No 5060 OK (1022 ms)
1111/1111 192.168.141.250 D Auto (No) No 5060 OK (33 ms)
sipphone/user4 54.172.60.1 Auto (No) No 5060 UNREACHABLE
4 sip peers [Monitored: 3 online, 1 offline Unmonitored: 0 online, 0 offline]
–> Following is the complete log of call attempt with “sip set debug on”
iobot-009c*CLI>
<--- SIP read from UDP:192.168.141.112:5060 --->
INVITE sip:15622775051@192.168.3.150 SIP/2.0
Via: SIP/2.0/UDP 192.168.141.112:5060;branch=z9hG4bK1021617921;rport
From: "abc" <sip:1002@192.168.3.150>;tag=1294536902
To: <sip:15622775051@192.168.3.150>
Call-ID: 1596175498-5060-50@BJC.BGI.BEB.BBC
CSeq: 490 INVITE
Contact: "abc" <sip:1002@192.168.141.112:5060>
Max-Forwards: 70
User-Agent: Grandstream GXV3240 1.0.3.137
Privacy: none
P-Preferred-Identity: "abc" <sip:1002@192.168.3.150>
P-Emergency-Info: IEEE-EUI-48;eui-48-addr=00-0B-82-A1-4F-6D
Supported: replaces, path, timer, eventlist
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 301
v=0
o=1002 8000 8000 IN IP4 192.168.141.112
s=SIP Call
c=IN IP4 192.168.141.112
t=0 0
m=audio 5004 RTP/AVP 0 8 9 101
a=sendrecv
a=rtcp:5005 IN IP4 192.168.141.112
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (17 headers 14 lines) ---
Sending to 192.168.141.112:5060 (no NAT)
Sending to 192.168.141.112:5060 (no NAT)
Using INVITE request as basis request - 1596175498-5060-50@BJC.BGI.BEB.BBC
Found peer '1002' for '1002' from 192.168.141.112:5060
== Using SIP VIDEO CoS mark 6
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 9
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format G722 for ID 9
Found audio description format telephone-event for ID 101
Capabilities: us - (ulaw|alaw|gsm|h263|h264), peer - audio=(ulaw|alaw|g722)/video=(nothing)/text=(nothing), combined - (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 192.168.141.112:5004
Peer doesn't provide video
Looking for 15622775051 in incoming-context (domain 192.168.3.150)
sip_route_dump: route/path hop: <sip:1002@192.168.141.112:5060>
<--- Transmitting (no NAT) to 192.168.141.112:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.141.112:5060;branch=z9hG4bK1021617921;received=192.168.141.112;rport=5060
From: "abc" <sip:1002@192.168.3.150>;tag=1294536902
To: <sip:15622775051@192.168.3.150>
Call-ID: 1596175498-5060-50@BJC.BGI.BEB.BBC
CSeq: 490 INVITE
Server: Asterisk PBX 13.9.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:15622775051@192.168.3.150:5060>
Content-Length: 0
<------------>
Reliably Transmitting (no NAT) to 54.172.61.5:5060:
OPTIONS sip:XXXX.twilio.com SIP/2.0
Via: SIP/2.0/UDP 192.168.3.150:5060;branch=z9hG4bK5e1e878e
Max-Forwards: 70
From: "asterisk" <sip:user4@192.168.3.150>;tag=as28dd7781
To: <sip:XXXX.twilio.com>
Contact: <sip:user4@192.168.3.150:5060>
Call-ID: 23dd495b4c04799200bf058d72407a2a@192.168.3.150:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.9.1
Date: Mon, 21 Aug 2017 17:10:40 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.141.112:5060 --->
INVITE sip:15622775051@192.168.3.150 SIP/2.0
Via: SIP/2.0/UDP 192.168.141.112:5060;branch=z9hG4bK1021617921;rport
From: "abc" <sip:1002@192.168.3.150>;tag=1294536902
To: <sip:15622775051@192.168.3.150>
Call-ID: 1596175498-5060-50@BJC.BGI.BEB.BBC
CSeq: 490 INVITE
Contact: "abc" <sip:1002@192.168.141.112:5060>
Max-Forwards: 70
User-Agent: Grandstream GXV3240 1.0.3.137
Privacy: none
P-Preferred-Identity: "abc" <sip:1002@192.168.3.150>
P-Emergency-Info: IEEE-EUI-48;eui-48-addr=00-0B-82-A1-4F-6D
Supported: replaces, path, timer, eventlist
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 301
v=0
o=1002 8000 8000 IN IP4 192.168.141.112
s=SIP Call
c=IN IP4 192.168.141.112
t=0 0
m=audio 5004 RTP/AVP 0 8 9 101
a=sendrecv
a=rtcp:5005 IN IP4 192.168.141.112
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (17 headers 14 lines) ---
Ignoring this INVITE request
<--- Transmitting (no NAT) to 192.168.141.112:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.141.112:5060;branch=z9hG4bK1021617921;received=192.168.141.112;rport=5060
From: "abc" <sip:1002@192.168.3.150>;tag=1294536902
To: <sip:15622775051@192.168.3.150>
Call-ID: 1596175498-5060-50@BJC.BGI.BEB.BBC
CSeq: 490 INVITE
Server: Asterisk PBX 13.9.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:15622775051@192.168.3.150:5060>
Content-Length: 0
<------------>
<--- SIP read from UDP:192.168.141.144:5060 --->
<------------->
<--- SIP read from UDP:192.168.141.112:5060 --->
INVITE sip:15622775051@192.168.3.150 SIP/2.0
Via: SIP/2.0/UDP 192.168.141.112:5060;branch=z9hG4bK1021617921;rport
From: "abc" <sip:1002@192.168.3.150>;tag=1294536902
To: <sip:15622775051@192.168.3.150>
Call-ID: 1596175498-5060-50@BJC.BGI.BEB.BBC
CSeq: 490 INVITE
Contact: "abc" <sip:1002@192.168.141.112:5060>
Max-Forwards: 70
User-Agent: Grandstream GXV3240 1.0.3.137
Privacy: none
P-Preferred-Identity: "abc" <sip:1002@192.168.3.150>
P-Emergency-Info: IEEE-EUI-48;eui-48-addr=00-0B-82-A1-4F-6D
Supported: replaces, path, timer, eventlist
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 301
v=0
o=1002 8000 8000 IN IP4 192.168.141.112
s=SIP Call
c=IN IP4 192.168.141.112
t=0 0
m=audio 5004 RTP/AVP 0 8 9 101
a=sendrecv
a=rtcp:5005 IN IP4 192.168.141.112
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (17 headers 14 lines) ---
Ignoring this INVITE request
-- Executing [15622775051@incoming-context:1] NoOp("SIP/1002-00000001", "dialing-remote") in new stack
<--- Transmitting (no NAT) to 192.168.141.112:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.141.112:5060;branch=z9hG4bK1021617921;received=192.168.141.112;rport=5060
From: "abc" <sip:1002@192.168.3.150>;tag=1294536902
To: <sip:15622775051@192.168.3.150>
Call-ID: 1596175498-5060-50@BJC.BGI.BEB.BBC
CSeq: 490 INVITE
Server: Asterisk PBX 13.9.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:15622775051@192.168.3.150:5060>
Content-Length: 0
<------------>
-- Executing [15622775051@incoming-context:2] Dial("SIP/1002-00000001", "SIP/+15622775051@sipphone,20,r") in new stack
[Aug 21 17:10:40] WARNING[23417][C-00000001]: app_dial.c:2429 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/1002-00000001' status is 'CHANUNAVAIL'
<--- Reliably Transmitting (no NAT) to 192.168.141.112:5060 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 192.168.141.112:5060;branch=z9hG4bK1021617921;received=192.168.141.112;rport=5060
From: "abc" <sip:1002@192.168.3.150>;tag=1294536902
To: <sip:15622775051@192.168.3.150>;tag=as59105372
Call-ID: 1596175498-5060-50@BJC.BGI.BEB.BBC
CSeq: 490 INVITE
Server: Asterisk PBX 13.9.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
X-Asterisk-HangupCause: Subscriber absent
X-Asterisk-HangupCauseCode: 20
Content-Length: 0
<------------>
Really destroying SIP dialog '138ce2240dc67286791af7cf034ade3b@127.0.0.1:5060' Method: INVITE
Retransmitting #1 (no NAT) to 192.168.141.112:5060:
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 192.168.141.112:5060;branch=z9hG4bK1021617921;received=192.168.141.112;rport=5060
From: "abc" <sip:1002@192.168.3.150>;tag=1294536902
To: <sip:15622775051@192.168.3.150>;tag=as59105372
Call-ID: 1596175498-5060-50@BJC.BGI.BEB.BBC
CSeq: 490 INVITE
Server: Asterisk PBX 13.9.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
X-Asterisk-HangupCause: Subscriber absent
X-Asterisk-HangupCauseCode: 20
Content-Length: 0
---
Retransmitting #2 (no NAT) to 192.168.141.112:5060:
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 192.168.141.112:5060;branch=z9hG4bK1021617921;received=192.168.141.112;rport=5060
From: "abc" <sip:1002@192.168.3.150>;tag=1294536902
To: <sip:15622775051@192.168.3.150>;tag=as59105372
Call-ID: 1596175498-5060-50@BJC.BGI.BEB.BBC
CSeq: 490 INVITE
Server: Asterisk PBX 13.9.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
X-Asterisk-HangupCause: Subscriber absent
X-Asterisk-HangupCauseCode: 20
Content-Length: 0
---
<--- SIP read from UDP:192.168.141.112:5060 --->
ACK sip:15622775051@192.168.3.150 SIP/2.0
Via: SIP/2.0/UDP 192.168.141.112:5060;branch=z9hG4bK1021617921;rport
From: "abc" <sip:1002@192.168.3.150>;tag=1294536902
To: <sip:15622775051@192.168.3.150>;tag=as59105372
Call-ID: 1596175498-5060-50@BJC.BGI.BEB.BBC
CSeq: 490 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '1596175498-5060-50@BJC.BGI.BEB.BBC' Method: ACK
Retransmitting #1 (no NAT) to 54.172.61.5:5060:
OPTIONS sip:XXXX.twilio.com SIP/2.0
Via: SIP/2.0/UDP 192.168.3.150:5060;branch=z9hG4bK5e1e878e
Max-Forwards: 70
From: "asterisk" <sip:user4@192.168.3.150>;tag=as28dd7781
To: <sip:XXXX.twilio.com>
Contact: <sip:user4@192.168.3.150:5060>
Call-ID: 23dd495b4c04799200bf058d72407a2a@192.168.3.150:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.9.1
Date: Mon, 21 Aug 2017 17:10:40 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
Retransmitting #2 (no NAT) to 54.172.61.5:5060:
OPTIONS sip:XXXX.twilio.com SIP/2.0
Via: SIP/2.0/UDP 192.168.3.150:5060;branch=z9hG4bK5e1e878e
Max-Forwards: 70
From: "asterisk" <sip:user4@192.168.3.150>;tag=as28dd7781
To: <sip:XXXX.twilio.com>
Contact: <sip:user4@192.168.3.150:5060>
Call-ID: 23dd495b4c04799200bf058d72407a2a@192.168.3.150:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.9.1
Date: Mon, 21 Aug 2017 17:10:40 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
Retransmitting #3 (no NAT) to 54.172.61.5:5060:
OPTIONS sip:XXXX.twilio.com SIP/2.0
Via: SIP/2.0/UDP 192.168.3.150:5060;branch=z9hG4bK5e1e878e
Max-Forwards: 70
From: "asterisk" <sip:user4@192.168.3.150>;tag=as28dd7781
To: <sip:XXXX.twilio.com>
Contact: <sip:user4@192.168.3.150:5060>
Call-ID: 23dd495b4c04799200bf058d72407a2a@192.168.3.150:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.9.1
Date: Mon, 21 Aug 2017 17:10:40 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
Retransmitting #4 (no NAT) to 54.172.61.5:5060:
OPTIONS sip:XXXX.twilio.com SIP/2.0
Via: SIP/2.0/UDP 192.168.3.150:5060;branch=z9hG4bK5e1e878e
Max-Forwards: 70
From: "asterisk" <sip:user4@192.168.3.150>;tag=as28dd7781
To: <sip:XXXX.twilio.com>
Contact: <sip:user4@192.168.3.150:5060>
Call-ID: 23dd495b4c04799200bf058d72407a2a@192.168.3.150:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.9.1
Date: Mon, 21 Aug 2017 17:10:40 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
Retransmitting #5 (no NAT) to 54.172.61.5:5060:
OPTIONS sip:XXXX.twilio.com SIP/2.0
Via: SIP/2.0/UDP 192.168.3.150:5060;branch=z9hG4bK5e1e878e
Max-Forwards: 70
From: "asterisk" <sip:user4@192.168.3.150>;tag=as28dd7781
To: <sip:XXXX.twilio.com>
Contact: <sip:user4@192.168.3.150:5060>
Call-ID: 23dd495b4c04799200bf058d72407a2a@192.168.3.150:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.9.1
Date: Mon, 21 Aug 2017 17:10:40 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
Really destroying SIP dialog '0ee13ba7679c7ace7d350f813c95f8a5@192.168.3.150:5060' Method: OPTIONS
Retransmitting #6 (no NAT) to 54.172.61.5:5060:
OPTIONS sip:XXXX.twilio.com SIP/2.0
Via: SIP/2.0/UDP 192.168.3.150:5060;branch=z9hG4bK5e1e878e
Max-Forwards: 70
From: "asterisk" <sip:user4@192.168.3.150>;tag=as28dd7781
To: <sip:XXXX.twilio.com>
Contact: <sip:user4@192.168.3.150:5060>
Call-ID: 23dd495b4c04799200bf058d72407a2a@192.168.3.150:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.9.1
Date: Mon, 21 Aug 2017 17:10:40 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
Retransmitting #7 (no NAT) to 54.172.61.5:5060:
OPTIONS sip:XXXX.twilio.com SIP/2.0
Via: SIP/2.0/UDP 192.168.3.150:5060;branch=z9hG4bK5e1e878e
Max-Forwards: 70
From: "asterisk" <sip:user4@192.168.3.150>;tag=as28dd7781
To: <sip:XXXX.twilio.com>
Contact: <sip:user4@192.168.3.150:5060>
Call-ID: 23dd495b4c04799200bf058d72407a2a@192.168.3.150:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.9.1
Date: Mon, 21 Aug 2017 17:10:40 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---