OK, I did a SIP debug.
Here I have sendrpid=pai in sip.conf. I called from my cellphone to my desk phone, let it ring once, and hung up. You’ll note the ‘Re-invite to non-existing call leg on other UA’ error at the end. I can also confirm the sip channel 4b26ecc20727f05 zombified.
[code]INVITE sip:MY_EXTENSION_NUMBER@10.10.2.99:5062 SIP/2.0
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK2f0fa1b3;rport
Max-Forwards: 70
From: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10;tag=as7226299d
To: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062
Contact: sip:MY_CELLPHONE_NUMBER@10.10.2.10:5060
Call-ID: 4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.8.20.1
Date: Sat, 29 Jun 2013 23:42:43 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
P-Asserted-Identity: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10
Content-Type: application/sdp
Content-Length: 232
v=0
o=root 2089016247 2089016247 IN IP4 10.10.2.10
s=Asterisk PBX 1.8.20.1
c=IN IP4 10.10.2.10
t=0 0
m=audio 8122 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
[Jun 29 19:42:43] – Called SIP/MY_EXTENSION_NUMBER
[Jun 29 19:42:43] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Ringing for Notify User 4354
[Jun 29 19:42:43] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Ringing for Notify User 4238
[Jun 29 19:42:43] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Ringing for Notify User 4263
[Jun 29 19:42:43]
<— SIP read from UDP:10.10.2.99:5062 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK2f0fa1b3;rport
From: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10;tag=as7226299d
To: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062
Call-ID: 4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060
CSeq: 102 INVITE
User-Agent: Yealink SIP-T28P 2.70.0.130
Content-Length: 0
<------------->
[Jun 29 19:42:43] — (8 headers 0 lines) —
[Jun 29 19:42:43]
<— SIP read from UDP:10.10.2.99:5062 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK2f0fa1b3;rport
From: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10;tag=as7226299d
To: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062;tag=1598030047
Call-ID: 4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060
CSeq: 102 INVITE
Contact: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
User-Agent: Yealink SIP-T28P 2.70.0.130
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 0
<------------->
[Jun 29 19:42:43] — (11 headers 0 lines) —
[Jun 29 19:42:43] list_route: hop: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062
[Jun 29 19:42:43] – SIP/MY_EXTENSION_NUMBER-0000001f is ringing
[Jun 29 19:42:44] – Span 1: Channel 0/1 got hangup request, cause 16
[Jun 29 19:42:44] Scheduling destruction of SIP dialog ‘4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060’ in 32000 ms (Method: INVITE)
[Jun 29 19:42:44] Reliably Transmitting (NAT) to 10.10.2.99:5062:
CANCEL sip:MY_EXTENSION_NUMBER@10.10.2.99:5062 SIP/2.0
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK2f0fa1b3;rport
Max-Forwards: 70
From: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10;tag=as7226299d
To: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062
Call-ID: 4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060
CSeq: 102 CANCEL
User-Agent: Asterisk PBX 1.8.20.1
Content-Length: 0
[Jun 29 19:42:44] Scheduling destruction of SIP dialog ‘4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060’ in 32000 ms (Method: INVITE)
[Jun 29 19:42:44] == Spawn extension (sip_ring_then_vm, MY_EXTENSION_NUMBER, 3) exited non-zero on ‘DAHDI/i1/MY_CELLPHONE_NUMBER-21’
[Jun 29 19:42:44] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Idle for Notify User 4354
[Jun 29 19:42:44] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Idle for Notify User 4238
[Jun 29 19:42:44] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Idle for Notify User 4263
[Jun 29 19:42:44] – Hungup ‘DAHDI/i1/MY_CELLPHONE_NUMBER-21’
[Jun 29 19:42:44]
<— SIP read from UDP:10.10.2.99:5062 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK2f0fa1b3;rport
From: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10;tag=as7226299d
To: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062;tag=1598030047
Call-ID: 4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060
CSeq: 102 CANCEL
User-Agent: Yealink SIP-T28P 2.70.0.130
Content-Length: 0
<------------->
[Jun 29 19:42:44] — (8 headers 0 lines) —
[Jun 29 19:42:44]
<— SIP read from UDP:10.10.2.99:5062 —>
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK2f0fa1b3;rport
From: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10;tag=as7226299d
To: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062;tag=1598030047
Call-ID: 4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060
CSeq: 102 INVITE
User-Agent: Yealink SIP-T28P 2.70.0.130
Content-Length: 0
<------------->
[Jun 29 19:42:44] — (8 headers 0 lines) —
[Jun 29 19:42:44] Transmitting (NAT) to 10.10.2.99:5062:
ACK sip:MY_EXTENSION_NUMBER@10.10.2.99:5062 SIP/2.0
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK2f0fa1b3;rport
Max-Forwards: 70
From: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10;tag=as7226299d
To: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062;tag=1598030047
Contact: sip:MY_CELLPHONE_NUMBER@10.10.2.10:5060
Call-ID: 4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX 1.8.20.1
Content-Length: 0
[Jun 29 19:42:44] set_destination: Parsing sip:MY_EXTENSION_NUMBER@10.10.2.99:5062 for address/port to send to
[Jun 29 19:42:44] set_destination: set destination to 10.10.2.99:5062
[Jun 29 19:42:44] Audio is at 8122
[Jun 29 19:42:44] Adding codec 0x4 (ulaw) to SDP
[Jun 29 19:42:44] Adding non-codec 0x1 (telephone-event) to SDP
[Jun 29 19:42:44] Reliably Transmitting (NAT) to 10.10.2.99:5062:
INVITE sip:MY_EXTENSION_NUMBER@10.10.2.99:5062 SIP/2.0
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK5a62e13b;rport
Max-Forwards: 70
From: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10;tag=as7226299d
To: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062;tag=1598030047
Contact: sip:MY_CELLPHONE_NUMBER@10.10.2.10:5060
Call-ID: 4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060
CSeq: 103 INVITE
User-Agent: Asterisk PBX 1.8.20.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
X-asterisk-Info: SIP re-invite (External RTP bridge)
Content-Type: application/sdp
Content-Length: 259
v=0
o=root 2089016247 2089016248 IN IP4 10.10.2.10
s=Asterisk PBX 1.8.20.1
c=IN IP4 10.10.2.10
t=0 0
m=audio 8122 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
[Jun 29 19:42:44] Scheduling destruction of SIP dialog ‘4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060’ in 32000 ms (Method: INVITE)
[Jun 29 19:42:45]
<— SIP read from UDP:10.10.2.99:5062 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK5a62e13b;rport
From: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10;tag=as7226299d
To: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062;tag=1598030047
Call-ID: 4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060
CSeq: 103 INVITE
User-Agent: Yealink SIP-T28P 2.70.0.130
Content-Length: 0
<------------->
[Jun 29 19:42:45] — (8 headers 0 lines) —
[Jun 29 19:42:45]
<— SIP read from UDP:10.10.2.99:5062 —>
SIP/2.0 481 Call Leg/Transaction Does Not Exist
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK5a62e13b;rport
From: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10;tag=as7226299d
To: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062;tag=1598030047
Call-ID: 4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060
CSeq: 103 INVITE
User-Agent: Yealink SIP-T28P 2.70.0.130
Content-Length: 0
<------------->
[Jun 29 19:42:45] — (8 headers 0 lines) —
[Jun 29 19:42:45] WARNING[2067]: chan_sip.c:20897 handle_response_invite: Re-invite to non-existing call leg on other UA. SIP dialog ‘4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060’. Giving up.
[Jun 29 19:42:45] set_destination: Parsing sip:MY_EXTENSION_NUMBER@10.10.2.99:5062 for address/port to send to
[Jun 29 19:42:45] set_destination: set destination to 10.10.2.99:5062
[Jun 29 19:42:45] Transmitting (NAT) to 10.10.2.99:5062:
ACK sip:MY_EXTENSION_NUMBER@10.10.2.99:5062 SIP/2.0
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK5a62e13b;rport
Max-Forwards: 70
From: “WIRELESS CALLER” sip:MY_CELLPHONE_NUMBER@10.10.2.10;tag=as7226299d
To: sip:MY_EXTENSION_NUMBER@10.10.2.99:5062;tag=1598030047
Contact: sip:MY_CELLPHONE_NUMBER@10.10.2.10:5060
Call-ID: 4b26ecc20727f05252c6a5ad08aac7c3@10.10.2.10:5060
CSeq: 103 ACK
User-Agent: Asterisk PBX 1.8.20.1
Content-Length: 0
[/code]
Here I changed sendrpid=no in sip.conf and did a ‘sip reload’. I called from my cellphone to my desk phone, let it ring once, and hung up. No warnings and the sip channel cleared correctly.
INVITE sip:MY_EXTENSION_NUMBER@10.10.2.99:5062 SIP/2.0
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK03fe3278;rport
Max-Forwards: 70
From: "WIRELESS CALLER" <sip:MY_CELLPHONE_NUMBER@10.10.2.10>;tag=as363f2367
To: <sip:MY_EXTENSION_NUMBER@10.10.2.99:5062>
Contact: <sip:MY_CELLPHONE_NUMBER@10.10.2.10:5060>
Call-ID: 79856971108952b35ffe696719be4c80@10.10.2.10:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.8.20.1
Date: Sat, 29 Jun 2013 23:59:31 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 231
v=0
o=root 693409678 693409678 IN IP4 10.10.2.10
s=Asterisk PBX 1.8.20.1
c=IN IP4 10.10.2.10
t=0 0
m=audio 26252 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
---
[Jun 29 19:59:31] -- Called SIP/MY_EXTENSION_NUMBER
[Jun 29 19:59:31] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Ringing for Notify User 4354
[Jun 29 19:59:31] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Ringing for Notify User 4238
[Jun 29 19:59:31] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Ringing for Notify User 4263
[Jun 29 19:59:31]
<--- SIP read from UDP:10.10.2.99:5062 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK03fe3278;rport
From: "WIRELESS CALLER" <sip:MY_CELLPHONE_NUMBER@10.10.2.10>;tag=as363f2367
To: <sip:MY_EXTENSION_NUMBER@10.10.2.99:5062>
Call-ID: 79856971108952b35ffe696719be4c80@10.10.2.10:5060
CSeq: 102 INVITE
User-Agent: Yealink SIP-T28P 2.70.0.130
Content-Length: 0
<------------->
[Jun 29 19:59:31] --- (8 headers 0 lines) ---
[Jun 29 19:59:31]
<--- SIP read from UDP:10.10.2.99:5062 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK03fe3278;rport
From: "WIRELESS CALLER" <sip:MY_CELLPHONE_NUMBER@10.10.2.10>;tag=as363f2367
To: <sip:MY_EXTENSION_NUMBER@10.10.2.99:5062>;tag=1750395920
Call-ID: 79856971108952b35ffe696719be4c80@10.10.2.10:5060
CSeq: 102 INVITE
Contact: <sip:MY_EXTENSION_NUMBER@10.10.2.99:5062>
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
User-Agent: Yealink SIP-T28P 2.70.0.130
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 0
<------------->
[Jun 29 19:59:31] --- (11 headers 0 lines) ---
[Jun 29 19:59:31] list_route: hop: <sip:MY_EXTENSION_NUMBER@10.10.2.99:5062>
[Jun 29 19:59:31] -- SIP/MY_EXTENSION_NUMBER-00000020 is ringing
[Jun 29 19:59:33] -- Span 1: Channel 0/1 got hangup request, cause 16
[Jun 29 19:59:33] Scheduling destruction of SIP dialog '79856971108952b35ffe696719be4c80@10.10.2.10:5060' in 32000 ms (Method: INVITE)
[Jun 29 19:59:33] Reliably Transmitting (NAT) to 10.10.2.99:5062:
CANCEL sip:MY_EXTENSION_NUMBER@10.10.2.99:5062 SIP/2.0
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK03fe3278;rport
Max-Forwards: 70
From: "WIRELESS CALLER" <sip:MY_CELLPHONE_NUMBER@10.10.2.10>;tag=as363f2367
To: <sip:MY_EXTENSION_NUMBER@10.10.2.99:5062>
Call-ID: 79856971108952b35ffe696719be4c80@10.10.2.10:5060
CSeq: 102 CANCEL
User-Agent: Asterisk PBX 1.8.20.1
Content-Length: 0
---
[Jun 29 19:59:33] Scheduling destruction of SIP dialog '79856971108952b35ffe696719be4c80@10.10.2.10:5060' in 32000 ms (Method: INVITE)
[Jun 29 19:59:33] == Spawn extension (sip_ring_then_vm, MY_EXTENSION_NUMBER, 3) exited non-zero on 'DAHDI/i1/MY_CELLPHONE_NUMBER-22'
[Jun 29 19:59:33] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Idle for Notify User 4354
[Jun 29 19:59:33] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Idle for Notify User 4238
[Jun 29 19:59:33] == Extension Changed MY_EXTENSION_NUMBER[internal] new state Idle for Notify User 4263
[Jun 29 19:59:33] -- Hungup 'DAHDI/i1/MY_CELLPHONE_NUMBER-22'
[Jun 29 19:59:33]
<--- SIP read from UDP:10.10.2.99:5062 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK03fe3278;rport
From: "WIRELESS CALLER" <sip:MY_CELLPHONE_NUMBER@10.10.2.10>;tag=as363f2367
To: <sip:MY_EXTENSION_NUMBER@10.10.2.99:5062>;tag=1750395920
Call-ID: 79856971108952b35ffe696719be4c80@10.10.2.10:5060
CSeq: 102 CANCEL
User-Agent: Yealink SIP-T28P 2.70.0.130
Content-Length: 0
<------------->
[Jun 29 19:59:33] --- (8 headers 0 lines) ---
[Jun 29 19:59:33]
<--- SIP read from UDP:10.10.2.99:5062 --->
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK03fe3278;rport
From: "WIRELESS CALLER" <sip:MY_CELLPHONE_NUMBER@10.10.2.10>;tag=as363f2367
To: <sip:MY_EXTENSION_NUMBER@10.10.2.99:5062>;tag=1750395920
Call-ID: 79856971108952b35ffe696719be4c80@10.10.2.10:5060
CSeq: 102 INVITE
User-Agent: Yealink SIP-T28P 2.70.0.130
Content-Length: 0
<------------->
[Jun 29 19:59:33] --- (8 headers 0 lines) ---
[Jun 29 19:59:33] Transmitting (NAT) to 10.10.2.99:5062:
ACK sip:MY_EXTENSION_NUMBER@10.10.2.99:5062 SIP/2.0
Via: SIP/2.0/UDP 10.10.2.10:5060;branch=z9hG4bK03fe3278;rport
Max-Forwards: 70
From: "WIRELESS CALLER" <sip:MY_CELLPHONE_NUMBER@10.10.2.10>;tag=as363f2367
To: <sip:MY_EXTENSION_NUMBER@10.10.2.99:5062>;tag=1750395920
Contact: <sip:MY_CELLPHONE_NUMBER@10.10.2.10:5060>
Call-ID: 79856971108952b35ffe696719be4c80@10.10.2.10:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX 1.8.20.1
Content-Length: 0
Thanks for looking!